com.ibm.commerce.catalogmanagement.commands
Class ProductAttributeUpdateCmdImpl

java.lang.Object
  CacheableCommandImpl
      com.ibm.commerce.command.AbstractECTargetableCommand
          com.ibm.commerce.command.ControllerCommandImpl
              com.ibm.commerce.catalogmanagement.commands.ProductAttributeUpdateCmdImpl
All Implemented Interfaces:
AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, ProductAttributeUpdateCmd, Protectable

public class ProductAttributeUpdateCmdImpl
extends ControllerCommandImpl
implements ProductAttributeUpdateCmd

Implementation for ProductAttributeUpdate command which updates an attribute to a catalog entry (product)

See Also:
Serialized Form

Field Summary
static java.lang.String CLASSNAME
static java.lang.String COPYRIGHT
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
ProductAttributeUpdateCmdImpl()
Method Summary
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 obtain 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
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
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values

CLASSNAME

public static final java.lang.String CLASSNAME
See Also:
Constant Field Values

istrURL

protected java.lang.String istrURL

inAttributeId

protected java.lang.Long inAttributeId

istrAttrtypeId

protected java.lang.String istrAttrtypeId

inCatentryId

protected java.lang.Long inCatentryId

istrDescription

protected java.lang.String istrDescription

istrDescription2

protected java.lang.String istrDescription2

istrField1

protected java.lang.String istrField1

inAttrLangId

protected java.lang.Integer inAttrLangId

istrName

protected java.lang.String istrName

istrOID

protected java.lang.String istrOID

inSequence

protected java.lang.Double inSequence

istrUsage

protected java.lang.String istrUsage
Constructor Detail

ProductAttributeUpdateCmdImpl

public ProductAttributeUpdateCmdImpl()
Method Detail

getAttributeId

public java.lang.Long getAttributeId()
Get the attribute Id
Specified by:
getAttributeId in interface ProductAttributeUpdateCmd
Returns:
java.lang.Long

getAttrLangId

public java.lang.Integer getAttrLangId()
Get the language Id of the attribute
Returns:
java.lang.Integer

getAttrtypeId

public java.lang.String getAttrtypeId()
Get the attribute type Id Attribute types included: 1. String 2. Integer 3. Float
Returns:
java.lang.String

getCatentryId

public java.lang.Long getCatentryId()
Get the catalog entry Id
Specified by:
getCatentryId in interface ProductAttributeUpdateCmd
Returns:
java.lang.Long

getDescription

public java.lang.String getDescription()
Get the description of the attribute
Returns:
java.lang.String

getDescription2

public java.lang.String getDescription2()
Get the second description of the attribute
Returns:
java.lang.String

getField1

public java.lang.String getField1()
Get field 1 of the attribute
Returns:
java.lang.String

getName

public java.lang.String getName()
Get the attribute name
Returns:
java.lang.String

getOID

public java.lang.String getOID()
Get object identifier
Returns:
java.lang.String

getSequence

public java.lang.Double getSequence()
Get the sequence number
Returns:
java.lang.Double

getURL

public java.lang.String getURL()
Get the redirect URL
Returns:
java.lang.String

performExecute

public void performExecute()
                    throws ECException
The main program for ProductAttributeUpdate command
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException

reset

public void reset()
This method reset all the variables used in ProductAttributeUpdate command
Overrides:
reset in class AbstractECTargetableCommand

setAttributeId

public void setAttributeId(java.lang.Long anAttributeId)
Set the attribute Id
Specified by:
setAttributeId in interface ProductAttributeUpdateCmd
Parameters:
anAttributeId - java.lang.Long

setAttrLangId

public void setAttrLangId(java.lang.Integer anAttrLangId)
Set the language Id of the attribute
Specified by:
setAttrLangId in interface ProductAttributeUpdateCmd
Parameters:
anAttrLangId - java.lang.Integer

setCatentryId

public void setCatentryId(java.lang.Long anCatentryId)
Set the catalog entry Id
Specified by:
setCatentryId in interface ProductAttributeUpdateCmd
Parameters:
anCatentryId - java.lang.Long

setDescription

public void setDescription(java.lang.String astrDescription)
Set the description for the attribute
Specified by:
setDescription in interface ProductAttributeUpdateCmd
Parameters:
astrDescription - java.lang.String

setDescription2

public void setDescription2(java.lang.String astrDescription2)
Set the second description for the attribute
Specified by:
setDescription2 in interface ProductAttributeUpdateCmd
Parameters:
astrDescription2 - java.lang.String

setField1

public void setField1(java.lang.String astrField1)
Set field 1 of the attribute
Specified by:
setField1 in interface ProductAttributeUpdateCmd
Parameters:
astrField1 - java.lang.String

setName

public void setName(java.lang.String astrName)
Set the attribute name
Specified by:
setName in interface ProductAttributeUpdateCmd
Parameters:
astrName - java.lang.String

setOID

public void setOID(java.lang.String astrOID)
Set the object identifier
Specified by:
setOID in interface ProductAttributeUpdateCmd
Parameters:
astrOID - java.lang.String

setRequestProperties

public void setRequestProperties(TypedProperty reqParms)
                          throws ECApplicationException
This method obtain the input parameters for ProductAttributeUpdate command
Specified by:
setRequestProperties in interface ControllerCommand
Overrides:
setRequestProperties in class ControllerCommandImpl
Throws:
ECApplicationException

setSequence

public void setSequence(java.lang.Double anSequence)
Set the sequence number
Specified by:
setSequence in interface ProductAttributeUpdateCmd
Parameters:
anSequence - java.lang.Double

setURL

public void setURL(java.lang.String astrURL)
Set a redirect URL
Specified by:
setURL in interface ProductAttributeUpdateCmd
Parameters:
astrURL - java.lang.String

setUsage

public void setUsage(java.lang.String astrUsage)
Set the usage of the attribute 1 .NULL or "1" indicates SKU-resolution. 2. "2" indicates a descriptive attribute and should not be used to resolve SKUs.
Specified by:
setUsage in interface ProductAttributeUpdateCmd
Parameters:
astrUsage - java.lang.String

validateParameters

public void validateParameters()
                        throws ECException
This method validates the parameters for ProductAttributeUpdate command
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECException

Feedback