com.ibm.commerce.catalogmanagement.commands
Interface CatalogEntryDeleteCmd
- All Superinterfaces:
- AccCommand, ControllerCommand, ECCommand, Protectable
- All Known Implementing Classes:
- CatalogEntryDeleteCmdImpl
- public interface CatalogEntryDeleteCmd
- extends ControllerCommand
The CatalogEntryDeleteCmd is a URL and controller command that:
- If the force option is set to 1, then the catalog entry is deleted, else the catalog entry is set to mark for delete.
- If the catalog entry is a product, then all its product attributes, attribute values, and items will be deleted or mark for delete.
- All description tables are cascade deleted.
- The force option does not apply to the inventory tables, for example, the baseitem and item specification tables. The baseitem and item specification will be marked for delete depending if the force option is set to 1 for delete and the check ATP option is set to true for checking.
- By default, the check ATP option is set to false (off).
- If the check ATP option is set to true, then it will be checked whether or not the catalog entry being deleted is the last catalog entry associated with the baseitem or item specification. If the catalog entry is the last one associated with them, then the baseitem or item specification will be mark for deleted, regardless of the force option. The force option is only applicable to the catalog entry, not the inventory.
- If the check ATP option is set to false, then no checking on the ivnetory will be performed. The partnumber of the baseitem or item specification associated with the catalog entry will be appended a timestamp. They will not be deleted or marked for delete.
- If the catalog entry exists in an order item, and the force option is set to 1, then an exception will be thrown.
- If the Catalog Entry ID is supplied, then the partnumber will be ignored.
Parameters:
- Catalog entry ID or partnumber of the catalog entry.
- No fields required.
- No fields required.
- Force option required.
- Check ATP option required.
Access Beans:
- CatalogEntryAccessBean
- AttributeAccessBean, AttributeValueAccessBean, CatalogEntryAccessBean
- CatalogEntryDescriptionAccessBean, BaseItmDescriptionAccessBean
- BaseItemAccessBean, ItemSpecificationAccessBean
- BaseItemAccessBean, ItemSpecificationAccessBean
Task Commands: DeleteCatalogEntryCmd
Other Controller Commands: None
Mandatory Parameters: catentryId, or partnumber.
Additional Parameters: none
Optional Parameters: force, checkATP.
Field Summary |
static java.lang.String |
CLASSNAME
The name of this interface is "com.ibm.commerce.catalogmanagement.commands.CatalogEntryDeleteCmd". |
static java.lang.String |
COPYRIGHT
The internal copyright field. |
Method Summary |
java.lang.Long |
getCatentryId()
Gets the catalog entry ID. |
java.lang.String |
getPartnumber()
Gets the partnumber of the catalog entry. |
void |
setCatentryId(java.lang.Long anCatentryId)
Sets the catalog entry ID. |
void |
setCheckATP(java.lang.Boolean abCheckATP)
Sets the check ATP option for the delete command: True = BaseItem and ItemSpc will be checked. |
void |
setForce(java.lang.Integer anForce)
Sets the force delete option for the catalog entry: 0 = catalog entry will be marked for delete. |
void |
setMarkfordelete(java.lang.Integer anMarkfordelete)
Sets the mark for delete flag of the catalog entry: 0 = catalog entry not marked for delete. |
void |
setMemberId(java.lang.Long anMemberId)
Sets the owner ID of the catalog entry. |
void |
setPartnumber(java.lang.String astrPartnumber)
Sets the partnumber of the catalog entry. |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- The internal copyright field.
- See Also:
- Constant Field Values
CLASSNAME
public static final java.lang.String CLASSNAME
- The name of this interface is "com.ibm.commerce.catalogmanagement.commands.CatalogEntryDeleteCmd".
- See Also:
- Constant Field Values
getCatentryId
public java.lang.Long getCatentryId()
- Gets the catalog entry ID.
-
- Returns:
- the catalog entry ID
getPartnumber
public java.lang.String getPartnumber()
- Gets the partnumber of the catalog entry.
-
- Returns:
- the catalog entry partnumber
setCatentryId
public void setCatentryId(java.lang.Long anCatentryId)
- Sets the catalog entry ID.
-
- Parameters:
- anCatentryId - the catalog entry ID
setCheckATP
public void setCheckATP(java.lang.Boolean abCheckATP)
- Sets the check ATP option for the delete command:
- True = BaseItem and ItemSpc will be checked.
- False = BaseItem and ItemSpc will not be checked.
By default, it is set to False.
-
- Parameters:
- abCheckATP - whether or not to check the baseitem and item specification when deleting the catalog entry
setForce
public void setForce(java.lang.Integer anForce)
- Sets the force delete option for the catalog entry:
- 0 = catalog entry will be marked for delete.
- 1 = catalog entry will be force deleted.
-
- Parameters:
- anForce - whether the catalog entry will be deleted or mark for deletion
setMarkfordelete
public void setMarkfordelete(java.lang.Integer anMarkfordelete)
- Sets the mark for delete flag of the catalog entry:
- 0 = catalog entry not marked for delete.
- 1 = catalog entry marked for delete.
Use the force option instead.
-
- Parameters:
- anMarkfordelete - mark for delete flag of the catalog entry
setMemberId
public void setMemberId(java.lang.Long anMemberId)
- Sets the owner ID of the catalog entry.
-
- Parameters:
- anMemberId - the owner ID of the catalog entry
setPartnumber
public void setPartnumber(java.lang.String astrPartnumber)
- Sets the partnumber of the catalog entry.
-
- Parameters:
- astrPartnumber - the partnumber of the catalog entry
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.