Class ContextLoader
- java.lang.Object
-
- com.evolveum.midpoint.model.impl.lens.projector.ContextLoader
-
@Component public class ContextLoader extends Object
Context loader loads the missing parts of the context. The context enters the projector with just the minimum information. Context loader gets missing data such as accounts. It gets them from the repository or provisioning as necessary. It follows the account links in user (accountRef) and user deltas.- Author:
- Radovan Semancik
-
-
Constructor Summary
Constructors Constructor Description ContextLoader()
-
Method Summary
-
-
-
Field Detail
-
CLASS_DOT
public static final String CLASS_DOT
-
-
Method Detail
-
load
public <F extends ObjectType> void load(LensContext<F> context, String activityDescription, Task task, OperationResult parentResult) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException, PolicyViolationException, ExpressionEvaluationException
-
makeSureProjectionIsLoaded
public <F extends ObjectType> void makeSureProjectionIsLoaded(LensContext<F> context, LensProjectionContext projectionContext, Task task, OperationResult result) throws ObjectNotFoundException, CommunicationException, SchemaException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException
Make sure that the projection context is loaded as appropriate.
-
determineFocusContext
public <O extends ObjectType> void determineFocusContext(LensContext<O> context, Task task, OperationResult parentResult) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException
try to load focus context from oid, delta, projections (e.g. by determining account owners)
-
updateArchetype
public <F extends AssignmentHolderType> ArchetypeType updateArchetype(LensContext<F> context, Task task, OperationResult result) throws SchemaException, ConfigurationException
-
updateArchetypePolicy
public <F extends ObjectType> void updateArchetypePolicy(LensContext<F> context, Task task, OperationResult result) throws SchemaException, ConfigurationException
-
setFocusTemplate
public <F extends ObjectType> void setFocusTemplate(LensContext<F> context, OperationResult result) throws ObjectNotFoundException, SchemaException
-
loadFullShadow
public <F extends ObjectType> void loadFullShadow(LensContext<F> context, LensProjectionContext projCtx, String reason, Task task, OperationResult parentResult) throws ObjectNotFoundException, CommunicationException, SchemaException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException
-
refreshContextAfterShadowNotFound
public <F extends ObjectType> void refreshContextAfterShadowNotFound(LensContext<F> context, LensProjectionContext projCtx, Collection<SelectorOptions<GetOperationOptions>> options, Task task, OperationResult result) throws ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, ExpressionEvaluationException
-
reloadSecurityPolicyIfNeeded
public <F extends ObjectType> void reloadSecurityPolicyIfNeeded(LensContext<F> context, Task task, OperationResult result) throws ExpressionEvaluationException, ObjectNotFoundException, SchemaException, PolicyViolationException, CommunicationException, ConfigurationException, SecurityViolationException
-
loadSecurityPolicy
public <F extends ObjectType> void loadSecurityPolicy(LensContext<F> context, Task task, OperationResult result) throws ExpressionEvaluationException, ObjectNotFoundException, SchemaException, PolicyViolationException, CommunicationException, ConfigurationException, SecurityViolationException
-
-