Class DirectoryFileObjectResolver
java.lang.Object
com.evolveum.midpoint.repo.common.DirectoryFileObjectResolver
- All Implemented Interfaces:
ObjectResolver
Object resolver that works on files in a directory.
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 -
Method Summary
Modifier and TypeMethodDescription<T extends ObjectType>
TgetObject(@NotNull Class<T> clazz, @NotNull String oid, @Nullable Collection<SelectorOptions<GetOperationOptions>> options, @Nullable Task task, @NotNull OperationResult result) <T extends ObjectType>
Tresolve(Referencable ref, Class<T> 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, waitMethods inherited from interface com.evolveum.midpoint.repo.common.ObjectResolver
openResolutionSession, resolveAllReferences, resolveReference
-
Constructor Details
-
DirectoryFileObjectResolver
-
-
Method Details
-
resolve
@NotNull public <T extends ObjectType> T resolve(Referencable ref, Class<T> expectedType, Collection<SelectorOptions<GetOperationOptions>> options, String contextDescription, Task task, OperationResult result) throws ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException 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 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
- Throws:
ObjectNotFoundException- requested object does not existSchemaException- error dealing with storage schemaCommunicationExceptionConfigurationExceptionSecurityViolationExceptionExpressionEvaluationException
-
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, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException - Specified by:
searchIterativein interfaceObjectResolver- Throws:
SchemaExceptionObjectNotFoundExceptionCommunicationExceptionConfigurationExceptionSecurityViolationException
-
searchObjects
public <O extends ObjectType> SearchResultList<PrismObject<O>> searchObjects(Class<O> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, Task task, OperationResult parentResult) - Specified by:
searchObjectsin interfaceObjectResolver
-
getObject
@NotNull public <T extends ObjectType> T getObject(@NotNull @NotNull Class<T> clazz, @NotNull @NotNull String oid, @Nullable @Nullable Collection<SelectorOptions<GetOperationOptions>> options, @Nullable @Nullable Task task, @NotNull @NotNull OperationResult result) throws ObjectNotFoundException, SchemaException - Specified by:
getObjectin interfaceObjectResolver- Throws:
ObjectNotFoundExceptionSchemaException
-