@Component public class ModelObjectResolver extends Object implements ObjectResolver
Constructor and Description |
---|
ModelObjectResolver() |
Modifier and Type | Method and Description |
---|---|
<O extends ObjectType> |
countObjects(Class<O> type,
ObjectQuery query,
OperationResult parentResult) |
<T extends ObjectType> |
getObject(Class<T> clazz,
String oid,
GetOperationOptions options,
Task task,
OperationResult result) |
<T extends ObjectType> |
getObjectSimple(Class<T> clazz,
String oid,
GetOperationOptions options,
Task task,
OperationResult result) |
<O extends ObjectType> |
resolve(ObjectReferenceType ref,
Class<O> expectedType,
String contextDescription,
OperationResult result)
Resolve the provided reference to object (ObjectType).
|
PrismObject<?> |
resolve(PrismReferenceValue refVal,
String string,
GetOperationOptions options,
Task task,
OperationResult result) |
PrismObject<?> |
resolve(PrismReferenceValue refVal,
String string,
Task task,
OperationResult result) |
<O extends ObjectType> |
searchIterative(Class<O> type,
ObjectQuery query,
ResultHandler<O> handler,
OperationResult parentResult) |
public <O extends ObjectType> O resolve(ObjectReferenceType ref, Class<O> expectedType, String contextDescription, OperationResult result) throws ObjectNotFoundException, SchemaException
ObjectResolver
resolve
in interface ObjectResolver
ref
- object reference to resolvecontextDescription
- short description of the context of resolution, e.g. "executing expression FOO". Used in error messages.ObjectNotFoundException
- requested object does not existSchemaException
- error dealing with storage schemapublic PrismObject<?> resolve(PrismReferenceValue refVal, String string, Task task, OperationResult result) throws ObjectNotFoundException
ObjectNotFoundException
public PrismObject<?> resolve(PrismReferenceValue refVal, String string, GetOperationOptions options, Task task, OperationResult result) throws ObjectNotFoundException
ObjectNotFoundException
public <T extends ObjectType> T getObjectSimple(Class<T> clazz, String oid, GetOperationOptions options, Task task, OperationResult result) throws ObjectNotFoundException
ObjectNotFoundException
public <T extends ObjectType> T getObject(Class<T> clazz, String oid, GetOperationOptions options, Task task, OperationResult result) throws ObjectNotFoundException, CommunicationException, SchemaException, ConfigurationException, SecurityViolationException
public <O extends ObjectType> void searchIterative(Class<O> type, ObjectQuery query, ResultHandler<O> handler, OperationResult parentResult) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException
public <O extends ObjectType> int countObjects(Class<O> type, ObjectQuery query, OperationResult parentResult) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException
Copyright © 2013 evolveum. All rights reserved.