com.ibm.commerce.productset.commands
Class ProductSetPolicyDeleteCmdImpl
com.ibm.commerce.command.AbstractECTargetableCommand
|
+--com.ibm.commerce.command.ControllerCommandImpl
|
+--com.ibm.commerce.productset.commands.ProductSetPolicyDeleteCmdImpl
- All Implemented Interfaces:
- AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, ProductSetPolicyDeleteCmd, Protectable
- public class ProductSetPolicyDeleteCmdImpl
- extends ControllerCommandImpl
- implements ProductSetPolicyDeleteCmd
Delete a product set and product set policy definition based on the input product set ID.
Input parameters:
Name | Type | Requirement | Description |
productSetID | Integer | mandatory | The product set ID. |
Output parameters:
Name | Type | Description |
productSetName | String | The deleted product set's name. |
memberId | Long | The deleted product set's member ID. |
Behavior:
- Delete the product set's and product set policy's definition based on the input product set ID.
Exception:
- Throws an ECApplicationException with the message key _ERR_ENTITY_OBJECT_NOT_FOUND, if can not find the product set or product set policy.
Field Summary |
static java.lang.String |
CLASSNAME
The fully qualified name of this class. |
static java.lang.String |
COPYRIGHT
The internal copyright field. |
Method Summary |
java.lang.Long |
getMemberId()
Returns the MemberId that represents the primary key of the owner of the product set policy. |
ProductSetAccessBean |
getProductSetAB()
Returns the access bean for the product set. |
java.lang.Integer |
getProductSetId()
Returns the ProductSetId that represents the primary key of the product set. |
java.lang.String |
getProductSetName()
Returns the name of the product set. |
AccessVector |
getResources()
Gets the access vector accessed by this command. |
void |
performExecute()
Contains the actual business logic of the command
It should be implemented by all the command writer. |
void |
setMemberId(java.lang.Long newPsMemberId)
Sets the MemberId that represents the primary key of the owner of the product set policy. |
void |
setProductSetAB(ProductSetAccessBean newPsAB)
Sets the access bean for the product set. |
void |
setProductSetId(java.lang.Integer newPsId)
Sets the ProductSetId that represents the primary key of the product set. |
void |
setProductSetName(java.lang.String newPsName)
Sets the name of the product set. |
void |
setRequestProperties(TypedProperty reqParms)
The WebController calls this method before invoking the execute method in this command to
set the request properties for this command. |
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl |
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, 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, validateParameters |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
CLASSNAME
public static final java.lang.String CLASSNAME
- The fully qualified name of this class.
COPYRIGHT
public static final java.lang.String COPYRIGHT
- The internal copyright field.
ProductSetPolicyDeleteCmdImpl
public ProductSetPolicyDeleteCmdImpl()
- No value constructor.
getMemberId
public java.lang.Long getMemberId()
- Description copied from interface:
ProductSetPolicyDeleteCmd
- Returns the MemberId that represents the primary key of the owner of the product set policy.
- Specified by:
getMemberId
in interface ProductSetPolicyDeleteCmd
- Following copied from interface:
com.ibm.commerce.productset.commands.ProductSetPolicyDeleteCmd
- Returns:
- java.lang.Long
getProductSetAB
public ProductSetAccessBean getProductSetAB()
- Returns the access bean for the product set.
- Returns:
- com.ibm.commerce.catalog.objects.ProductSetAccessBean
getProductSetId
public java.lang.Integer getProductSetId()
- Returns the ProductSetId that represents the primary key of the product set.
- Parameters:
java.lang.Integer
-
getProductSetName
public java.lang.String getProductSetName()
- Description copied from interface:
ProductSetPolicyDeleteCmd
- Returns the name of the product set.
- Specified by:
getProductSetName
in interface ProductSetPolicyDeleteCmd
- Following copied from interface:
com.ibm.commerce.productset.commands.ProductSetPolicyDeleteCmd
- Returns:
- java.lang.String
getResources
public AccessVector getResources()
throws ECException
- Gets the access vector accessed by this command.
The default implementation returns null indicating that no protectable resource is
accessed by this command. It is the responsibilities of the command writer to
return the protectable primary resource(s) and the corresponding actions on the resource.
- Specified by:
getResources
in interface ECCommand
- Overrides:
getResources
in class AbstractECTargetableCommand
- Returns:
- AccessVector - a vector of resource action pairs
performExecute
public void performExecute()
throws ECException
- Description copied from interface:
ECCommand
- Contains the actual business logic of the command
It should be implemented by all the command writer.
- Specified by:
performExecute
in interface ECCommand
- Overrides:
performExecute
in class AbstractECTargetableCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.
setMemberId
public void setMemberId(java.lang.Long newPsMemberId)
- Sets the MemberId that represents the primary key of the owner of the product set policy.
- Parameters:
newPsMemberId
- java.lang.Long
setProductSetAB
public void setProductSetAB(ProductSetAccessBean newPsAB)
- Sets the access bean for the product set.
- Parameters:
newPsAB
- com.ibm.commerce.catalog.objects.ProductSetAccessBean
setProductSetId
public void setProductSetId(java.lang.Integer newPsId)
- Description copied from interface:
ProductSetPolicyDeleteCmd
- Sets the ProductSetId that represents the primary key of the product set.
- Specified by:
setProductSetId
in interface ProductSetPolicyDeleteCmd
- Following copied from interface:
com.ibm.commerce.productset.commands.ProductSetPolicyDeleteCmd
- Parameters:
newPsId
- java.lang.Integer
setProductSetName
public void setProductSetName(java.lang.String newPsName)
- Sets the name of the product set.
- Parameters:
newPsName
- java.lang.String
setRequestProperties
public void setRequestProperties(TypedProperty reqParms)
throws ECApplicationException
- Description copied from interface:
ControllerCommand
- The WebController calls this method before invoking the execute method in this command to
set the request properties for this command.
It is the responsibility of the implementer of the ControllerCommand to extract the
required input parameters from the request properties and perform parameter checking.
- Specified by:
setRequestProperties
in interface ControllerCommand
- Overrides:
setRequestProperties
in class ControllerCommandImpl
- Following copied from interface:
com.ibm.commerce.command.ControllerCommand
- Parameters:
requestProperties
- com.ibm.commerce.datatype.TypedProperty- Throws:
com.ibm.commerce.exception.ECException.
-