Class RegistrationTranslationAction
java.lang.Object
pl.edu.icm.unity.types.translation.TranslationAction
pl.edu.icm.unity.engine.api.translation.TranslationActionInstance
pl.edu.icm.unity.engine.api.translation.form.RegistrationTranslationAction
Base of all actions operating on a contents of a registration request submitted by a prospective user.
Wraps of invocation with logging and exception protection.
- Author:
- K. Benedyczak
-
Field Summary
Fields inherited from class pl.edu.icm.unity.engine.api.translation.TranslationActionInstance
actionType
-
Constructor Summary
ConstructorDescriptionRegistrationTranslationAction
(TranslationActionType actionType, String[] parameters) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
invoke
(TranslatedRegistrationRequest state, Object mvelCtx, RegistrationContext context, String currentProfile) Performs the translation.protected abstract void
invokeWrapped
(TranslatedRegistrationRequest state, Object mvelCtx, RegistrationContext contexts, String currentProfile) abstract void
Methods inherited from class pl.edu.icm.unity.engine.api.translation.TranslationActionInstance
checkParams, equals, getActionType, hashCode
Methods inherited from class pl.edu.icm.unity.types.translation.TranslationAction
getName, getParameters, toString
-
Constructor Details
-
RegistrationTranslationAction
-
-
Method Details
-
invoke
public final void invoke(TranslatedRegistrationRequest state, Object mvelCtx, RegistrationContext context, String currentProfile) throws EngineException Performs the translation.- Parameters:
state
-context
- which can be used to extract request related datamvelCtx
- context which can be used in MVEL expression evaluationcurrentProfile
- name of the current profile- Throws:
EngineException
- when an error occurs. You can throwExecutionBreakException
to gently stop the processing of further rules.
-
invokeWrapped
protected abstract void invokeWrapped(TranslatedRegistrationRequest state, Object mvelCtx, RegistrationContext contexts, String currentProfile) throws EngineException - Throws:
EngineException
-
validateGroupRestrictedForm
public abstract void validateGroupRestrictedForm(GroupRestrictedFormValidationContext context) throws ActionValidationException - Throws:
ActionValidationException
-