|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.tools.command.ToolsControllerCommandImpl | +--com.ibm.commerce.accesscontrol.policyeditor.commands.ResGrpUpdateCmdImpl
Updates the resource group data. Following is the list of parameters the command accepts from the User Interface:
viewtaskname
- View that is executed upon completion of the command
resCgryId
- Comma delimited string of resource ids
resGrpId
- Id of the resource group to be modified
resGrpName
- Modified name of the new resource group
resGrpDisplayName
- Display name of the new resource group
resGrpDesc
- Modified description of the resource group
conditions
- Modified conditions object of the resource group
This command modifies an existing entry in the resource group table.
The following steps are executed by the command sequentially:
ResGrpResAccessBean
access bean.
resCgryId
array by iteratively calling the ResCgryResGrpAddTaskCmd
task
command.
Field Summary | |
protected java.lang.String |
resCgryIds
Incoming values of resource Ids to be deleted |
Fields inherited from class com.ibm.commerce.command.ControllerCommandImpl |
requestProperties, responseProperties, retriable, viewReqProperties |
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.accesscontrol.policyeditor.commands.ResGrpUpdateCmd |
COPYRIGHT, defaultCommandClassName, NAME |
Fields inherited from interface com.ibm.commerce.command.ECTargetableCommand |
COPYRIGHT |
Constructor Summary | |
ResGrpUpdateCmdImpl()
|
Method Summary | |
java.lang.String |
getDescription()
Gets the description of the resource group |
java.lang.String |
getResCgryIds()
Gets the list of resource ids to be added to the resource group. |
java.lang.String |
getResGrpDisplayName()
Gets the display name of the resource group. |
java.lang.Integer |
getResGrpId()
Gets the resource group Id |
java.lang.String |
getResGrpName()
Gets the name of the resource group |
AccessVector |
getResources()
Returns the resources accessed by this command It will return null if no resources are being accessed by this command. |
TypedProperty |
getViewInputProperties()
This method is called by the web controller to retrieve the request properties set by the setRequestProperties() method. |
java.lang.String |
getViewTask()
Gets the view task name to be returned to the caller |
void |
performExecute()
Updates the resource group in the datasource. |
void |
setDescription(java.lang.String description)
Sets the description of the resource group |
void |
setRequestProperties(TypedProperty reqParms)
Sets the various properties of the command with the parameters received |
void |
setResCgryIds(java.lang.String resCgryIds)
Sets the list of resource ids to be added to the resource group. |
void |
setResGrpDisplayName(java.lang.String resGrpDisplayName)
Sets the display name of the resource group |
void |
setResGrpId(java.lang.Integer resGrpId)
Sets the resource group Id |
void |
setResGrpName(java.lang.String resGrpName)
Sets the name of the resource group |
void |
setViewTask(java.lang.String viewTask)
Sets the view task name to be returned to the caller. |
void |
validateParameters()
Check whether all the parameters are set properly. |
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl |
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties |
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.AccCommand |
accessControlCheck, getAccCheck, getForUserId, setAccCheck, setForUserId, setOwner |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.security.Protectable |
fulfills, getOwner |
Field Detail |
protected java.lang.String resCgryIds
Constructor Detail |
public ResGrpUpdateCmdImpl()
Method Detail |
public java.lang.String getDescription()
getDescription
in interface ResGrpUpdateCmd
public java.lang.String getResCgryIds()
getResCgryIds
in interface ResGrpUpdateCmd
public java.lang.String getResGrpDisplayName()
getResGrpDisplayName
in interface ResGrpUpdateCmd
public java.lang.Integer getResGrpId()
getResGrpId
in interface ResGrpUpdateCmd
public java.lang.String getResGrpName()
getResGrpName
in interface ResGrpUpdateCmd
public AccessVector getResources() throws ECException
getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand
public TypedProperty getViewInputProperties()
getViewInputProperties()
method in the ToolsControllerCommandImpl
command. This takes care of removing the parameters specific to the tools framework.getViewInputProperties
in interface ControllerCommand
getViewInputProperties
in class ToolsControllerCommandImpl
public java.lang.String getViewTask()
getViewTask
in interface ResGrpUpdateCmd
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in class AbstractECTargetableCommand
ECException
- If an error is encountered while
updating the datasourcepublic void setDescription(java.lang.String description)
setDescription
in interface ResGrpUpdateCmd
description
- The description of the resource grouppublic void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ToolsControllerCommandImpl
reqParms
- TypedProperty containing the input parameters.ECApplicationException
- If a required parameter is missingpublic void setResCgryIds(java.lang.String resCgryIds)
setResCgryIds
in interface ResGrpUpdateCmd
resCgryIds
- The comma delimited string of all the resources to
to be associated with this resource grouppublic void setResGrpDisplayName(java.lang.String resGrpDisplayName)
setResGrpDisplayName
in interface ResGrpUpdateCmd
resGrpDisplayName
- The display name of the resource grouppublic void setResGrpId(java.lang.Integer resGrpId)
setResGrpId
in interface ResGrpUpdateCmd
resGrpName
- The resource group Idpublic void setResGrpName(java.lang.String resGrpName)
setResGrpName
in interface ResGrpUpdateCmd
resGrpName
- The name of the resource grouppublic void setViewTask(java.lang.String viewTask)
setViewTask
in interface ResGrpUpdateCmd
viewTask
- The view task name to be returned to the caller.public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
com.ibm.commerce.command.ECCommand
ECException.
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |