com.ibm.commerce.accesscontrol.policyeditor.commands
Interface ResGrpUpdateCmd

All Superinterfaces:
AccCommand, ControllerCommand, ECCommand, Protectable, ToolsControllerCommand
All Known Implementing Classes:
ResGrpUpdateCmdImpl

public interface ResGrpUpdateCmd
extends ToolsControllerCommand

Updates the resource group data. Following is the list of parameters the command accepts from the User Interface:

This command modifies an existing entry in the resource group table.

The following steps are executed by the command sequentially:

  1. Modifies the name of the resource group and also the description if a description is specified in the user interface.
  2. Parses the list of resource Ids to obtain an array of resCgryIds to be associated with this resource group.
  3. Deletes any existing associations with resources by calling iteratively instantiating the ResGrpResAccessBean access bean.
  4. Adds new associations with resources specified in the resCgryId array by iteratively calling the ResCgryResGrpAddTaskCmd task command.


Field Summary
static java.lang.String COPYRIGHT
          copyright notice
static java.lang.String defaultCommandClassName
          name of the default implementation of this command
static java.lang.String NAME
          name of this command
 
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
 java.lang.String getViewTask()
          Gets the view task name to be returned to the caller
 void setDescription(java.lang.String description)
          Sets the description of the resource group
 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.
 
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, 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, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
copyright notice

defaultCommandClassName

public static final java.lang.String defaultCommandClassName
name of the default implementation of this command

NAME

public static final java.lang.String NAME
name of this command
Method Detail

getDescription

public java.lang.String getDescription()
Gets the description of the resource group
Returns:
The description of the resource group

getResCgryIds

public java.lang.String getResCgryIds()
Gets the list of resource ids to be added to the resource group.
Returns:
The comma delimited string of all the resources to to be associated with this resource group

getResGrpDisplayName

public java.lang.String getResGrpDisplayName()
Gets the display name of the resource group.
Returns:
The display name of the resource group

getResGrpId

public java.lang.Integer getResGrpId()
Gets the resource group Id
Returns:
the resource group Id

getResGrpName

public java.lang.String getResGrpName()
Gets the name of the resource group
Returns:
The name of the resource group

getViewTask

public java.lang.String getViewTask()
Gets the view task name to be returned to the caller
Returns:
The view task name to be returned to the caller.

setDescription

public void setDescription(java.lang.String description)
Sets the description of the resource group
Parameters:
description - The description of the resource group

setResCgryIds

public void setResCgryIds(java.lang.String resCgryIds)
Sets the list of resource ids to be added to the resource group.
Parameters:
resCgryIds - The comma delimited string of all the resources to to be associated with this resource group

setResGrpDisplayName

public void setResGrpDisplayName(java.lang.String resGrpDisplayName)
Sets the display name of the resource group
Parameters:
resGrpDisplayName - The display name of the resource group

setResGrpId

public void setResGrpId(java.lang.Integer resGrpId)
Sets the resource group Id
Parameters:
resGrpName - The resource group Id

setResGrpName

public void setResGrpName(java.lang.String resGrpName)
Sets the name of the resource group
Parameters:
resGrpName - The name of the resource group

setViewTask

public void setViewTask(java.lang.String viewTask)
Sets the view task name to be returned to the caller.
Parameters:
viewTask - The view task name to be returned to the caller.