|
||||||||
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.ResGrpAddCmdImpl
Adds a new resource Group to the datasource. 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
resGrpName
- Name of the new resource group
resGrpDisplayName
- Display name of the new resource group
resGrpDesc
- Description of the new resource group
conditions
- The conditions object for the resource group
resGroupId
for this
new entry it also enters a description for the resource group
in the resource group description table if a description is specified
in the user interface.
The command then parses the comma delimited String
containing the resCgryIds
of all the resources to be
associated with this resource group and iteratively calls the
ResCgryResGrpAddTaskCmd
task command to populate the
relationship table associating an resource group with its constituent resources.
Field Summary | |
protected java.lang.String |
resCgryIds
Comma delimited string containing ids of resources to be added to resource group |
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.ResGrpAddCmd |
COPYRIGHT, defaultCommandClassName, NAME |
Fields inherited from interface com.ibm.commerce.command.ECTargetableCommand |
COPYRIGHT |
Constructor Summary | |
ResGrpAddCmdImpl()
|
Method Summary | |
java.lang.String |
getDescription()
Gets the description of the resource group. |
java.lang.String |
getResCgryIds()
Gets the list of resCgry ids to be added to the resource group. |
java.lang.String |
getResGrpDisplayName()
Gets the display name of the resource group. |
java.lang.String |
getResGrpName()
Gets the name of the resource group. |
AccessVector |
getResources()
This method 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. |
void |
performExecute()
Adds the resource group to 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 resCgry ids to be added to the resource group. |
void |
setResGrpDisplayName(java.lang.String resGrpDisplayName)
Sets the display name of the resource group |
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 ResGrpAddCmdImpl()
Method Detail |
public java.lang.String getDescription()
getDescription
in interface ResGrpAddCmd
public java.lang.String getResCgryIds()
getResCgryIds
in interface ResGrpAddCmd
resCgryIds
public java.lang.String getResGrpDisplayName()
getResGrpDisplayName
in interface ResGrpAddCmd
public java.lang.String getResGrpName()
getResGrpName
in interface ResGrpAddCmd
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 ResGrpAddCmd
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 ResGrpAddCmd
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 ResGrpAddCmd
resCgryIds
- The comma delimited String of resCgryIds
public void setResGrpDisplayName(java.lang.String resGrpDisplayName)
setResGrpDisplayName
in interface ResGrpAddCmd
resGrpDisplayName
- The display name of the resource grouppublic void setResGrpName(java.lang.String resGrpName)
setResGrpName
in interface ResGrpAddCmd
resGrpName
- The name of the resource grouppublic void setViewTask(java.lang.String viewTask)
setViewTask
in interface ResGrpAddCmd
viewTask
- View that is executed upon completion of the commandpublic void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
- If an error is encountered while
checking the parameters
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |