Class SearchOpHandler
java.lang.Object
com.evolveum.midpoint.repo.cache.handlers.BaseOpHandler
com.evolveum.midpoint.repo.cache.handlers.SearchOpHandler
Handler for searchObjects/searchObjectsIterative operations.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Queries resulting in more objects will not be cached "as such" - although individual objects/versions can be cached. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T extends Containerable>
intcountContainers
(Class<T> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, OperationResult parentResult) <T extends ObjectType>
intcountObjects
(Class<T> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, OperationResult parentResult) int
countReferences
(ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, OperationResult parentResult) <T extends Containerable>
@NotNull SearchResultList<T>searchContainers
(Class<T> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, OperationResult parentResult) <T extends Containerable>
SearchResultMetadatasearchContainersIterative
(@NotNull Class<T> type, @Nullable ObjectQuery query, @NotNull ObjectHandler<T> handler, @Nullable Collection<SelectorOptions<GetOperationOptions>> options, @NotNull OperationResult parentResult) <T extends ObjectType>
@NotNull SearchResultList<PrismObject<T>>searchObjects
(Class<T> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, OperationResult parentResult) <T extends ObjectType>
SearchResultMetadatasearchObjectsIterative
(Class<T> type, ObjectQuery query, ResultHandler<T> handler, Collection<SelectorOptions<GetOperationOptions>> options, boolean strictlySequential, OperationResult parentResult) searchReferences
(ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, OperationResult parentResult) searchReferencesIterative
(@Nullable ObjectQuery query, @NotNull ObjectHandler<ObjectReferenceType> handler, @Nullable Collection<SelectorOptions<GetOperationOptions>> options, @NotNull OperationResult parentResult) <F extends FocusType>
PrismObject<F>searchShadowOwner
(String shadowOid, Collection<SelectorOptions<GetOperationOptions>> options, OperationResult parentResult)
-
Field Details
-
QUERY_RESULT_SIZE_LIMIT
public static final int QUERY_RESULT_SIZE_LIMITQueries resulting in more objects will not be cached "as such" - although individual objects/versions can be cached.- See Also:
-
-
Constructor Details
-
SearchOpHandler
public SearchOpHandler()
-
-
Method Details
-
searchObjects
@NotNull public <T extends ObjectType> @NotNull SearchResultList<PrismObject<T>> searchObjects(Class<T> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, OperationResult parentResult) throws SchemaException - Throws:
SchemaException
-
searchObjectsIterative
public <T extends ObjectType> SearchResultMetadata searchObjectsIterative(Class<T> type, ObjectQuery query, ResultHandler<T> handler, Collection<SelectorOptions<GetOperationOptions>> options, boolean strictlySequential, OperationResult parentResult) throws SchemaException - Throws:
SchemaException
-
searchShadowOwner
public <F extends FocusType> PrismObject<F> searchShadowOwner(String shadowOid, Collection<SelectorOptions<GetOperationOptions>> options, OperationResult parentResult) -
searchContainers
@NotNull public <T extends Containerable> @NotNull SearchResultList<T> searchContainers(Class<T> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, OperationResult parentResult) throws SchemaException - Throws:
SchemaException
-
countContainers
public <T extends Containerable> int countContainers(Class<T> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, OperationResult parentResult) -
searchReferences
public SearchResultList<ObjectReferenceType> searchReferences(ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, OperationResult parentResult) throws SchemaException - Throws:
SchemaException
-
countReferences
public int countReferences(ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, OperationResult parentResult) -
searchReferencesIterative
public SearchResultMetadata searchReferencesIterative(@Nullable @Nullable ObjectQuery query, @NotNull @NotNull ObjectHandler<ObjectReferenceType> handler, @Nullable @Nullable Collection<SelectorOptions<GetOperationOptions>> options, @NotNull @NotNull OperationResult parentResult) throws SchemaException - Throws:
SchemaException
-
searchContainersIterative
public <T extends Containerable> SearchResultMetadata searchContainersIterative(@NotNull @NotNull Class<T> type, @Nullable @Nullable ObjectQuery query, @NotNull @NotNull ObjectHandler<T> handler, @Nullable @Nullable Collection<SelectorOptions<GetOperationOptions>> options, @NotNull @NotNull OperationResult parentResult) throws SchemaException - Throws:
SchemaException
-
countObjects
public <T extends ObjectType> int countObjects(Class<T> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, OperationResult parentResult) throws SchemaException - Throws:
SchemaException
-