Class R_Filter
java.lang.Object
com.evolveum.midpoint.prism.impl.query.builder.R_Filter
- All Implemented Interfaces:
S_FilterEntry,S_FilterEntryOrEmpty,S_FilterExit,S_QueryExit
Implementation of the top-level of the Query fluent API grammar (see
QueryBuilder).
See R_AtomicFilter for low-level filters.-
Method Summary
Modifier and TypeMethodDescriptionall()and()block()build()static S_FilterEntryOrEmptycreate(QueryBuilder builder) static S_FilterEntryOrEmptycreate(QueryBuilder builder, PrismReferenceDefinition refDefinition) endBlock()Closes theS_FilterEntry.block()construction.filter(ObjectFilter filter) <C> Class<C>Client-friendly getter that assumes the expected type.protected booleanid(long... identifiers) isChildOf(PrismReferenceValue value) isDirectChildOf(String oid) isInScopeOf(PrismReferenceValue value, OrgFilter.Scope scope) isInScopeOf(String oid, OrgFilter.Scope scope) isParentOf(PrismReferenceValue value) isParentOf(String oid) isRoot()item(ItemPath itemPath, ItemDefinition<?> itemDefinition) item(PrismContainerDefinition<?> containerDefinition, ItemPath itemPath) item(PrismContainerDefinition<?> containerDefinition, QName... names) itemAs(PrismProperty<?> property) itemWithDef(ItemDefinition<?> itemDefinition, QName... names) none()not()or()com.evolveum.midpoint.prism.impl.query.builder.R_Filter.OwnedByEntryownedBy(Class<? extends Containerable> type, ItemPath path) ownerId(long... identifiers) Ref filter with single value and optional ref-target filter that can follow this call immediately.referencedBy(@NotNull Class<? extends Containerable> type, @NotNull ItemPath path, QName relation) Creates `referencedBy` filter that matches if the queried object is referenced by other specified object or container.type(Class<? extends Containerable> type) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.prism.query.builder.S_FilterEntry
ownedBy, ownedBy, ref, ref, referencedBy
-
Method Details
-
create
-
create
public static S_FilterEntryOrEmpty create(QueryBuilder builder, PrismReferenceDefinition refDefinition) -
all
- Specified by:
allin interfaceS_FilterEntry
-
none
- Specified by:
nonein interfaceS_FilterEntry
-
undefined
- Specified by:
undefinedin interfaceS_FilterEntry
-
filter
- Specified by:
filterin interfaceS_FilterEntry
-
id
- Specified by:
idin interfaceS_FilterEntry
-
id
- Specified by:
idin interfaceS_FilterEntry
-
ownerId
- Specified by:
ownerIdin interfaceS_FilterEntry
-
ownerId
- Specified by:
ownerIdin interfaceS_FilterEntry
-
isDirectChildOf
- Specified by:
isDirectChildOfin interfaceS_FilterEntry
-
isChildOf
- Specified by:
isChildOfin interfaceS_FilterEntry
-
isParentOf
- Specified by:
isParentOfin interfaceS_FilterEntry
-
isDirectChildOf
- Specified by:
isDirectChildOfin interfaceS_FilterEntry
-
isChildOf
- Specified by:
isChildOfin interfaceS_FilterEntry
-
isInScopeOf
- Specified by:
isInScopeOfin interfaceS_FilterEntry
-
isInScopeOf
- Specified by:
isInScopeOfin interfaceS_FilterEntry
-
isParentOf
- Specified by:
isParentOfin interfaceS_FilterEntry
-
isRoot
- Specified by:
isRootin interfaceS_FilterEntry
-
fullText
- Specified by:
fullTextin interfaceS_FilterEntry
-
block
- Specified by:
blockin interfaceS_FilterEntry
-
type
- Specified by:
typein interfaceS_FilterEntry
-
referencedBy
public S_FilterEntryOrEmpty referencedBy(@NotNull @NotNull Class<? extends Containerable> type, @NotNull @NotNull ItemPath path, QName relation) Description copied from interface:S_FilterEntryCreates `referencedBy` filter that matches if the queried object is referenced by other specified object or container. This is a "blocky" filter that allows for inner filter, applied to the referencing entity. For example: ---- // query for role referenced by user assignment, with inner filter applied to user .referencedBy(UserType.class, ItemPath.create(F_ASSIGNMENT, F_TARGET_REF)) .block() .not().item(UserType.F_COST_CENTER).isNull() .and() .item(UserType.F_POLICY_SITUATION).isNull() .endBlock() ----- Specified by:
referencedByin interfaceS_FilterEntry- Parameters:
type- type of the referenced object (can be an abstract type too)path- item path of the referencerelation- optional relation of the incoming reference, null means it does not matter (any)
-
ref
Description copied from interface:S_FilterEntryRef filter with single value and optional ref-target filter that can follow this call immediately. Use comboS_FilterEntry.item(ItemPath)andS_ConditionEntry.ref(PrismReferenceValue...)for simple REF filters and multi-value support.- Specified by:
refin interfaceS_FilterEntry
-
ownedBy
public com.evolveum.midpoint.prism.impl.query.builder.R_Filter.OwnedByEntry ownedBy(Class<? extends Containerable> type, ItemPath path) - Specified by:
ownedByin interfaceS_FilterEntry
-
type
- Specified by:
typein interfaceS_FilterEntry
-
exists
- Specified by:
existsin interfaceS_FilterEntry
-
and
- Specified by:
andin interfaceS_FilterExit
-
or
- Specified by:
orin interfaceS_FilterExit
-
not
- Specified by:
notin interfaceS_FilterEntry
-
item
- Specified by:
itemin interfaceS_FilterEntry
-
item
- Specified by:
itemin interfaceS_FilterEntry
-
item
- Specified by:
itemin interfaceS_FilterEntry
-
itemWithDef
- Specified by:
itemWithDefin interfaceS_FilterEntry
-
item
- Specified by:
itemin interfaceS_FilterEntry
-
item
- Specified by:
itemin interfaceS_FilterEntry
-
item
- Specified by:
itemin interfaceS_FilterEntry
-
itemAs
- Specified by:
itemAsin interfaceS_FilterEntry
-
endBlock
Description copied from interface:S_QueryExitCloses theS_FilterEntry.block()construction. It is a bit high in hierarchy to allow empty block().end() construction without additional interface.- Specified by:
endBlockin interfaceS_QueryExit
-
hasRestriction
protected boolean hasRestriction() -
asc
- Specified by:
ascin interfaceS_QueryExit
-
asc
- Specified by:
ascin interfaceS_QueryExit
-
desc
- Specified by:
descin interfaceS_QueryExit
-
desc
- Specified by:
descin interfaceS_QueryExit
-
offset
- Specified by:
offsetin interfaceS_QueryExit
-
maxSize
- Specified by:
maxSizein interfaceS_QueryExit
-
build
- Specified by:
buildin interfaceS_QueryExit
-
buildFilter
- Specified by:
buildFilterin interfaceS_QueryExit
-
getPrismContext
-
getCurrentClass
Client-friendly getter that assumes the expected type. This was created to make working with both containers and references easier.
-