public class ProductAttributeDeleteCmdImpl extends ControllerCommandImpl implements ProductAttributeDeleteCmd
ProductAttributeDeleteCmd
is a URL and controller command that:
CatalogEntryDeleteCmd
for all the items with the deleting attribute.
setDeleteItems
to false if items of the product are not to be deleted when deleting the product attribute.
CatalogEntryDeleteCmd
for all the items of the product.
setDeleteItems
to false if items of the product are not to be deleted when deleting the product attribute.
AttributeAccessBean
AttributeAccessBean
DeleteAttributeCmd
attributeId
, or catentryId
and name.descLangId
, force, URL. Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
The name of this interface is "com.ibm.commerce.catalogmanagement.commands.ProductAttributeDeleteCmdImpl".
|
static java.lang.String |
COPYRIGHT
The internal copyright field.
|
defaultCommandClassName
Constructor and Description |
---|
ProductAttributeDeleteCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getAttributeId()
Get the attribute Id
|
java.lang.Integer |
getAttrLangId()
Get attribute language Id
|
java.lang.String |
getAttrtypeId()
Get the attribute type Id
Attribute types included:
1.
|
java.lang.Long |
getCatentryId()
Get the catalog entry Id
|
java.lang.Integer |
getForce()
Get the force delete option for the attribute
|
java.lang.String |
getName()
Get the attribute name
|
java.lang.Double |
getSequence()
Get the sequence number
|
java.lang.String |
getURL()
Get the redirect URL
|
void |
performExecute()
The main program for
ProductAttributeDelete command
This method calls the DeleteAttributeCmd task command. |
void |
reset()
This method reset all the variables used in
ProductAttributeDelete command |
void |
setAttributeId(java.lang.Long anAttributeId)
Set the attribute Id
|
void |
setAttrLangId(java.lang.Integer anAttrLangId)
Set the language Id of the Attribute
|
void |
setAttrtypeId(java.lang.String astrAttrtypeId)
Set the attribute type Id
Attribute types included:
1.
|
void |
setCatentryId(java.lang.Long anCatentryId)
Set the catalog entry Id
|
void |
setDeleteItems(java.lang.Boolean abDeleteItems)
Set whether or not to delete the items of the product for the deleting attribute
|
void |
setForce(java.lang.Integer anForce)
Set the force delete option of the attribute
|
void |
setName(java.lang.String astrName)
Set the attribute name
|
void |
setRequestProperties(TypedProperty reqParms)
This method obtains the input parameters for
ProductAttributeDelete command |
void |
setSequence(java.lang.Double anSequence)
Set the sequence number of the attribute
|
void |
setURL(java.lang.String astrURL)
Set a redirect URL
|
void |
validateParameters()
This method validates the parameters for
ProductAttributeDelete command |
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public java.lang.Long getAttributeId()
getAttributeId
in interface ProductAttributeDeleteCmd
public java.lang.Integer getAttrLangId()
public java.lang.String getAttrtypeId()
public java.lang.Long getCatentryId()
getCatentryId
in interface ProductAttributeDeleteCmd
java.lang.Long
- public java.lang.Integer getForce()
java.lang.Integer
- public java.lang.String getName()
java.lang.String
- public java.lang.Double getSequence()
java.lang.Double
- public java.lang.String getURL()
java.lang.String
- public void performExecute() throws ECException
ProductAttributeDelete
command
This method calls the DeleteAttributeCmd
task command. It then sets the attribute ID, and catalog entry ID in the response properties.performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void reset()
ProductAttributeDelete
commandreset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public void setAttributeId(java.lang.Long anAttributeId)
setAttributeId
in interface ProductAttributeDeleteCmd
anAttributeId
- java.lang.Longpublic void setAttrLangId(java.lang.Integer anAttrLangId)
setAttrLangId
in interface ProductAttributeDeleteCmd
anAttrLangId
- java.lang.Integerpublic void setAttrtypeId(java.lang.String astrAttrtypeId)
setAttrtypeId
in interface ProductAttributeDeleteCmd
astrAttrtypeId
- java.lang.Stringpublic void setCatentryId(java.lang.Long anCatentryId)
setCatentryId
in interface ProductAttributeDeleteCmd
anCatentryId
- java.lang.Longpublic void setForce(java.lang.Integer anForce)
setForce
in interface ProductAttributeDeleteCmd
anForce
- java.lang.Integerpublic void setName(java.lang.String astrName)
setName
in interface ProductAttributeDeleteCmd
astrName
- java.lang.Stringpublic void setDeleteItems(java.lang.Boolean abDeleteItems)
setDeleteItems
in interface ProductAttributeDeleteCmd
abDeleteItems
- java.lang.Booleanpublic void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
ProductAttributeDelete
commandsetRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
reqParms
- This is an object that represents the request properties.ECApplicationException
public void setSequence(java.lang.Double anSequence)
setSequence
in interface ProductAttributeDeleteCmd
anSequence
- java.lang.Doublepublic void setURL(java.lang.String astrURL)
setURL
in interface ProductAttributeDeleteCmd
astrURL
- java.lang.Stringpublic void validateParameters() throws ECException
ProductAttributeDelete
commandvalidateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException