public interface ProductAttributeAddCmd extends ControllerCommand
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.
Modifier and Type | Field and Description |
---|---|
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.
|
defaultCommandClassName
Modifier and Type | Method and Description |
---|---|
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.
|
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, 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, performExecute, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
fulfills, getOwner
static final java.lang.String COPYRIGHT
static final java.lang.String CLASSNAME
java.lang.Long getAttributeId()
java.lang.Long getCatentryId()
java.lang.String getName()
void setAttributeId(java.lang.Long anAttributeId)
void setAttrLangId(java.lang.Integer anAttrLangId)
anAttrLangId
- the language IDvoid setAttrtypeId(java.lang.String astrAttrtypeId)
astrAttrtypeId
- the attribute type IDvoid setCatentryId(java.lang.Long anCatentryId)
anCatentryId
- catalog entry IDvoid setDeleteItems(java.lang.Boolean abDeleteItems)
abDeleteItems
- whether or not to delete the items when a new attribute is being createdvoid setDescription(java.lang.String astrDescription)
astrDescription
- the description of the attributevoid setDescription2(java.lang.String astrDescription2)
astrDescription2
- the secondary description of the attributevoid setField1(java.lang.String astrField1)
astrField1
- customizable field 1void setName(java.lang.String astrName)
astrName
- the attribute namevoid setOID(java.lang.String astrOID)
astrOID
- the object identifier of the attributevoid setSequence(java.lang.Double anSequence)
anSequence
- the sequence numbervoid setURL(java.lang.String astrURL)
astrURL
- the redirect URLvoid setUsage(java.lang.String astrUsage)
astrUsage
- the attribute usage