Class InputTranslationAction
- 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.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
-
-
Field Summary
-
Fields inherited from class pl.edu.icm.unity.engine.api.translation.TranslationActionInstance
actionType
-
-
Constructor Summary
Constructors Constructor Description InputTranslationAction(TranslationActionType actionType, String[] parameters)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description MappingResult
invoke(RemotelyAuthenticatedInput input, Object mvelCtx, String currentProfile)
Performs the translation.protected abstract MappingResult
invokeWrapped(RemotelyAuthenticatedInput input, Object mvelCtx, String currentProfile)
-
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 Detail
-
InputTranslationAction
public InputTranslationAction(TranslationActionType actionType, String[] parameters)
-
-
Method Detail
-
invoke
public final MappingResult invoke(RemotelyAuthenticatedInput input, Object mvelCtx, String currentProfile) throws EngineException
Performs the translation.- Parameters:
input
-mvelCtx
- context which can be used in MVEL expression evaluationcurrentProfile
- name of the current profile- Returns:
- result of the mapping
- Throws:
EngineException
- when an error occurs. You can throwExecutionBreakException
to gently stop the processing of further rules.
-
invokeWrapped
protected abstract MappingResult invokeWrapped(RemotelyAuthenticatedInput input, Object mvelCtx, String currentProfile) throws EngineException
- Throws:
EngineException
-
-