com.evolveum.midpoint.test.util
Class DirectoryFileObjectResolver

java.lang.Object
  extended by com.evolveum.midpoint.test.util.DirectoryFileObjectResolver
All Implemented Interfaces:
ObjectResolver

public class DirectoryFileObjectResolver
extends java.lang.Object
implements ObjectResolver

Author:
semancik

Constructor Summary
DirectoryFileObjectResolver(java.io.File directory)
           
 
Method Summary
<T extends ObjectType>
T
resolve(ObjectReferenceType ref, java.lang.Class<T> expectedType, java.lang.String contextDescription, OperationResult result)
          Resolve the provided reference to object (ObjectType).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryFileObjectResolver

public DirectoryFileObjectResolver(java.io.File directory)
Method Detail

resolve

public <T extends ObjectType> T resolve(ObjectReferenceType ref,
                                        java.lang.Class<T> expectedType,
                                        java.lang.String contextDescription,
                                        OperationResult result)
                             throws ObjectNotFoundException,
                                    SchemaException
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 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
Throws:
ObjectNotFoundException - requested object does not exist
SchemaException - error dealing with storage schema


Copyright © 2012 evolveum. All Rights Reserved.