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
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
ConstructorDescriptionInputTranslationAction
(pl.edu.icm.unity.base.translation.TranslationActionType actionType, String[] parameters) -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.base.translation.TranslationAction
getName, getParameters, toString
-
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 evaluationcurrentProfile
- name of the current profile- Returns:
- result of the mapping
- Throws:
pl.edu.icm.unity.base.exceptions.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 pl.edu.icm.unity.base.exceptions.EngineException - Throws:
pl.edu.icm.unity.base.exceptions.EngineException
-