com.ibm.commerce.accesscontrol.policyeditor.commands
Class ResCgryResGrpAddTaskCmdImpl
java.lang.Object
|
+--com.ibm.commerce.command.AbstractECCommand
|
+--com.ibm.commerce.command.TaskCommandImpl
|
+--com.ibm.commerce.accesscontrol.policyeditor.commands.ResCgryResGrpAddTaskCmdImpl
- All Implemented Interfaces:
- ECCommand, ResCgryResGrpAddTaskCmd, TaskCommand
- public class ResCgryResGrpAddTaskCmdImpl
- extends TaskCommandImpl
- implements ResCgryResGrpAddTaskCmd
Associates an individual resource with an resource group.
This command accepts a resource category Id and a
resource group Id as input. With these parameters it
creates an entry in the relationship table between resource
group and resource by using the ResGrpResAccessBean
.
Method Summary |
int |
getResCgryId()
Gets the value of the resource id to be added to the resource group. |
int |
getResGrpId()
Gets the resource group Id |
java.lang.String |
getResultMsg()
Gets the message to be returned to the caller. |
void |
performExecute()
Adds entry into the relationship table between resource and resource group. |
void |
setResCgryId(int resCgryId)
Sets the value of the resource id to be added to the resource group. |
void |
setResGrpId(int resGrpId)
Sets the resource group Id |
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 |
ResCgryResGrpAddTaskCmdImpl
public ResCgryResGrpAddTaskCmdImpl()
- Constructs a ResCgryResGrpAddTaskCmdImpl object.
getResCgryId
public int getResCgryId()
- Gets the value of the resource id to be added to the resource group.
- Specified by:
getResCgryId
in interface ResCgryResGrpAddTaskCmd
- Returns:
- The value of the resource id
getResGrpId
public int getResGrpId()
- Gets the resource group Id
- Specified by:
getResGrpId
in interface ResCgryResGrpAddTaskCmd
- Returns:
- The resource group Id
getResultMsg
public java.lang.String getResultMsg()
- Gets the message to be returned to the caller.
- Specified by:
getResultMsg
in interface ResCgryResGrpAddTaskCmd
- 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 resource and resource group.
- Specified by:
performExecute
in interface ECCommand
- Overrides:
performExecute
in class AbstractECCommand
- Throws:
ECException
- If an error is encountered while
updating the datasource
setResCgryId
public void setResCgryId(int resCgryId)
- Sets the value of the resource id to be added to the resource group.
- Specified by:
setResCgryId
in interface ResCgryResGrpAddTaskCmd
- Parameters:
resCgryId
- The value of the resource id
setResGrpId
public void setResGrpId(int resGrpId)
- Sets the resource group Id
- Specified by:
setResGrpId
in interface ResCgryResGrpAddTaskCmd
- Parameters:
resGrpId
- The resource group Id
setResultMsg
public void setResultMsg(java.lang.String resultMsg)
- Sets the message to be returned to the caller.
- Specified by:
setResultMsg
in interface ResCgryResGrpAddTaskCmd
- Parameters:
resultMsg
- Message that is returned to the caller
upon completion of the command