Class RepoObjectResolver
- java.lang.Object
-
- com.evolveum.midpoint.repo.common.RepoObjectResolver
-
- All Implemented Interfaces:
ObjectResolver
public class RepoObjectResolver extends Object implements 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 Summary
-
Nested classes/interfaces inherited from interface com.evolveum.midpoint.repo.common.ObjectResolver
ObjectResolver.Session
-
-
Constructor Summary
Constructors Constructor Description RepoObjectResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <O extends ObjectType>
OgetObject(Class<O> expectedType, String oid, Collection<SelectorOptions<GetOperationOptions>> options, Task task, 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.repo.common.ObjectResolver
openResolutionSession, resolveAllReferences, resolveReference
-
-
-
-
Method Detail
-
searchIterative
public <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:
searchIterative
in interfaceObjectResolver
- Throws:
SchemaException
-
searchObjects
public <O extends ObjectType> SearchResultList<PrismObject<O>> searchObjects(Class<O> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, Task task, OperationResult parentResult) throws SchemaException
- Specified by:
searchObjects
in interfaceObjectResolver
- Throws:
SchemaException
-
resolve
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:ObjectResolver
Resolve 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:
resolve
in interfaceObjectResolver
- Parameters:
ref
- object reference to resolvecontextDescription
- short description of the context of resolution, e.g. "executing expression FOO". Used in error messages.- Returns:
- resolved object
-
getObject
public <O extends ObjectType> O getObject(Class<O> expectedType, String oid, Collection<SelectorOptions<GetOperationOptions>> options, Task task, OperationResult parentResult) throws ObjectNotFoundException, SchemaException
- Specified by:
getObject
in interfaceObjectResolver
- Throws:
ObjectNotFoundException
SchemaException
-
-