com.ibm.commerce.accesscontrol.policyeditor.commands
Class ActionActGrpAddTaskCmdImpl
java.lang.Object
|
+--com.ibm.commerce.command.AbstractECCommand
|
+--com.ibm.commerce.command.TaskCommandImpl
|
+--com.ibm.commerce.accesscontrol.policyeditor.commands.ActionActGrpAddTaskCmdImpl
- All Implemented Interfaces:
- ActionActGrpAddTaskCmd, ECCommand, TaskCommand
- public class ActionActGrpAddTaskCmdImpl
- extends TaskCommandImpl
- implements ActionActGrpAddTaskCmd
Associates an individual action with an action group.
This command accepts an action Id and an action group Id as input.
With these parameters creates an entry in the relationship table between action group
and action by using the ActActGrpAccessBean
.
Method Summary |
int |
getActGrpId()
Gets the action group Id |
int |
getActionId()
Gets the value of the action id to be added to the action group. |
java.lang.String |
getResultMsg()
Gets the message to be returned to the caller. |
void |
performExecute()
Adds entry into the relationship table between action and action group. |
void |
setActGrpId(int actGrpId)
Sets the action group Id |
void |
setActionId(int actionId)
Sets the value of the action id to be added to the action group. |
void |
setResultMsg(java.lang.String resultMsg)
Sets the message to be returned to the caller. |
Methods inherited from class com.ibm.commerce.command.AbstractECCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
ActionActGrpAddTaskCmdImpl
public ActionActGrpAddTaskCmdImpl()
- Constructs an ActionActGrpAddTaskCmdImpl object.
getActGrpId
public int getActGrpId()
- Gets the action group Id
- Specified by:
getActGrpId
in interface ActionActGrpAddTaskCmd
- Returns:
- The action group Id
getActionId
public int getActionId()
- Gets the value of the action id to be added to the action group.
- Specified by:
getActionId
in interface ActionActGrpAddTaskCmd
- Returns:
- The value of the action id
getResultMsg
public java.lang.String getResultMsg()
- Gets the message to be returned to the caller.
- Specified by:
getResultMsg
in interface ActionActGrpAddTaskCmd
- Returns:
- Message that is returned to the caller
upon completion of the command
performExecute
public void performExecute()
throws ECException
- Adds entry into the relationship table between action and action group.
- Specified by:
performExecute
in interface ECCommand
- Overrides:
performExecute
in class AbstractECCommand
- Throws:
ECException
- If an error is encountered while
updating the datasource
setActGrpId
public void setActGrpId(int actGrpId)
- Sets the action group Id
- Specified by:
setActGrpId
in interface ActionActGrpAddTaskCmd
- Parameters:
actGrpId
- The action group Id
setActionId
public void setActionId(int actionId)
- Sets the value of the action id to be added to the action group.
- Specified by:
setActionId
in interface ActionActGrpAddTaskCmd
- Parameters:
actionId
- The value of the action id
setResultMsg
public void setResultMsg(java.lang.String resultMsg)
- Sets the message to be returned to the caller.
- Specified by:
setResultMsg
in interface ActionActGrpAddTaskCmd
- Parameters:
resultMsg
- Message that is returned to the caller
upon completion of the command