|
||||||||
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.PolicyUpdateCmdImpl
Modifies a pre-existing policy in 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
policyId
- Id of the policy to be modified
policyName
- Name of the new policy
policyDisplayName
- Display name of the new policy
userGroupId
- The user group id tuple of the policy
resourceGroup
- The reource group id tuple of the policy
actionGroup
- The action group id tuple of the policy
ownerId
- The owner id tuple of the policy
policyDescription
- Description of the new policy
relation
- The relation id tuple of the new policy
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.PolicyUpdateCmd |
COPYRIGHT, defaultCommandClassName, NAME |
Fields inherited from interface com.ibm.commerce.command.ECTargetableCommand |
COPYRIGHT |
Constructor Summary | |
PolicyUpdateCmdImpl()
|
Method Summary | |
java.lang.Integer |
getActionGroupId()
Gets the action group id tuple of the policy |
java.lang.Long |
getOwnerId()
Gets the owner id of the policy |
java.lang.String |
getPolicyDesc()
Gets the description of the policy |
java.lang.String |
getPolicyDisplayName()
Gets the display name of the policy |
java.lang.Integer |
getPolicyId()
Gets the policyId of the policy |
java.lang.String |
getPolicyName()
Gets the name of the policy |
java.lang.Integer |
getRelationId()
Gets the relation id tuple of the policy |
java.lang.Integer |
getResourceGroupId()
Gets the resource group id tuple of the policy |
AccessVector |
getResources()
This method returns the resources accessed by this command It will return null if no resources are being accessed by this command. |
java.lang.Long |
getUserGroupId()
Gets the user group id tuple of the policy |
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 specified policies in the datasource. |
void |
setActionGroupId(java.lang.Integer actionGroupId)
Sets the action group id tuple of the policy |
void |
setOwnerId(java.lang.Long ownerId)
Sets the owner id of the policy |
void |
setPolicyDesc(java.lang.String policyDesc)
Sets the description of the policy |
void |
setPolicyDisplayName(java.lang.String policyDisplayName)
Sets the display name of the policy |
void |
setPolicyId(java.lang.Integer policyId)
Sets the policyId of the policy |
void |
setPolicyName(java.lang.String policyName)
Sets the name of the policy |
void |
setRelationId(java.lang.Integer relationId)
Sets the relation id tuple of the policy |
void |
setRequestProperties(TypedProperty reqParms)
Sets the various properties of the command with the parameters received |
void |
setResourceGroupId(java.lang.Integer resourceGroupId)
Sets the resource group id tuple of the policy |
void |
setUserGroupId(java.lang.Long userGroupId)
Sets the user group id tuple of the policy |
void |
setViewTask(java.lang.String newViewTask)
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 |
Constructor Detail |
public PolicyUpdateCmdImpl()
Method Detail |
public java.lang.Integer getActionGroupId()
getActionGroupId
in interface PolicyUpdateCmd
public java.lang.Long getOwnerId()
getOwnerId
in interface PolicyUpdateCmd
public java.lang.String getPolicyDesc()
getPolicyDesc
in interface PolicyUpdateCmd
public java.lang.String getPolicyDisplayName()
getPolicyDisplayName
in interface PolicyUpdateCmd
public java.lang.Integer getPolicyId()
getPolicyId
in interface PolicyUpdateCmd
public java.lang.String getPolicyName()
getPolicyName
in interface PolicyUpdateCmd
public java.lang.Integer getRelationId()
getRelationId
in interface PolicyUpdateCmd
public java.lang.Integer getResourceGroupId()
getResourceGroupId
in interface PolicyUpdateCmd
public AccessVector getResources() throws ECException
getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand
public java.lang.Long getUserGroupId()
getUserGroupId
in interface PolicyUpdateCmd
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 PolicyUpdateCmd
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in class AbstractECTargetableCommand
ECException
- If an error is encountered while
updating the datasourcepublic void setActionGroupId(java.lang.Integer actionGroupId)
setActionGroupId
in interface PolicyUpdateCmd
actionGroupId
- The action group id tuple of the policypublic void setOwnerId(java.lang.Long ownerId)
setOwnerId
in interface PolicyUpdateCmd
ownerId
- The owner id of the policypublic void setPolicyDesc(java.lang.String policyDesc)
setPolicyDesc
in interface PolicyUpdateCmd
policyDesc
- The description of the policypublic void setPolicyDisplayName(java.lang.String policyDisplayName)
setPolicyDisplayName
in interface PolicyUpdateCmd
policyDisplayName
- The display name of the policypublic void setPolicyId(java.lang.Integer policyId)
setPolicyId
in interface PolicyUpdateCmd
policyId
- The policyId of the policypublic void setPolicyName(java.lang.String policyName)
setPolicyName
in interface PolicyUpdateCmd
policyName
- The name of the policypublic void setRelationId(java.lang.Integer relationId)
setRelationId
in interface PolicyUpdateCmd
relationId
- The relation id tuple of the policypublic 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 setResourceGroupId(java.lang.Integer resourceGroupId)
setResourceGroupId
in interface PolicyUpdateCmd
resourceGroupId
- The resource group id tuple of the policypublic void setUserGroupId(java.lang.Long userGroupId)
setUserGroupId
in interface PolicyUpdateCmd
userGroupId
- The user group id tuple of the policypublic void setViewTask(java.lang.String newViewTask)
setViewTask
in interface PolicyUpdateCmd
viewTask
- View that is executed upon completion of the commandpublic 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 |