com.ibm.commerce.catalogmanagement.commands
Interface AttributeValueDeleteCmd
- All Superinterfaces:
- AccCommand, ControllerCommand, ECCommand, Protectable
- All Known Implementing Classes:
- AttributeValueDeleteCmdImpl
- public interface AttributeValueDeleteCmd
- extends ControllerCommand
Command Name: AttributeValueDelete
Command Type: URL and Controller Command
Description: 1. If the Attribute Value Id is supplied,
1.1. Delete an existing Attribute Value
1.2. Call CatEntryDelete for all the items with the deleted Attribute Value
2. If the Catalog Entry Id for the item is supplied
2.1. Delete all Attribute Values related to that Catalog Entry
2.2. Call CatEntryDelete for the item.
Parameters: 1. Attribute ValueId
2. Catalog Entry Id
Tables: 1.
1.1. AttrValue
1.2. See CatalogEntryDelete
2.
2.1. AttrValue
2.2. See CatalogEntryDelete
Task Commands: DeleteAttributeValueCmd
Other Controller Commands: None
Mandatory Parameters: attrvalueId, or catentryId
Additional Parameters:
Optional Parameters: force, descLangId, URL
Method Summary |
java.lang.Long |
getAttributeId()
Get the attribute Id |
java.lang.Long |
getAttrvalueId()
Get the attribute value Id |
java.lang.Long |
getCatentryId()
Get the catalog entry Id |
void |
setAttributeId(java.lang.Long anAttributeId)
Set the attribute Id |
void |
setAttrvalueId(java.lang.Long anAttrvalueId)
Set the attribute value Id |
void |
setCatentryId(java.lang.Long anCatentryId)
Set a catalog entry Id |
void |
setDescLanguage(java.lang.Integer anDescLanguage)
Set the language Id for the attribute value |
void |
setForce(java.lang.Integer anForce)
Set the force delete option for the attribute value
The force delete option is used to determine if the catalog entry associated with
the attribute value is to be deleted or marked for deletion. |
void |
setURL(java.lang.String astrURL)
Set the redirect URL |
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.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
CLASSNAME
public static final java.lang.String CLASSNAME
COPYRIGHT
public static final java.lang.String COPYRIGHT
getAttributeId
public java.lang.Long getAttributeId()
- Get the attribute Id
- Returns:
- java.lang.Long
getAttrvalueId
public java.lang.Long getAttrvalueId()
- Get the attribute value Id
- Returns:
- java.lang.Long
getCatentryId
public java.lang.Long getCatentryId()
- Get the catalog entry Id
- Returns:
- java.lang.Long
setAttributeId
public void setAttributeId(java.lang.Long anAttributeId)
- Set the attribute Id
- Parameters:
anAttributeId
- java.lang.Long
setAttrvalueId
public void setAttrvalueId(java.lang.Long anAttrvalueId)
- Set the attribute value Id
- Parameters:
anAttrvalueId
- java.lang.Long
setCatentryId
public void setCatentryId(java.lang.Long anCatentryId)
- Set a catalog entry Id
- Parameters:
anCatentryId
- java.lang.Long
setDescLanguage
public void setDescLanguage(java.lang.Integer anDescLanguage)
- Set the language Id for the attribute value
- Parameters:
anDescLanguage
- java.lang.Integer
setForce
public void setForce(java.lang.Integer anForce)
- Set the force delete option for the attribute value
The force delete option is used to determine if the catalog entry associated with
the attribute value is to be deleted or marked for deletion.
0 = catalog entry associated with the attribute value will be marked for deletion
1 = catalog entry associated with the attribute value will be deleted
- Parameters:
anForce
- java.lang.Integer
setURL
public void setURL(java.lang.String astrURL)
- Set the redirect URL
- Parameters:
astrURL
- java.lang.String