com.evolveum.midpoint.model
Class ModelObjectResolver
java.lang.Object
com.evolveum.midpoint.model.ModelObjectResolver
- All Implemented Interfaces:
- ObjectResolver
@Component
public class ModelObjectResolver
- extends Object
- implements ObjectResolver
- Author:
- semancik
Method Summary |
|
getObject(Class<T> clazz,
String oid,
GetOperationOptions options,
OperationResult result)
|
|
resolve(ObjectReferenceType ref,
Class<T> expectedType,
String contextDescription,
OperationResult result)
Resolve the provided reference to object (ObjectType). |
PrismObject<?> |
resolve(PrismReferenceValue refVal,
String string,
GetOperationOptions options,
OperationResult result)
|
PrismObject<?> |
resolve(PrismReferenceValue refVal,
String string,
OperationResult result)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModelObjectResolver
public ModelObjectResolver()
resolve
public <T extends ObjectType> T resolve(ObjectReferenceType ref,
Class<T> expectedType,
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 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
resolve
public PrismObject<?> resolve(PrismReferenceValue refVal,
String string,
OperationResult result)
throws ObjectNotFoundException
- Throws:
ObjectNotFoundException
resolve
public PrismObject<?> resolve(PrismReferenceValue refVal,
String string,
GetOperationOptions options,
OperationResult result)
throws ObjectNotFoundException
- Throws:
ObjectNotFoundException
getObject
public <T extends ObjectType> T getObject(Class<T> clazz,
String oid,
GetOperationOptions options,
OperationResult result)
throws ObjectNotFoundException
- Throws:
ObjectNotFoundException
Copyright © 2013 evolveum. All Rights Reserved.