java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.catalogmanagement.commands.ProductAttributeAddCmdImpl
Implementation for ProductAttributeAdd command which adds an attribute to a catalog entry
Field Summary | |
---|---|
static java.lang.String |
CLASSNAME |
static java.lang.String |
COPYRIGHT |
protected
java.lang.Boolean |
ibDeleteItems |
protected
java.lang.Long |
inAttributeId |
protected
java.lang.Integer |
inAttrLangId |
protected
java.lang.Long |
inCatentryId |
protected
java.lang.Double |
inSequence |
protected
java.lang.String |
istrAttrtypeId |
protected
java.lang.String |
istrDescription |
protected
java.lang.String |
istrDescription2 |
protected
java.lang.String |
istrField1 |
protected
java.lang.String |
istrName |
protected
java.lang.String |
istrOID |
protected
java.lang.String |
istrURL |
protected
java.lang.String |
istrUsage |
Fields inherited from class com.ibm.commerce.command. ControllerCommandImpl |
requestProperties,
responseProperties,
retriable,
viewReqProperties |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
ProductAttributeAddCmdImpl() |
Method Summary | |
---|---|
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 obtain 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 |
Methods inherited from class com.ibm.commerce.command. ControllerCommandImpl |
checkPermission,
fulfills,
getForUserId,
getGeneric,
getOwner,
getRequestProperties,
getResolvedRequestProperties,
getResourceOwners,
getResponseProperties,
getRetriable,
getViewInputProperties,
isGeneric,
isRetriable,
mergeProperties,
setForUserId,
setGeneric,
setOwner,
setResponseProperties,
setRetriable,
setViewInputProperties |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
isReadyToCallExecute,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Methods inherited from interface com.ibm.commerce.command. ControllerCommand |
checkPermission,
execute,
getGeneric,
getRequestProperties,
getResolvedRequestProperties,
getResponseProperties,
getRetriable,
getViewInputProperties,
isGeneric,
isRetriable,
mergeProperties,
setGeneric,
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,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
protected java.lang.String istrURL
protected java.lang.Long inAttributeId
protected java.lang.String istrAttrtypeId
protected java.lang.Long inCatentryId
protected java.lang.String istrDescription
protected java.lang.String istrDescription2
protected java.lang.String istrField1
protected java.lang.Integer inAttrLangId
protected java.lang.String istrName
protected java.lang.String istrOID
protected java.lang.Double inSequence
protected java.lang.String istrUsage
protected java.lang.Boolean ibDeleteItems
Constructor Detail |
---|
public ProductAttributeAddCmdImpl()
Method Detail |
---|
public java.lang.Long getAttributeId()
getAttributeId
in interface
ProductAttributeAddCmd
public java.lang.Integer getAttrLangId()
public java.lang.String getAttrtypeId()
public java.lang.Long getCatentryId()
getCatentryId
in interface
ProductAttributeAddCmd
public java.lang.String getDescription()
public java.lang.String getDescription2()
public java.lang.String getField1()
public java.lang.String getName()
getName
in interface
ProductAttributeAddCmd
public java.lang.String getOID()
public java.lang.Double getSequence()
public java.lang.String getURL()
public java.lang.String getUsage()
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
public void reset()
reset
in class
AbstractECTargetableCommand
public void setAttributeId(java.lang.Long anAttributeId)
setAttributeId
in interface
ProductAttributeAddCmd
anAttributeId
- java.lang.Longpublic void setAttrLangId(java.lang.Integer anAttrLangId)
setAttrLangId
in interface
ProductAttributeAddCmd
anAttrLangId
- java.lang.Integerpublic void setAttrtypeId(java.lang.String astrAttrtypeId)
setAttrtypeId
in interface
ProductAttributeAddCmd
astrAttrtypeId
- java.lang.Stringpublic void setCatentryId(java.lang.Long anCatentryId)
setCatentryId
in interface
ProductAttributeAddCmd
anCatentryId
- java.lang.Longpublic void setDeleteItems(java.lang.Boolean abDeleteItems)
setDeleteItems
in interface
ProductAttributeAddCmd
abDeleteItems
- java.lang.Booleanpublic void setDescription(java.lang.String astrDescription)
setDescription
in interface
ProductAttributeAddCmd
astrDescription
- java.lang.Stringpublic void setDescription2(java.lang.String astrDescription2)
setDescription2
in interface
ProductAttributeAddCmd
astrDescription2
- java.lang.Stringpublic void setField1(java.lang.String astrField1)
setField1
in interface
ProductAttributeAddCmd
astrField1
- java.lang.Stringpublic void setName(java.lang.String astrName)
setName
in interface
ProductAttributeAddCmd
astrName
- java.lang.Stringpublic void setOID(java.lang.String astrOID)
setOID
in interface
ProductAttributeAddCmd
astrOID
- java.lang.Stringpublic void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
setRequestProperties
in interface
ControllerCommand
setRequestProperties
in class
ControllerCommandImpl
reqParms
- request properties
ECApplicationException
public void setSequence(java.lang.Double anSequence)
setSequence
in interface
ProductAttributeAddCmd
anSequence
- java.lang.Doublepublic void setURL(java.lang.String astrURL)
setURL
in interface
ProductAttributeAddCmd
astrURL
- java.lang.Stringpublic void setUsage(java.lang.String astrUsage)
setUsage
in interface
ProductAttributeAddCmd
astrUsage
- java.lang.Stringpublic void validateParameters() throws ECException
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECException