public class ProductAttributeAddCmdImpl extends ControllerCommandImpl implements ProductAttributeAddCmd
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 specified. 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 AddAttributeCmdcatentryId, name, attrtypeId.desc, desc2, field1, descLangId, seq, usage, URL. descLanguageId = langauge ID from the command context.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASSNAME
The name of this interface is "com.ibm.commerce.catalogmanagement.commands.ProductAttributeAddCmdImpl".
|
static java.lang.String |
COPYRIGHT
The internal copyright field.
|
defaultCommandClassName| Constructor and Description |
|---|
ProductAttributeAddCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
getAttributeId()
Get the attribute Id
|
java.lang.Integer |
getAttrLangId()
Get the 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.String |
getDescription()
Get the description of the attribute
|
java.lang.String |
getDescription2()
Get the second description of the attribute
|
java.lang.String |
getField1()
Get field 1 of the attribute
|
java.lang.String |
getName()
Get the attribute name
|
java.lang.String |
getOID()
Get the object identifier of the attribute
|
java.lang.Double |
getSequence()
Get the sequence number
|
java.lang.String |
getURL()
Get the redirect URL
|
java.lang.String |
getUsage()
Get the usage of the attribute
1 .NULL or "1" indicates SKU-resolution.
|
void |
performExecute()
The main program for
ProductAttributeAdd command. |
void |
reset()
This method reset all the variables used in
ProductAttributeAdd 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 when creating the attribute
By default, it is set to true
|
void |
setDescription(java.lang.String astrDescription)
Set the description of the attribute
|
void |
setDescription2(java.lang.String astrDescription2)
Set the second description of the attribute
|
void |
setField1(java.lang.String astrField1)
Set field 1 of the attribute
|
void |
setName(java.lang.String astrName)
Set the attribute name
|
void |
setOID(java.lang.String astrOID)
Set the object identifier of the attribute
|
void |
setRequestProperties(TypedProperty reqParms)
This method obtains the input parameters for
ProductAttributeAdd command |
void |
setSequence(java.lang.Double anSequence)
Set the sequence number
|
void |
setURL(java.lang.String astrURL)
Set a redirect URL
|
void |
setUsage(java.lang.String astrUsage)
Set the usage of the attribute
1 .NULL or "1" indicates SKU-resolution.
|
void |
validateParameters()
This method validates the parameters for
ProductAttributeAdd command |
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputPropertiesaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiesaccessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwnercheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesfulfills, getOwnerpublic static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public java.lang.Long getAttributeId()
getAttributeId in interface ProductAttributeAddCmdpublic java.lang.Integer getAttrLangId()
public java.lang.String getAttrtypeId()
public java.lang.Long getCatentryId()
getCatentryId in interface ProductAttributeAddCmdpublic java.lang.String getDescription()
public java.lang.String getDescription2()
public java.lang.String getField1()
public java.lang.String getName()
getName in interface ProductAttributeAddCmdpublic java.lang.String getOID()
public java.lang.Double getSequence()
public java.lang.String getURL()
public java.lang.String getUsage()
public void performExecute()
throws ECException
ProductAttributeAdd command.
This method calls the AddAttributeCmd task command, and then sets the attribute ID, attribute type ID, and sequence in the response properties.performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECExceptionpublic void reset()
ProductAttributeAdd commandreset in interface com.ibm.websphere.command.Commandreset in class AbstractECTargetableCommandpublic void setAttributeId(java.lang.Long anAttributeId)
setAttributeId in interface ProductAttributeAddCmdanAttributeId - java.lang.Longpublic void setAttrLangId(java.lang.Integer anAttrLangId)
setAttrLangId in interface ProductAttributeAddCmdanAttrLangId - java.lang.Integerpublic void setAttrtypeId(java.lang.String astrAttrtypeId)
setAttrtypeId in interface ProductAttributeAddCmdastrAttrtypeId - java.lang.Stringpublic void setCatentryId(java.lang.Long anCatentryId)
setCatentryId in interface ProductAttributeAddCmdanCatentryId - java.lang.Longpublic void setDeleteItems(java.lang.Boolean abDeleteItems)
setDeleteItems in interface ProductAttributeAddCmdabDeleteItems - java.lang.Booleanpublic void setDescription(java.lang.String astrDescription)
setDescription in interface ProductAttributeAddCmdastrDescription - java.lang.Stringpublic void setDescription2(java.lang.String astrDescription2)
setDescription2 in interface ProductAttributeAddCmdastrDescription2 - java.lang.Stringpublic void setField1(java.lang.String astrField1)
setField1 in interface ProductAttributeAddCmdastrField1 - java.lang.Stringpublic void setName(java.lang.String astrName)
setName in interface ProductAttributeAddCmdastrName - java.lang.Stringpublic void setOID(java.lang.String astrOID)
setOID in interface ProductAttributeAddCmdastrOID - java.lang.Stringpublic void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
ProductAttributeAdd commandsetRequestProperties in interface ControllerCommandsetRequestProperties in class ControllerCommandImplreqParms - This is an object that represents the request properties.ECApplicationExceptionpublic void setSequence(java.lang.Double anSequence)
setSequence in interface ProductAttributeAddCmdanSequence - java.lang.Doublepublic void setURL(java.lang.String astrURL)
setURL in interface ProductAttributeAddCmdastrURL - java.lang.Stringpublic void setUsage(java.lang.String astrUsage)
setUsage in interface ProductAttributeAddCmdastrUsage - java.lang.Stringpublic void validateParameters()
throws ECException
ProductAttributeAdd commandvalidateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECException