Class RepoObjectResolver
java.lang.Object
com.evolveum.midpoint.repo.common.RepoObjectResolver
- All Implemented Interfaces:
- ObjectResolver
This is only used in tests. But due to complicated dependencies this is
 part of main code. That does not hurt much.
- Author:
- Radovan Semancik
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.evolveum.midpoint.repo.common.ObjectResolverObjectResolver.Session
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescription<O extends ObjectType>
 OgetObject(@NotNull Class<O> expectedType, @NotNull String oid, @Nullable Collection<SelectorOptions<GetOperationOptions>> options, @Nullable Task task, @NotNull OperationResult parentResult) <O extends ObjectType>
 Oresolve(Referencable ref, Class<O> expectedType, Collection<SelectorOptions<GetOperationOptions>> options, String contextDescription, Task task, OperationResult result) Resolve the provided reference to object (ObjectType).<O extends ObjectType>
 voidsearchIterative(Class<O> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, ResultHandler<O> handler, Task task, OperationResult parentResult) <O extends ObjectType>
 SearchResultList<PrismObject<O>>searchObjects(Class<O> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, Task task, OperationResult parentResult) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.repo.common.ObjectResolveropenResolutionSession, resolveAllReferences, resolveReference
- 
Constructor Details- 
RepoObjectResolverpublic RepoObjectResolver()
 
- 
- 
Method Details- 
searchIterativepublic <O extends ObjectType> void searchIterative(Class<O> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, ResultHandler<O> handler, Task task, OperationResult parentResult) throws SchemaException - Specified by:
- searchIterativein interface- ObjectResolver
- Throws:
- SchemaException
 
- 
searchObjectspublic <O extends ObjectType> SearchResultList<PrismObject<O>> searchObjects(Class<O> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, Task task, OperationResult parentResult) throws SchemaException - Specified by:
- searchObjectsin interface- ObjectResolver
- Throws:
- SchemaException
 
- 
resolve@NotNull public <O extends ObjectType> O resolve(Referencable ref, Class<O> expectedType, Collection<SelectorOptions<GetOperationOptions>> options, String contextDescription, Task task, OperationResult result) Description copied from interface:ObjectResolverResolve the provided reference to object (ObjectType). Note: The reference is used instead of just OID because the reference also contains object type. This speeds up the repository operations.- Specified by:
- resolvein interface- ObjectResolver
- Parameters:
- ref- object reference to resolve
- contextDescription- short description of the context of resolution, e.g. "executing expression FOO". Used in error messages.
- Returns:
- resolved object
 
- 
getObjectpublic <O extends ObjectType> O getObject(@NotNull @NotNull Class<O> expectedType, @NotNull @NotNull String oid, @Nullable @Nullable Collection<SelectorOptions<GetOperationOptions>> options, @Nullable @Nullable Task task, @NotNull @NotNull OperationResult parentResult) throws ObjectNotFoundException, SchemaException - Specified by:
- getObjectin interface- ObjectResolver
- Throws:
- ObjectNotFoundException
- SchemaException
 
 
-