Class PredefinedActivationMappingEvaluator
java.lang.Object
com.evolveum.midpoint.model.impl.lens.projector.mappings.predefinedActivationMapping.PredefinedActivationMappingEvaluator
- Direct Known Subclasses:
DelayedDeleteEvaluator,DisableInsteadOfDeleteEvaluator,PreProvisionEvaluator
Abstract class for predefined activation mapping evaluators.
Evaluator define existence value and create deltas for activation mapping. Current supported only administrator status.
And return time for creating of triggers.
-
Method Summary
Modifier and TypeMethodDescription<F extends FocusType>
voiddefineActivationProperty(LensContext<F> context, LensProjectionContext projCtx, ItemPath path, Task task, OperationResult result) Create a delta for specified account activation property (`path`), if needed.protected <F extends FocusType>
voiddefineAdministratorStatus(LensContext<F> context, LensProjectionContext projCtx, Task task, OperationResult result) abstract <F extends FocusType>
booleandefineExistence(LensContext<F> context, LensProjectionContext projCtx) getName()<F extends FocusType>
XMLGregorianCalendargetNextRecomputeTime(LensContext<F> context, LensProjectionContext projCtx, ItemPath path, XMLGregorianCalendar now) protected <F extends FocusType>
XMLGregorianCalendargetNextRecomputeTimeForExistence(LensContext<F> context, LensProjectionContext projCtx, XMLGregorianCalendar now) abstract <F extends FocusType>
booleanisApplicable(LensContext<F> context, LensProjectionContext projCtx, XMLGregorianCalendar now) booleanisConfigured(Task task) booleansupportsActivationProperty(ItemPath projectionPropertyPath) protected booleantoString()
-
Method Details
-
defineExistence
public abstract <F extends FocusType> boolean defineExistence(LensContext<F> context, LensProjectionContext projCtx) - Returns:
- existence value for account
-
defineActivationProperty
public <F extends FocusType> void defineActivationProperty(LensContext<F> context, LensProjectionContext projCtx, ItemPath path, Task task, OperationResult result) throws SchemaException, ExpressionEvaluationException, CommunicationException, SecurityViolationException, ConfigurationException, ObjectNotFoundException, MappingLoader.NotLoadedException Create a delta for specified account activation property (`path`), if needed. As a side effect, it may load the full shadow (to check if the value is not already there).- Parameters:
path- define path for activation attribute of account- Throws:
SchemaExceptionExpressionEvaluationExceptionCommunicationExceptionSecurityViolationExceptionConfigurationExceptionObjectNotFoundExceptionMappingLoader.NotLoadedException
-
getNextRecomputeTime
public <F extends FocusType> XMLGregorianCalendar getNextRecomputeTime(LensContext<F> context, LensProjectionContext projCtx, ItemPath path, XMLGregorianCalendar now) throws SchemaException, ConfigurationException - Returns:
- time for creating of trigger for shadow
- Throws:
SchemaExceptionConfigurationException
-
getNextRecomputeTimeForExistence
protected <F extends FocusType> XMLGregorianCalendar getNextRecomputeTimeForExistence(LensContext<F> context, LensProjectionContext projCtx, XMLGregorianCalendar now) throws SchemaException, ConfigurationException -
defineAdministratorStatus
protected <F extends FocusType> void defineAdministratorStatus(LensContext<F> context, LensProjectionContext projCtx, Task task, OperationResult result) throws SchemaException, ExpressionEvaluationException, CommunicationException, SecurityViolationException, ConfigurationException, ObjectNotFoundException, MappingLoader.NotLoadedException -
isConfigured
- Returns:
- return true when
activationDefinitionBeancontains configuration for current evaluator
-
isApplicable
public abstract <F extends FocusType> boolean isApplicable(LensContext<F> context, LensProjectionContext projCtx, XMLGregorianCalendar now) throws SchemaException, ConfigurationException - Returns:
- return true when evaluator is applicable for current shadow (because of some condition, time constraint, etc.)
- Throws:
SchemaExceptionConfigurationException
-
supportsActivationProperty
- Returns:
- return true when support activation attribute defined by projectionPropertyPath
-
supportsAdministratorStatus
protected boolean supportsAdministratorStatus() -
getName
-
toString
-