com.evolveum.midpoint.schema.util
Interface ObjectResolver
- All Known Implementing Classes:
- DirectoryFileObjectResolver, ModelObjectResolver
public interface ObjectResolver
The callback from some of the object utilities to resolve objects.
The classes implementing this will most likely fetch the objects from the
repository or from some kind of object cache.
- Author:
- Radovan Semancik
resolve
ObjectType resolve(ObjectReferenceType ref,
java.lang.String contextDescription,
OperationResult result)
throws ObjectNotFoundException,
SchemaException
- 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.
- 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 exist
SchemaException
- error dealing with storage schema
java.lang.IllegalArgumentException
- wrong OID format, etc.
Copyright © 2012 evolveum. All Rights Reserved.