The ProductAttributeAddCmd
is a URL and controller command
that:
setDeleteItems
is set to true, in which all items
associated with the Product that the new attribute is creating to, will be
deleted. Creating an existing on a secondary language will not delete the
items.ATTRIBUTE
table must be speicified. Most
fields in the ATTRIBUTE
table except for Market Place Edition
related columns and IBM internal use columns. A new attribute ID will be
returned at the end of successfully calling the command.ATTRIBUTE
table except for Market Place Edition related columns
and IBM internal use columns.setDeleteItem
is set to true.AttributeAccessBean
AddAttributeCmd
Other Controller Commands: None.
Mandatory Parameters: catentryId, name, attrtypeId.
Additional Parameters: None.
Optional Parameters: desc, desc2, field1, descLangId, seq, usage, URL.
Default Value: descLanguageId = langauge ID fromcommand contect.
Field Summary | |
---|---|
static java.lang.String |
CLASSNAME The name of this interface is "com.ibm.commerce.catalogmanagement.commands.ProductAttributeAddCmd". |
static java.lang.String |
COPYRIGHT The internal copyright field. |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Method Summary | |
---|---|
java.lang.Long |
getAttributeId() Gets the attribute ID. |
java.lang.Long |
getCatentryId() Gets the catalog entry ID for the attribute. |
java.lang.String |
getName() Gets the name of the attribute. |
void |
setAttributeId(java.lang.Long anAttributeId) Sets the attribute ID. |
void |
setAttrLangId(java.lang.Integer anAttrLangId) Set the attribute language ID. |
void |
setAttrtypeId(java.lang.String astrAttrtypeId) Sets the attribute type ID. |
void |
setCatentryId(java.lang.Long anCatentryId) Sets the catalog entry ID for the attribute. |
void |
setDeleteItems(java.lang.Boolean abDeleteItems) Sets whether or not to delete the items when the attribute is created: True will delete all the items of the product when a new attribute is being created for the product. |
void |
setDescription(java.lang.String astrDescription) Sets the description of the attribute. |
void |
setDescription2(java.lang.String astrDescription2) Sets the secondary description of the attribute. |
void |
setField1(java.lang.String astrField1) Sets field 1 of the attribute. |
void |
setName(java.lang.String astrName) Sets the name of the attribute. |
void |
setOID(java.lang.String astrOID) Sets the object identifier of the attribute. |
void |
setSequence(java.lang.Double anSequence) Sets the sequence number of the attribute. |
void |
setURL(java.lang.String astrURL) Sets the redirect URL. |
void |
setUsage(java.lang.String astrUsage) Sets the usage of the attribute: NULL or "1" indicates SKU-resolution. |
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. AccCommand |
accessControlCheck,
getAccCheck,
getForUserId,
getResourceOwners,
setAccCheck,
setForUserId,
setOwner |
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 |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
Method Detail |
---|
public java.lang.Long getAttributeId()
public java.lang.Long getCatentryId()
public java.lang.String getName()
public void setAttributeId(java.lang.Long anAttributeId)
public void setAttrLangId(java.lang.Integer anAttrLangId)
anAttrLangId
- the language IDpublic void setAttrtypeId(java.lang.String astrAttrtypeId)
astrAttrtypeId
- the attribute type IDpublic void setCatentryId(java.lang.Long anCatentryId)
anCatentryId
- catalog entry IDpublic void setDeleteItems(java.lang.Boolean abDeleteItems)
abDeleteItems
- whether or not to delete the items when a new
attribute is being createdpublic void setDescription(java.lang.String astrDescription)
astrDescription
- the description of the
attributepublic void setDescription2(java.lang.String astrDescription2)
astrDescription2
- the secondary description of the
attributepublic void setField1(java.lang.String astrField1)
astrField1
- customizable field 1public void setName(java.lang.String astrName)
astrName
- the attribute namepublic void setOID(java.lang.String astrOID)
astrOID
- the object identifier of the
attributepublic void setSequence(java.lang.Double anSequence)
anSequence
- the sequence numberpublic void setURL(java.lang.String astrURL)
astrURL
- the redirect URLpublic void setUsage(java.lang.String astrUsage)
astrUsage
- the attribute usage