Package com.evolveum.midpoint.model.impl
Class ModelObjectResolver
java.lang.Object
com.evolveum.midpoint.model.impl.ModelObjectResolver
- All Implemented Interfaces:
- ObjectResolver
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.evolveum.midpoint.repo.common.ObjectResolverObjectResolver.Session
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescription<O extends ObjectType>
 IntegercountObjects(Class<O> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, Task task, OperationResult result) <T extends ObjectType>
 TgetObject(@NotNull Class<T> clazz, @NotNull String oid, @Nullable Collection<SelectorOptions<GetOperationOptions>> options, @NotNull Task task, @NotNull OperationResult result) <T extends ObjectType>
 TgetObjectSimple(Class<T> clazz, String oid, GetOperationOptions options, Task task, OperationResult result) @NotNull PrismObject<SystemConfigurationType><O extends ObjectType>
 PrismObject<O>resolve(PrismReferenceValue refVal, String contextDesc, GetOperationOptions options, Task task, OperationResult result) <O extends ObjectType>
 PrismObject<O>resolve(PrismReferenceValue refVal, String contextDesc, Task task, OperationResult result) <O extends ObjectType>
 Oresolve(Referencable ref, Class<O> expectedType, Collection<SelectorOptions<GetOperationOptions>> options, String contextDescription, Task task, OperationResult result) Resolve the provided reference to object (ObjectType).voidresolveAllReferences(Collection<PrismContainerValue<?>> pcvs, Object taskObject, OperationResult result) voidresolveReference(PrismReferenceValue prv, String contextDescription, ObjectResolver.Session session, Object taskObject, OperationResult result) <O extends ObjectType>
 voidsearchIterative(Class<O> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, ResultHandler<O> handler, Task task, OperationResult result) <O extends ObjectType>
 SearchResultList<PrismObject<O>>searchObjects(Class<O> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, Task task, OperationResult result) <R,O extends ObjectType> 
 RsearchOrgTreeWidthFirst(PrismObject<O> object, Function<PrismObject<OrgType>, R> function, Task task, OperationResult result) <O extends ObjectType,R extends ObjectType> 
 PrismObject<R>searchOrgTreeWidthFirstReference(PrismObject<O> object, Function<PrismObject<OrgType>, ObjectReferenceType> function, String shortDesc, Task task, OperationResult result) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.repo.common.ObjectResolveropenResolutionSession
- 
Constructor Details- 
ModelObjectResolverpublic ModelObjectResolver()
 
- 
- 
Method Details- 
resolve@NotNull public <O extends ObjectType> O resolve(Referencable ref, Class<O> expectedType, Collection<SelectorOptions<GetOperationOptions>> options, String contextDescription, Task task, OperationResult result) throws ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException Description copied from interface:ObjectResolverResolve 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:
- resolvein 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
- CommunicationException
- ConfigurationException
- SecurityViolationException
- ExpressionEvaluationException
 
- 
resolvepublic <O extends ObjectType> PrismObject<O> resolve(PrismReferenceValue refVal, String contextDesc, Task task, OperationResult result) throws ObjectNotFoundException - Throws:
- ObjectNotFoundException
 
- 
resolvepublic <O extends ObjectType> PrismObject<O> resolve(PrismReferenceValue refVal, String contextDesc, GetOperationOptions options, Task task, OperationResult result) throws ObjectNotFoundException - Throws:
- ObjectNotFoundException
 
- 
getObjectSimplepublic <T extends ObjectType> T getObjectSimple(Class<T> clazz, String oid, GetOperationOptions options, Task task, OperationResult result) throws ObjectNotFoundException - Throws:
- ObjectNotFoundException
 
- 
getObject@NotNull public <T extends ObjectType> T getObject(@NotNull @NotNull Class<T> clazz, @NotNull @NotNull String oid, @Nullable @Nullable Collection<SelectorOptions<GetOperationOptions>> options, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult result) throws ObjectNotFoundException, CommunicationException, SchemaException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException - Specified by:
- getObjectin interface- ObjectResolver
- Throws:
- ObjectNotFoundException
- CommunicationException
- SchemaException
- ConfigurationException
- SecurityViolationException
- ExpressionEvaluationException
 
- 
searchIterativepublic <O extends ObjectType> void searchIterative(Class<O> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, ResultHandler<O> handler, Task task, OperationResult result) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException - Specified by:
- searchIterativein interface- ObjectResolver
- Throws:
- SchemaException
- ObjectNotFoundException
- CommunicationException
- ConfigurationException
- SecurityViolationException
- ExpressionEvaluationException
 
- 
searchObjectspublic <O extends ObjectType> SearchResultList<PrismObject<O>> searchObjects(Class<O> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, Task task, OperationResult result) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException - Specified by:
- searchObjectsin interface- ObjectResolver
- Throws:
- SchemaException
- ObjectNotFoundException
- CommunicationException
- ConfigurationException
- SecurityViolationException
- ExpressionEvaluationException
 
- 
countObjectspublic <O extends ObjectType> Integer countObjects(Class<O> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, Task task, OperationResult result) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException 
- 
getSystemConfiguration@NotNull public @NotNull PrismObject<SystemConfigurationType> getSystemConfiguration(OperationResult result) throws ObjectNotFoundException, SchemaException 
- 
searchOrgTreeWidthFirstReferencepublic <O extends ObjectType,R extends ObjectType> PrismObject<R> searchOrgTreeWidthFirstReference(PrismObject<O> object, Function<PrismObject<OrgType>, ObjectReferenceType> function, String shortDesc, Task task, OperationResult result) throws SchemaException- Throws:
- SchemaException
 
- 
searchOrgTreeWidthFirstpublic <R,O extends ObjectType> R searchOrgTreeWidthFirst(PrismObject<O> object, Function<PrismObject<OrgType>, R> function, Task task, OperationResult result) 
- 
resolveAllReferences@Experimental public void resolveAllReferences(Collection<PrismContainerValue<?>> pcvs, Object taskObject, OperationResult result) - Specified by:
- resolveAllReferencesin interface- ObjectResolver
 
- 
resolveReferencepublic void resolveReference(PrismReferenceValue prv, String contextDescription, ObjectResolver.Session session, Object taskObject, OperationResult result) - Specified by:
- resolveReferencein interface- ObjectResolver
 
 
-