Class RegistrationTranslationAction

java.lang.Object
pl.edu.icm.unity.base.translation.TranslationAction
pl.edu.icm.unity.engine.api.translation.TranslationActionInstance
pl.edu.icm.unity.engine.api.translation.form.RegistrationTranslationAction

public abstract class RegistrationTranslationAction extends TranslationActionInstance
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
  • Constructor Details

    • RegistrationTranslationAction

      public RegistrationTranslationAction(pl.edu.icm.unity.base.translation.TranslationActionType actionType, String[] parameters)
  • Method Details

    • invoke

      public final void invoke(TranslatedRegistrationRequest state, Object mvelCtx, RegistrationContext context, String currentProfile) throws pl.edu.icm.unity.base.exceptions.EngineException
      Performs the translation.
      Parameters:
      state -
      context - which can be used to extract request related data
      mvelCtx - context which can be used in MVEL expression evaluation
      currentProfile - name of the current profile
      Throws:
      pl.edu.icm.unity.base.exceptions.EngineException - when an error occurs. You can throw ExecutionBreakException to gently stop the processing of further rules.
    • invokeWrapped

      protected abstract void invokeWrapped(TranslatedRegistrationRequest state, Object mvelCtx, RegistrationContext contexts, String currentProfile) throws pl.edu.icm.unity.base.exceptions.EngineException
      Throws:
      pl.edu.icm.unity.base.exceptions.EngineException
    • validateGroupRestrictedForm

      public abstract void validateGroupRestrictedForm(GroupRestrictedFormValidationContext context) throws ActionValidationException
      Throws:
      ActionValidationException