Class QueryFactoryImpl
- java.lang.Object
-
- com.evolveum.midpoint.prism.impl.query.QueryFactoryImpl
-
- All Implemented Interfaces:
QueryFactory
public class QueryFactoryImpl extends Object implements QueryFactory
TODO remove prism context parameter from the methods + set it in all filters created
-
-
Constructor Summary
Constructors Constructor Description QueryFactoryImpl(@NotNull PrismContextImpl prismContext)
-
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.QueryFactory
createAndOptimized, createOrOptimized
-
-
-
-
Constructor Detail
-
QueryFactoryImpl
public QueryFactoryImpl(@NotNull @NotNull PrismContextImpl prismContext)
-
-
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(ItemName 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, ItemPath groupBy)
- Specified by:
createPaging
in interfaceQueryFactory
-
createPaging
@NotNull public @NotNull ObjectPaging createPaging(Integer offset, Integer maxSize, ItemPath orderBy, OrderDirection direction, ItemPath groupBy)
- 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(Integer offset, Integer maxSize, List<ObjectOrdering> orderings, List<ObjectGrouping> groupings)
- 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(ItemPath orderBy, OrderDirection direction, ItemPath groupBy)
- Specified by:
createPaging
in interfaceQueryFactory
-
createPaging
@NotNull public @NotNull ObjectPaging createPaging(ItemPath groupBy)
- 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
-
-