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

Method Summary
<T extends ObjectType>
T
resolve(ObjectReferenceType ref, Class<T> expectedType, String contextDescription, OperationResult result)
          Resolve the provided reference to object (ObjectType).
 

Method Detail

resolve

<T extends ObjectType> T resolve(ObjectReferenceType ref,
                                 Class<T> expectedType,
                                 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 resolve
contextDescription - 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
IllegalArgumentException - wrong OID format, etc.


Copyright © 2013 evolveum. All Rights Reserved.