Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/docs/cleanup-4.8'
Browse files Browse the repository at this point in the history
  • Loading branch information
mspanik committed Feb 5, 2024
2 parents 58c1e04 + 9466da4 commit 36b7696
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
6 changes: 6 additions & 0 deletions docs/concepts/query/midpoint-query-language/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ filter:

To start with midPoint Query Language, please read xref:introduction.adoc[*Introduction to midPoint Query Language*].


=== Using in midPoint Studio

xref:/midpoint/tools/studio[Midpoint Studio] is great tool helping midPoint engineers and administrators with configuration and daily work.
You can use midPoint Query Language for xref:/midpoint/tools/studio/usage#_browsing_objects[querying of midPoint objects in midPoint Studio] as well.

=== Query Playground

To experiment with the query language, there is hardly a better place than the actual running midPoint.
Expand Down
22 changes: 18 additions & 4 deletions docs/concepts/query/query-concepts/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1529,8 +1529,8 @@ For authoritative information about provisioning filter interpretation, see link

Filters can be created using Fluent Java API or via XML (or equivalentYAML/JSON).

The following samples are taken from link:https://github.com/Evolveum/midpoint/blob/master/infra/schema/src/test/java/com/evolveum/midpoint/schema/TestQueryConvertor.java[TestQueryConvertor] class.
XML versions are in the files named `test*.xml` in link:https://github.com/Evolveum/midpoint/tree/master/infra/schema/src/test/resources/queryconvertor[this directory].
The following samples are taken from link:https://github.com/Evolveum/midpoint/blob/master/infra/schema/src/test/java/com/evolveum/midpoint/schema/TestQueryConverter.java[TestQueryConvertor] class.
XML versions are in the files named `test*.xml` in link:https://github.com/Evolveum/midpoint/tree/master/infra/schema/src/test/resources/queryconverter[this directory].

==== Primitive filters

Expand Down Expand Up @@ -2138,6 +2138,20 @@ The operation may return specified number of entries or less.
Following is the example for using paging in the query.

.Paging example
[source,midPoint-query]
----
<q:query xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3">
<q:filter>
<q:text>activation/administrativeStatus="enabled"</q:text>
</q:filter>
<q:paging>
<q:orderBy>name</q:orderBy>
<q:offset>0</q:offset>
<q:maxSize>10</q:maxSize>
</q:paging>
</q:query>
----

[source,xml]
----
<q:query xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3">
Expand All @@ -2149,8 +2163,8 @@ Following is the example for using paging in the query.
</q:filter>
<q:paging>
<q:orderBy>name</q:orderBy>
<offset>0</offset>
<maxSize>10</maxSize>
<q:offset>0</q:offset>
<q:maxSize>10</q:maxSize>
</q:paging>
</q:query>
----
Expand Down

0 comments on commit 36b7696

Please sign in to comment.