|
||||||||
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.PolicyAddCmdImpl
Creates a new 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
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
policyType
- The type of the new policy
policyId
for this
new entry it also enters a description for the policy
in the policy description table if a description is specified
in the user interface.
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.PolicyAddCmd |
COPYRIGHT, defaultCommandClassName, NAME |
Fields inherited from interface com.ibm.commerce.command.ECTargetableCommand |
COPYRIGHT |
Constructor Summary | |
PolicyAddCmdImpl()
|
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 |
getPolicyType()
Gets the policyType 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()
Adds the policies to 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 |
setPolicyType(java.lang.Integer policyType)
Sets the policyType 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 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 |
Constructor Detail |
public PolicyAddCmdImpl()
Method Detail |
public java.lang.Integer getActionGroupId()
getActionGroupId
in interface PolicyAddCmd
public java.lang.Long getOwnerId()
getOwnerId
in interface PolicyAddCmd
public java.lang.String getPolicyDesc()
getPolicyDesc
in interface PolicyAddCmd
public java.lang.String getPolicyDisplayName()
getPolicyDisplayName
in interface PolicyAddCmd
public java.lang.Integer getPolicyId()
getPolicyId
in interface PolicyAddCmd
public java.lang.String getPolicyName()
getPolicyName
in interface PolicyAddCmd
public java.lang.Integer getPolicyType()
getPolicyType
in interface PolicyAddCmd
public java.lang.Integer getRelationId()
getRelationId
in interface PolicyAddCmd
public java.lang.Integer getResourceGroupId()
getResourceGroupId
in interface PolicyAddCmd
public AccessVector getResources() throws ECException
getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand
public java.lang.Long getUserGroupId()
getUserGroupId
in interface PolicyAddCmd
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 PolicyAddCmd
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 PolicyAddCmd
actionGroupId
- The action group id tuple of the policypublic void setOwnerId(java.lang.Long ownerId)
setOwnerId
in interface PolicyAddCmd
ownerId
- The owner id of the policypublic void setPolicyDesc(java.lang.String policyDesc)
setPolicyDesc
in interface PolicyAddCmd
policyDesc
- The description of the policypublic void setPolicyDisplayName(java.lang.String policyDisplayName)
setPolicyDisplayName
in interface PolicyAddCmd
policyDisplayName
- The display name of the policypublic void setPolicyId(java.lang.Integer policyId)
setPolicyId
in interface PolicyAddCmd
policyId
- The policyId of the policypublic void setPolicyName(java.lang.String policyName)
setPolicyName
in interface PolicyAddCmd
policyName
- The name of the policypublic void setPolicyType(java.lang.Integer policyType)
setPolicyType
in interface PolicyAddCmd
policyType
- The policyType of the policypublic void setRelationId(java.lang.Integer relationId)
setRelationId
in interface PolicyAddCmd
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 PolicyAddCmd
resourceGroupId
- The resource group id tuple of the policypublic void setUserGroupId(java.lang.Long userGroupId)
setUserGroupId
in interface PolicyAddCmd
userGroupId
- The user group id tuple of the policypublic void setViewTask(java.lang.String viewTask)
setViewTask
in interface PolicyAddCmd
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 |