setUserActionCommand
public void setUserActionCommand(java.lang.String userActionCommand)
This method can be used to set the user action command directly to the UserActionContext. When set directly,
toString() method will explicitly set the user action cmd to sb.
fromString() method will set the value back into the getter setter for user action command.
If user action command is set using below statements. fromString() will set it back to setUserActionCommand() and contextDataList will not have entry for useraction command.
However older versions of code will have the getter/setter hence will have to get the useraction command from the contextdata list itself.
//--------------------------------------------------------------------------------------------------------------------------------------------------
UserContextData userContextData = new UserContextData(PluginConstants.USER_ACTION_COMMAND, PluginConstants.USER_ACTION_COMMAND, "SOME_VALUE"
new CredentialMetaData((PluginConstants.HIDDEN));
actionContext.getContextData().add(userContextData);
//--------------------------------------------------------------------------------------------------------------------------------------------------
- Specified by:
setUserActionCommand
in interface ActionContext
- Parameters:
userActionCommand
-