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
@Experimental public class R_Filter extends Object implements S_FilterEntryOrEmpty, S_FilterExit
EXPERIMENTAL IMPLEMENTATION.
-
-
Field Summary
Fields Modifier and Type Field Description protected R_Filter
parentFilter
-
Constructor Summary
Constructors Constructor Description R_Filter(QueryBuilder queryBuilder)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.prism.query.builder.S_FilterEntry
ownedBy, ownedBy, ref, ref, referencedBy
-
-
-
-
Field Detail
-
parentFilter
protected final R_Filter parentFilter
-
-
Constructor Detail
-
R_Filter
public R_Filter(QueryBuilder queryBuilder)
-
-
Method Detail
-
create
public static S_FilterEntryOrEmpty create(QueryBuilder builder)
-
all
public S_FilterExit all()
- Specified by:
all
in interfaceS_FilterEntry
-
none
public S_FilterExit none()
- Specified by:
none
in interfaceS_FilterEntry
-
undefined
public S_FilterExit undefined()
- Specified by:
undefined
in interfaceS_FilterEntry
-
filter
public S_FilterExit filter(ObjectFilter filter)
- Specified by:
filter
in interfaceS_FilterEntry
-
id
public S_FilterExit id(String... identifiers)
- Specified by:
id
in interfaceS_FilterEntry
-
id
public S_FilterExit id(long... identifiers)
- Specified by:
id
in interfaceS_FilterEntry
-
ownerId
public S_FilterExit ownerId(String... identifiers)
- Specified by:
ownerId
in interfaceS_FilterEntry
-
ownerId
public S_FilterExit ownerId(long... identifiers)
- Specified by:
ownerId
in interfaceS_FilterEntry
-
isDirectChildOf
public S_FilterExit isDirectChildOf(PrismReferenceValue value)
- Specified by:
isDirectChildOf
in interfaceS_FilterEntry
-
isChildOf
public S_FilterExit isChildOf(PrismReferenceValue value)
- Specified by:
isChildOf
in interfaceS_FilterEntry
-
isParentOf
public S_FilterExit isParentOf(PrismReferenceValue value)
- Specified by:
isParentOf
in interfaceS_FilterEntry
-
isDirectChildOf
public S_FilterExit isDirectChildOf(String oid)
- Specified by:
isDirectChildOf
in interfaceS_FilterEntry
-
isChildOf
public S_FilterExit isChildOf(String oid)
- Specified by:
isChildOf
in interfaceS_FilterEntry
-
isInScopeOf
public S_FilterExit isInScopeOf(String oid, OrgFilter.Scope scope)
- Specified by:
isInScopeOf
in interfaceS_FilterEntry
-
isInScopeOf
public S_FilterExit isInScopeOf(PrismReferenceValue value, OrgFilter.Scope scope)
- Specified by:
isInScopeOf
in interfaceS_FilterEntry
-
isParentOf
public S_FilterExit isParentOf(String oid)
- Specified by:
isParentOf
in interfaceS_FilterEntry
-
isRoot
public S_FilterExit isRoot()
- Specified by:
isRoot
in interfaceS_FilterEntry
-
fullText
public S_FilterExit fullText(String... words)
- Specified by:
fullText
in interfaceS_FilterEntry
-
block
public S_FilterEntryOrEmpty block()
- Specified by:
block
in interfaceS_FilterEntry
-
type
public S_FilterEntryOrEmpty type(Class<? extends Containerable> type)
- Specified by:
type
in interfaceS_FilterEntry
-
referencedBy
public S_FilterEntryOrEmpty referencedBy(@NotNull @NotNull Class<? extends Containerable> type, @NotNull @NotNull ItemPath path, QName relation)
Description copied from interface:S_FilterEntry
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() ----- Specified by:
referencedBy
in 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
public S_FilterEntryOrEmpty ref(ItemPath path, QName targetType, QName relation, String... oids)
- Specified by:
ref
in interfaceS_FilterEntry
-
ownedBy
public com.evolveum.midpoint.prism.impl.query.builder.R_Filter.OwnedByEntry ownedBy(Class<? extends Containerable> type, ItemPath path)
- Specified by:
ownedBy
in interfaceS_FilterEntry
-
type
public S_FilterEntryOrEmpty type(@NotNull @NotNull QName typeName)
- Specified by:
type
in interfaceS_FilterEntry
-
exists
public S_FilterEntryOrEmpty exists(Object... components)
- Specified by:
exists
in interfaceS_FilterEntry
-
and
public S_FilterEntry and()
- Specified by:
and
in interfaceS_FilterExit
-
or
public S_FilterEntry or()
- Specified by:
or
in interfaceS_FilterExit
-
not
public S_FilterEntry not()
- Specified by:
not
in interfaceS_FilterEntry
-
item
public S_ConditionEntry item(QName... names)
- Specified by:
item
in interfaceS_FilterEntry
-
item
public S_ConditionEntry item(String... names)
- Specified by:
item
in interfaceS_FilterEntry
-
item
public S_ConditionEntry item(ItemPath itemPath)
- Specified by:
item
in interfaceS_FilterEntry
-
itemWithDef
public S_ConditionEntry itemWithDef(ItemDefinition itemDefinition, QName... names)
- Specified by:
itemWithDef
in interfaceS_FilterEntry
-
item
public S_ConditionEntry item(ItemPath itemPath, ItemDefinition itemDefinition)
- Specified by:
item
in interfaceS_FilterEntry
-
item
public S_ConditionEntry item(PrismContainerDefinition containerDefinition, QName... names)
- Specified by:
item
in interfaceS_FilterEntry
-
item
public S_ConditionEntry item(PrismContainerDefinition containerDefinition, ItemPath itemPath)
- Specified by:
item
in interfaceS_FilterEntry
-
itemAs
public S_MatchingRuleEntry itemAs(PrismProperty<?> property)
- Specified by:
itemAs
in interfaceS_FilterEntry
-
endBlock
public S_FilterExit endBlock()
Description copied from interface:S_QueryExit
Closes theS_FilterEntry.block()
construction. It is a bit high in hierarchy to allow empty block().end() construction without additional interface.- Specified by:
endBlock
in interfaceS_QueryExit
-
hasRestriction
protected boolean hasRestriction()
-
asc
public S_FilterExit asc(QName... names)
- Specified by:
asc
in interfaceS_QueryExit
-
asc
public S_FilterExit asc(ItemPath path)
- Specified by:
asc
in interfaceS_QueryExit
-
desc
public S_FilterExit desc(QName... names)
- Specified by:
desc
in interfaceS_QueryExit
-
desc
public S_FilterExit desc(ItemPath path)
- Specified by:
desc
in interfaceS_QueryExit
-
offset
public S_FilterExit offset(Integer n)
- Specified by:
offset
in interfaceS_QueryExit
-
maxSize
public S_FilterExit maxSize(Integer n)
- Specified by:
maxSize
in interfaceS_QueryExit
-
build
public ObjectQuery build()
- Specified by:
build
in interfaceS_QueryExit
-
buildFilter
public ObjectFilter buildFilter()
- Specified by:
buildFilter
in interfaceS_QueryExit
-
getPrismContext
public PrismContext getPrismContext()
-
-