public class ProductAttributeUpdateCmdImpl extends ControllerCommandImpl implements ProductAttributeUpdateCmd
ProductAttributeUpdateCmd
is a URL and controller command that:
ProductAttributeAddCmd
will be called
to create the attribute in the secondary language.
ATTRIBUTE
table except for Market Place Edition related columns and IBM internal use columns.
ATTRIBUTE
table except for Market Place Edition related columns and IBM internal use columns.
AttributeAccessBean
AttributeAccessBean
UpdateAttributeCmd
attributeId
, or catentryId
and name. attrtypeId
, desc
, desc2
, field1, descLangId
, seq
, URL. descLangId
= language ID from command context.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
The name of this interface is "com.ibm.commerce.catalogmanagement.commands.ProductAttributeUpdateCmdImpl".
|
static java.lang.String |
COPYRIGHT
The internal copyright field.
|
defaultCommandClassName
Constructor and Description |
---|
ProductAttributeUpdateCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getAttributeId()
Get the attribute Id
|
java.lang.Integer |
getAttrLangId()
Get the language Id of the attribute
|
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 object identifier
|
java.lang.Double |
getSequence()
Get the sequence number
|
java.lang.String |
getURL()
Get the redirect URL
|
void |
performExecute()
The main program for
ProductAttributeUpdate command. |
void |
reset()
This method reset all the variables used in
ProductAttributeUpdate 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 |
setCatentryId(java.lang.Long anCatentryId)
Set the catalog entry Id
|
void |
setDescription(java.lang.String astrDescription)
Set the description for the attribute
|
void |
setDescription2(java.lang.String astrDescription2)
Set the second description for 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
|
void |
setRequestProperties(TypedProperty reqParms)
This method obtains the input parameters for
ProductAttributeUpdate 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
ProductAttributeUpdate 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 ProductAttributeUpdateCmd
public java.lang.Integer getAttrLangId()
public java.lang.String getAttrtypeId()
public java.lang.Long getCatentryId()
getCatentryId
in interface ProductAttributeUpdateCmd
public java.lang.String getDescription()
public java.lang.String getDescription2()
public java.lang.String getField1()
public java.lang.String getName()
public java.lang.String getOID()
public java.lang.Double getSequence()
public java.lang.String getURL()
public void performExecute() throws ECException
ProductAttributeUpdate
command.
This method calls the UpdateAttributeCmd
task command. It then sets the attribute 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()
ProductAttributeUpdate
commandreset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public void setAttributeId(java.lang.Long anAttributeId)
setAttributeId
in interface ProductAttributeUpdateCmd
anAttributeId
- java.lang.Longpublic void setAttrLangId(java.lang.Integer anAttrLangId)
setAttrLangId
in interface ProductAttributeUpdateCmd
anAttrLangId
- java.lang.Integerpublic void setCatentryId(java.lang.Long anCatentryId)
setCatentryId
in interface ProductAttributeUpdateCmd
anCatentryId
- java.lang.Longpublic void setDescription(java.lang.String astrDescription)
setDescription
in interface ProductAttributeUpdateCmd
astrDescription
- java.lang.Stringpublic void setDescription2(java.lang.String astrDescription2)
setDescription2
in interface ProductAttributeUpdateCmd
astrDescription2
- java.lang.Stringpublic void setField1(java.lang.String astrField1)
setField1
in interface ProductAttributeUpdateCmd
astrField1
- java.lang.Stringpublic void setName(java.lang.String astrName)
setName
in interface ProductAttributeUpdateCmd
astrName
- java.lang.Stringpublic void setOID(java.lang.String astrOID)
setOID
in interface ProductAttributeUpdateCmd
astrOID
- java.lang.Stringpublic void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
ProductAttributeUpdate
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 ProductAttributeUpdateCmd
anSequence
- java.lang.Doublepublic void setURL(java.lang.String astrURL)
setURL
in interface ProductAttributeUpdateCmd
astrURL
- java.lang.Stringpublic void setUsage(java.lang.String astrUsage)
setUsage
in interface ProductAttributeUpdateCmd
astrUsage
- java.lang.Stringpublic void validateParameters() throws ECException
ProductAttributeUpdate
commandvalidateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException