Class QueryFactoryImpl
- java.lang.Object
-
- com.evolveum.midpoint.prism.impl.query.QueryFactoryImpl
-
- All Implemented Interfaces:
QueryFactory
public class QueryFactoryImpl extends Object implements QueryFactory
-
-
Constructor Summary
Constructors Constructor Description QueryFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AllFilter
createAll()
@NotNull AndFilter
createAnd(ObjectFilter... conditions)
@NotNull AndFilter
createAnd(List<ObjectFilter> conditions)
<T> @NotNull EqualFilter<T>
createEqual(@NotNull ItemPath path, @Nullable PrismPropertyDefinition<T> definition, @Nullable QName matchingRule)
<T> @NotNull EqualFilter<T>
createEqual(@NotNull ItemPath path, @Nullable PrismPropertyDefinition<T> definition, @Nullable QName matchingRule, @NotNull ExpressionWrapper expression)
<T> @NotNull EqualFilter<T>
createEqual(@NotNull ItemPath path, @Nullable PrismPropertyDefinition<T> definition, @Nullable QName matchingRule, @NotNull PrismContext prismContext, Object... values)
<T> @NotNull EqualFilter<T>
createEqual(@NotNull ItemPath path, PrismPropertyDefinition<T> definition, QName matchingRule, @NotNull ItemPath rightSidePath, ItemDefinition<?> rightSideDefinition)
<C extends Containerable>
@NotNull ExistsFiltercreateExists(ItemPath path, Class<C> containerType, PrismContext prismContext, ObjectFilter inner)
<T> @NotNull GreaterFilter<T>
createGreater(@NotNull ItemPath path, PrismPropertyDefinition<T> definition, boolean equals)
<T> @NotNull GreaterFilter<T>
createGreater(@NotNull ItemPath path, PrismPropertyDefinition<T> definition, QName matchingRule, @NotNull ExpressionWrapper wrapper, boolean equals)
<T> @NotNull GreaterFilter<T>
createGreater(@NotNull ItemPath path, PrismPropertyDefinition<T> definition, QName matchingRule, @NotNull ItemPath rightSidePath, ItemDefinition<?> rightSideDefinition, boolean equals)
<T> @NotNull GreaterFilter<T>
createGreater(@NotNull ItemPath path, PrismPropertyDefinition<T> definition, QName matchingRule, Object value, boolean equals, @NotNull PrismContext prismContext)
@NotNull InOidFilter
createInOid(String... oids)
@NotNull InOidFilter
createInOid(Collection<String> oids)
<T> @NotNull LessFilter<T>
createLess(@NotNull ItemPath path, PrismPropertyDefinition<T> definition, boolean equals)
<T> @NotNull LessFilter<T>
createLess(@NotNull ItemPath path, PrismPropertyDefinition<T> definition, QName matchingRule, @NotNull ExpressionWrapper expressionWrapper, boolean equals)
<T> @NotNull LessFilter<T>
createLess(@NotNull ItemPath path, PrismPropertyDefinition<T> definition, QName matchingRule, @NotNull ItemPath rightSidePath, ItemDefinition<?> rightSideDefinition, boolean equals)
<T> @NotNull LessFilter<T>
createLess(@NotNull ItemPath path, PrismPropertyDefinition<T> definition, QName matchingRule, Object value, boolean equals, @NotNull PrismContext prismContext)
NoneFilter
createNone()
@NotNull NotFilter
createNot(ObjectFilter inner)
@NotNull OrFilter
createOr(ObjectFilter... conditions)
@NotNull OrFilter
createOr(List<ObjectFilter> conditions)
@NotNull ObjectOrdering
createOrdering(ItemPath orderBy, OrderDirection direction)
@NotNull OrgFilter
createOrg(PrismReferenceValue baseOrgRef, OrgFilter.Scope scope)
@NotNull OrgFilter
createOrg(String baseOrgOid, OrgFilter.Scope scope)
@NotNull InOidFilter
createOwnerHasOidIn(String... oids)
@NotNull InOidFilter
createOwnerHasOidIn(Collection<String> oids)
@NotNull ObjectPaging
createPaging()
@NotNull ObjectPaging
createPaging(ItemPath orderBy, OrderDirection direction)
@NotNull ObjectPaging
createPaging(Integer offset, Integer maxSize)
@NotNull ObjectPaging
createPaging(Integer offset, Integer maxSize, ItemPath orderBy, OrderDirection direction)
@NotNull ObjectPaging
createPaging(Integer offset, Integer maxSize, List<ObjectOrdering> orderings)
@NotNull ObjectQuery
createQuery()
@NotNull ObjectQuery
createQuery(ObjectFilter filter)
@NotNull ObjectQuery
createQuery(ObjectFilter filter, ObjectPaging paging)
@NotNull ObjectQuery
createQuery(ObjectPaging paging)
@NotNull ObjectQuery
createQuery(XNode condition, ObjectFilter filter)
@NotNull RefFilter
createReferenceEqual(ItemPath path, PrismReferenceDefinition definition, ExpressionWrapper expression)
@NotNull RefFilter
createReferenceEqual(ItemPath path, PrismReferenceDefinition definition, Collection<PrismReferenceValue> values)
@NotNull OrgFilter
createRootOrg()
@NotNull TypeFilter
createType(QName type, ObjectFilter filter)
ObjectFilter
createUndefined()
-
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.QueryFactory
createAndOptimized, createOrOptimized
-
-
-
-
Method Detail
-
createAll
public AllFilter createAll()
- Specified by:
createAll
in interfaceQueryFactory
-
createNone
public NoneFilter createNone()
- Specified by:
createNone
in interfaceQueryFactory
-
createUndefined
public ObjectFilter createUndefined()
- Specified by:
createUndefined
in interfaceQueryFactory
-
createEqual
@NotNull public <T> @NotNull EqualFilter<T> createEqual(@NotNull @NotNull ItemPath path, @Nullable @Nullable PrismPropertyDefinition<T> definition, @Nullable @Nullable QName matchingRule)
- Specified by:
createEqual
in interfaceQueryFactory
-
createEqual
@NotNull public <T> @NotNull EqualFilter<T> createEqual(@NotNull @NotNull ItemPath path, @Nullable @Nullable PrismPropertyDefinition<T> definition, @Nullable @Nullable QName matchingRule, @NotNull @NotNull PrismContext prismContext, Object... values)
- Specified by:
createEqual
in interfaceQueryFactory
-
createEqual
@NotNull public <T> @NotNull EqualFilter<T> createEqual(@NotNull @NotNull ItemPath path, @Nullable @Nullable PrismPropertyDefinition<T> definition, @Nullable @Nullable QName matchingRule, @NotNull @NotNull ExpressionWrapper expression)
- Specified by:
createEqual
in interfaceQueryFactory
-
createEqual
@NotNull public <T> @NotNull EqualFilter<T> createEqual(@NotNull @NotNull ItemPath path, PrismPropertyDefinition<T> definition, QName matchingRule, @NotNull @NotNull ItemPath rightSidePath, ItemDefinition<?> rightSideDefinition)
- Specified by:
createEqual
in interfaceQueryFactory
-
createReferenceEqual
@NotNull public @NotNull RefFilter createReferenceEqual(ItemPath path, PrismReferenceDefinition definition, Collection<PrismReferenceValue> values)
- Specified by:
createReferenceEqual
in interfaceQueryFactory
-
createReferenceEqual
@NotNull public @NotNull RefFilter createReferenceEqual(ItemPath path, PrismReferenceDefinition definition, ExpressionWrapper expression)
- Specified by:
createReferenceEqual
in interfaceQueryFactory
-
createGreater
@NotNull public <T> @NotNull GreaterFilter<T> createGreater(@NotNull @NotNull ItemPath path, PrismPropertyDefinition<T> definition, boolean equals)
- Specified by:
createGreater
in interfaceQueryFactory
-
createGreater
@NotNull public <T> @NotNull GreaterFilter<T> createGreater(@NotNull @NotNull ItemPath path, PrismPropertyDefinition<T> definition, QName matchingRule, Object value, boolean equals, @NotNull @NotNull PrismContext prismContext)
- Specified by:
createGreater
in interfaceQueryFactory
-
createGreater
@NotNull public <T> @NotNull GreaterFilter<T> createGreater(@NotNull @NotNull ItemPath path, PrismPropertyDefinition<T> definition, QName matchingRule, @NotNull @NotNull ExpressionWrapper wrapper, boolean equals)
- Specified by:
createGreater
in interfaceQueryFactory
-
createGreater
@NotNull public <T> @NotNull GreaterFilter<T> createGreater(@NotNull @NotNull ItemPath path, PrismPropertyDefinition<T> definition, QName matchingRule, @NotNull @NotNull ItemPath rightSidePath, ItemDefinition<?> rightSideDefinition, boolean equals)
- Specified by:
createGreater
in interfaceQueryFactory
-
createLess
@NotNull public <T> @NotNull LessFilter<T> createLess(@NotNull @NotNull ItemPath path, PrismPropertyDefinition<T> definition, boolean equals)
- Specified by:
createLess
in interfaceQueryFactory
-
createLess
@NotNull public <T> @NotNull LessFilter<T> createLess(@NotNull @NotNull ItemPath path, PrismPropertyDefinition<T> definition, QName matchingRule, Object value, boolean equals, @NotNull @NotNull PrismContext prismContext)
- Specified by:
createLess
in interfaceQueryFactory
-
createLess
@NotNull public <T> @NotNull LessFilter<T> createLess(@NotNull @NotNull ItemPath path, PrismPropertyDefinition<T> definition, QName matchingRule, @NotNull @NotNull ExpressionWrapper expressionWrapper, boolean equals)
- Specified by:
createLess
in interfaceQueryFactory
-
createLess
@NotNull public <T> @NotNull LessFilter<T> createLess(@NotNull @NotNull ItemPath path, PrismPropertyDefinition<T> definition, QName matchingRule, @NotNull @NotNull ItemPath rightSidePath, ItemDefinition<?> rightSideDefinition, boolean equals)
- Specified by:
createLess
in interfaceQueryFactory
-
createAnd
@NotNull public @NotNull AndFilter createAnd(ObjectFilter... conditions)
- Specified by:
createAnd
in interfaceQueryFactory
-
createAnd
@NotNull public @NotNull AndFilter createAnd(List<ObjectFilter> conditions)
- Specified by:
createAnd
in interfaceQueryFactory
-
createOr
@NotNull public @NotNull OrFilter createOr(ObjectFilter... conditions)
- Specified by:
createOr
in interfaceQueryFactory
-
createOr
@NotNull public @NotNull OrFilter createOr(List<ObjectFilter> conditions)
- Specified by:
createOr
in interfaceQueryFactory
-
createNot
@NotNull public @NotNull NotFilter createNot(ObjectFilter inner)
- Specified by:
createNot
in interfaceQueryFactory
-
createExists
@NotNull public <C extends Containerable> @NotNull ExistsFilter createExists(ItemPath path, Class<C> containerType, PrismContext prismContext, ObjectFilter inner)
- Specified by:
createExists
in interfaceQueryFactory
-
createInOid
@NotNull public @NotNull InOidFilter createInOid(Collection<String> oids)
- Specified by:
createInOid
in interfaceQueryFactory
-
createInOid
@NotNull public @NotNull InOidFilter createInOid(String... oids)
- Specified by:
createInOid
in interfaceQueryFactory
-
createOwnerHasOidIn
@NotNull public @NotNull InOidFilter createOwnerHasOidIn(Collection<String> oids)
- Specified by:
createOwnerHasOidIn
in interfaceQueryFactory
-
createOwnerHasOidIn
@NotNull public @NotNull InOidFilter createOwnerHasOidIn(String... oids)
- Specified by:
createOwnerHasOidIn
in interfaceQueryFactory
-
createOrg
@NotNull public @NotNull OrgFilter createOrg(PrismReferenceValue baseOrgRef, OrgFilter.Scope scope)
- Specified by:
createOrg
in interfaceQueryFactory
-
createOrg
@NotNull public @NotNull OrgFilter createOrg(String baseOrgOid, OrgFilter.Scope scope)
- Specified by:
createOrg
in interfaceQueryFactory
-
createRootOrg
@NotNull public @NotNull OrgFilter createRootOrg()
- Specified by:
createRootOrg
in interfaceQueryFactory
-
createType
@NotNull public @NotNull TypeFilter createType(QName type, ObjectFilter filter)
- Specified by:
createType
in interfaceQueryFactory
-
createOrdering
@NotNull public @NotNull ObjectOrdering createOrdering(ItemPath orderBy, OrderDirection direction)
- Specified by:
createOrdering
in interfaceQueryFactory
-
createPaging
@NotNull public @NotNull ObjectPaging createPaging(Integer offset, Integer maxSize)
- Specified by:
createPaging
in interfaceQueryFactory
-
createPaging
@NotNull public @NotNull ObjectPaging createPaging(Integer offset, Integer maxSize, ItemPath orderBy, OrderDirection direction)
- Specified by:
createPaging
in interfaceQueryFactory
-
createPaging
@NotNull public @NotNull ObjectPaging createPaging(Integer offset, Integer maxSize, List<ObjectOrdering> orderings)
- Specified by:
createPaging
in interfaceQueryFactory
-
createPaging
@NotNull public @NotNull ObjectPaging createPaging(ItemPath orderBy, OrderDirection direction)
- Specified by:
createPaging
in interfaceQueryFactory
-
createPaging
@NotNull public @NotNull ObjectPaging createPaging()
- Specified by:
createPaging
in interfaceQueryFactory
-
createQuery
@NotNull public @NotNull ObjectQuery createQuery()
- Specified by:
createQuery
in interfaceQueryFactory
-
createQuery
@NotNull public @NotNull ObjectQuery createQuery(ObjectFilter filter)
- Specified by:
createQuery
in interfaceQueryFactory
-
createQuery
@NotNull public @NotNull ObjectQuery createQuery(XNode condition, ObjectFilter filter)
- Specified by:
createQuery
in interfaceQueryFactory
-
createQuery
@NotNull public @NotNull ObjectQuery createQuery(ObjectPaging paging)
- Specified by:
createQuery
in interfaceQueryFactory
-
createQuery
@NotNull public @NotNull ObjectQuery createQuery(ObjectFilter filter, ObjectPaging paging)
- Specified by:
createQuery
in interfaceQueryFactory
-
-