Interface S_FilterEntry
- All Known Subinterfaces:
S_FilterEntryOrEmpty
public interface S_FilterEntry
See the grammar in Javadoc for
QueryBuilder
.-
Method Summary
Modifier and TypeMethodDescriptionall()
block()
filter
(ObjectFilter filter) id
(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()
default S_FilterEntryOrEmpty
ownedBy
(Class<? extends Containerable> clazz) ownedBy
(Class<? extends Containerable> clazz, ItemPath path) default S_FilterEntryOrEmpty
ownedBy
(Class<? extends Containerable> clazz, Object... path) ownerId
(long... identifiers) default S_FilterEntryOrEmpty
Ref filter with no values with optional ref-target filter that can follow this call immediately.default S_FilterEntryOrEmpty
Ref filter for target type and relation with optional ref-target filter that can follow this call immediately.Ref filter with single value and optional ref-target filter that can follow this call immediately.default S_FilterEntryOrEmpty
referencedBy
(@NotNull Class<? extends Containerable> clazz, @NotNull ItemPath path) Shortcut toreferencedBy(Class, ItemPath, QName)
with null relation which is interpreted as "any".referencedBy
(@NotNull Class<? extends Containerable> clazz, @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)
-
Method Details
-
not
S_FilterEntry not() -
all
S_FilterExit all() -
none
S_FilterExit none() -
undefined
S_FilterExit undefined() -
filter
-
item
-
item
-
item
-
item
-
itemWithDef
-
item
-
item
-
itemAs
-
id
-
id
-
ownerId
-
ownerId
-
isDirectChildOf
-
isChildOf
-
isDirectChildOf
-
isChildOf
-
isParentOf
-
isParentOf
-
isInScopeOf
-
isInScopeOf
-
isRoot
S_FilterExit isRoot() -
fullText
-
block
S_FilterEntryOrEmpty block() -
type
-
type
-
exists
-
ownedBy
-
ownedBy
-
ownedBy
-
referencedBy
default S_FilterEntryOrEmpty referencedBy(@NotNull @NotNull Class<? extends Containerable> clazz, @NotNull @NotNull ItemPath path) Shortcut toreferencedBy(Class, ItemPath, QName)
with null relation which is interpreted as "any". This is actually great for filtering where something not specified mostly implies "I don't care", but this is different from an existing REF filter, where null relation defaults to "default" relation. Eventually, REF filter should be changed to be more intuitive. -
referencedBy
S_FilterEntryOrEmpty referencedBy(@NotNull @NotNull Class<? extends Containerable> clazz, @NotNull @NotNull ItemPath path, QName relation) Creates `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() ----- Parameters:
clazz
- 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
Ref filter with no values with optional ref-target filter that can follow this call immediately. For example: ---- filter.ref(ObjectType.F_PARENT_ORG_REF) .item(OrgType.F_DISPLAY_ORDER).eq(30) // target filter ---- Use comboitem(ItemPath)
andS_ConditionEntry.ref(PrismReferenceValue...)
for simple REF filters and multi-value support. -
ref
Ref filter for target type and relation with optional ref-target filter that can follow this call immediately. Use comboitem(ItemPath)
andS_ConditionEntry.ref(PrismReferenceValue...)
for simple REF filters and multi-value support. -
ref
Ref filter with single value and optional ref-target filter that can follow this call immediately. Use comboitem(ItemPath)
andS_ConditionEntry.ref(PrismReferenceValue...)
for simple REF filters and multi-value support.
-