com.ibm.commerce.accesscontrol.policyeditor.commands
Class ResGrpDeleteTaskCmdImpl
java.lang.Object
|
+--com.ibm.commerce.command.AbstractECCommand
|
+--com.ibm.commerce.command.TaskCommandImpl
|
+--com.ibm.commerce.accesscontrol.policyeditor.commands.ResGrpDeleteTaskCmdImpl
- All Implemented Interfaces:
- ECCommand, ResGrpDeleteTaskCmd, TaskCommand
- public class ResGrpDeleteTaskCmdImpl
- extends TaskCommandImpl
- implements ResGrpDeleteTaskCmd
Deletes an individual resource group from the datasource.
This command accepts the id of the resource group to be deleted and
then instantiates the ResourceGroupAccessBean
using this id.
The resource group is then deleted from the datasource using this access bean.
Method Summary |
int |
getResGrpId()
Gets the resource group id. |
java.lang.String |
getResultMsg()
Gets the message to be returned to the caller. |
void |
performExecute()
Deletes the specified Resource Group from the datasource. |
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 |
ResGrpDeleteTaskCmdImpl
public ResGrpDeleteTaskCmdImpl()
- Constructs a ResGrpDeleteTaskCmdImpl object
getResGrpId
public int getResGrpId()
- Gets the resource group id.
- Specified by:
getResGrpId
in interface ResGrpDeleteTaskCmd
- Returns:
- The resource group id of the resource group to be deleted
getResultMsg
public java.lang.String getResultMsg()
- Gets the message to be returned to the caller.
- Specified by:
getResultMsg
in interface ResGrpDeleteTaskCmd
- Returns:
- Message that is returned to the caller
upon completion of the command
performExecute
public void performExecute()
throws ECException
- Deletes the specified Resource Group from the datasource.
- Specified by:
performExecute
in interface ECCommand
- Overrides:
performExecute
in class AbstractECCommand
- Throws:
ECException
- If an error is encountered while
updating the datasource
setResGrpId
public void setResGrpId(int resGrpId)
- Sets the resource group id.
- Specified by:
setResGrpId
in interface ResGrpDeleteTaskCmd
- Parameters:
resGrpId
- The resource group id of the resource group to be deleted
setResultMsg
public void setResultMsg(java.lang.String resultMsg)
- Sets the message to be returned to the caller.
- Specified by:
setResultMsg
in interface ResGrpDeleteTaskCmd
- Parameters:
resultMsg
- Message that is returned to the caller
upon completion of the command