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

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

public interface PolicyDeleteCmd
extends ToolsControllerCommand

Deletes Policies from the datasource. Following is the list of parameters the command accepts from the User Interface:

This command first parses the comma delimited String containing the policy ids of all the policies to be deleted and then iteratively calls the PolicyDeleteTaskCmd task command to delete the individual policies from the datasource.


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.Long getOwnerId()
          Gets the owner Id of the policy owner
 java.lang.String getPolicyIds()
          Gets the list of policy ids to be deleted.
 java.lang.String getViewTask()
          Gets the view task name.
 void setOwnerId(java.lang.Long ownerId)
          Sets the owner Id of the policy owner
 void setPolicyIds(java.lang.String policyIds)
          Sets the list of policy ids to be deleted.
 void setViewTask(java.lang.String newViewTask)
          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

getOwnerId

public java.lang.Long getOwnerId()
Gets the owner Id of the policy owner
Returns:
The owner Id of the policy owner

getPolicyIds

public java.lang.String getPolicyIds()
Gets the list of policy ids to be deleted.
Returns:
The comma delimited String of policyIds

getViewTask

public java.lang.String getViewTask()
Gets the view task name.
Returns:
View that is executed upon completion of the command

setOwnerId

public void setOwnerId(java.lang.Long ownerId)
Sets the owner Id of the policy owner
Parameters:
ownerId - the owner Id of the policy owner

setPolicyIds

public void setPolicyIds(java.lang.String policyIds)
Sets the list of policy ids to be deleted.
Parameters:
policyIds - The comma delimited String of policyIds

setViewTask

public void setViewTask(java.lang.String newViewTask)
Sets the view task name to be returned to the caller.
Parameters:
viewTask - View that is executed upon completion of the command