Class InputTranslationAction

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.in.InputTranslationAction
Direct Known Subclasses:
BlindStopperInputAction, IncludeInputProfileActionFactory.IncludeInputProfileAction

public abstract class InputTranslationAction extends TranslationActionInstance
Instance of this interface is configured with parameters and performs a translation of a remotely obtained information about a client.
Author:
K. Benedyczak
  • Constructor Details

    • InputTranslationAction

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

    • invoke

      public final MappingResult invoke(RemotelyAuthenticatedInput input, Object mvelCtx, String currentProfile) throws pl.edu.icm.unity.base.exceptions.EngineException
      Performs the translation.
      Parameters:
      input -
      mvelCtx - context which can be used in MVEL expression evaluation
      currentProfile - name of the current profile
      Returns:
      result of the mapping
      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 MappingResult invokeWrapped(RemotelyAuthenticatedInput input, Object mvelCtx, String currentProfile) throws pl.edu.icm.unity.base.exceptions.EngineException
      Throws:
      pl.edu.icm.unity.base.exceptions.EngineException