com.ibm.commerce.catalogmanagement.commands
Class AttributeValueUpdateCmdImpl

com.ibm.commerce.command.AbstractECTargetableCommand
  |
  +--com.ibm.commerce.command.ControllerCommandImpl
        |
        +--com.ibm.commerce.catalogmanagement.commands.AttributeValueUpdateCmdImpl
All Implemented Interfaces:
AccCommand, AttributeValueUpdateCmd, ControllerCommand, ECCommand, ECTargetableCommand, Protectable

public class AttributeValueUpdateCmdImpl
extends ControllerCommandImpl
implements AttributeValueUpdateCmd

Implementation for AttributeValueUpdate command which is the URL command for updating an Attribute Value


Field Summary
static java.lang.String CLASSNAME
           
static java.lang.String COPYRIGHT
           
protected  java.lang.Double idFloatvalue
           
protected  java.lang.Double idSequence
           
protected  java.lang.Long inAttributeId
           
protected  java.lang.Long inAttrvalueId
           
protected  java.lang.Long inCatentryId
           
protected  java.lang.Integer inDescLanguage
           
protected  java.lang.Integer inField1
           
protected  java.lang.Integer inIntegervalue
           
protected  java.lang.String istrField2
           
protected  java.lang.String istrField3
           
protected  java.lang.String istrImage1
           
protected  java.lang.String istrImage2
           
protected  java.lang.String istrName
           
protected  java.lang.String istrOID
           
protected  java.lang.String istrStringvalue
           
protected  java.lang.String istrURL
           
protected  java.lang.String istrValue
           
 
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
AttributeValueUpdateCmdImpl()
           
 
Method Summary
 java.lang.Long getAttributeId()
          Get the attribute Id
 java.lang.Long getAttrvalueId()
          Get the attribute value Id
 java.lang.Long getCatentryId()
          Get the catalog entry Id
 java.lang.Integer getDescLanguage()
          Get the description language
 java.lang.Integer getField1()
          Get field 1 of the attribute value
 java.lang.String getField2()
          Get field 2 of the attribute value
 java.lang.String getField3()
          Get field 3 of the attribute value
 java.lang.Double getFloatvalue()
          Get the float value of the attribute value
 java.lang.String getImage1()
          Get image 1 of the attribute value
 java.lang.String getImage2()
          Get image 2 of the attribute value
 java.lang.Integer getIntegervalue()
          Get the integer value of the attribute value
 java.lang.String getName()
          Get the attribute value name
 java.lang.String getOID()
          Get the object identifier
 java.lang.Double getSequence()
          Get sequence number
 java.lang.String getStringvalue()
          Get the string value of the attribute value
 java.lang.String getURL()
          Get the redirect URL
 java.lang.String getValue()
          Get value of the attribute value If value is get, then there is no need to use getFloatvalue, getIntegervalue, getStringvalue.
 void performExecute()
          The main program for AttributeValueUpdate command
 void reset()
          This method reset all the variables used in AttributeValueUpdate command
 void setAttributeId(java.lang.Long anAttributeId)
          Set the attribute Id
 void setAttrvalueId(java.lang.Long anAttrvalueId)
          Set the attribute value Id
 void setCatentryId(java.lang.Long anCatentryId)
          Set a catalog entry Id
 void setDescLanguage(java.lang.Integer anDescLanguage)
          Set language Id of the attribute value
 void setField1(java.lang.Integer anField1)
          Set field 1 of the attribute value
 void setField2(java.lang.String astrField2)
          Set field 2 of the attribute value
 void setField3(java.lang.String astrField3)
          Set field 3 of the attribute value
 void setFloatvalue(java.lang.Double adFloatvalue)
          Set the float value of the attribute value
 void setImage1(java.lang.String astrImage1)
          Set image 1 of the attribute value
 void setImage2(java.lang.String astrImage2)
          Set image 2 of the attribute value
 void setIntegervalue(java.lang.Integer anIntegervalue)
          Set the integer value of the attribute value
 void setName(java.lang.String astrName)
          Set the attribute value name
 void setOID(java.lang.String astrOID)
          Set the object identifier of the attribute value
 void setProductAttributeValue(java.lang.String astrProductAttributeValue)
          Set the value of the product attribute value It is used to determine the attribute value ID if it is not given by the user.
 void setRequestProperties(TypedProperty reqParms)
          This method obtain the input parameters for AttributeValueUpdate command
 void setSequence(java.lang.Double adSequence)
          Set the sequence number
 void setStringvalue(java.lang.String astrStringvalue)
          Set the string value of the attribute value
 void setURL(java.lang.String astrURL)
          Set a redirect URL
 void setValue(java.lang.String astrValue)
          Set the value of the attribute value.
 void validateParameters()
          This method validates the parameters for AttributeValueAdd command
 
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
 
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
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, setAccCheck, setForUserId, setOwner
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties
 
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
 

Field Detail

CLASSNAME

public static final java.lang.String CLASSNAME

COPYRIGHT

public static final java.lang.String COPYRIGHT

idFloatvalue

protected java.lang.Double idFloatvalue

idSequence

protected java.lang.Double idSequence

inAttributeId

protected java.lang.Long inAttributeId

inAttrvalueId

protected java.lang.Long inAttrvalueId

inCatentryId

protected java.lang.Long inCatentryId

inDescLanguage

protected java.lang.Integer inDescLanguage

inField1

protected java.lang.Integer inField1

inIntegervalue

protected java.lang.Integer inIntegervalue

istrField2

protected java.lang.String istrField2

istrField3

protected java.lang.String istrField3

istrImage1

protected java.lang.String istrImage1

istrImage2

protected java.lang.String istrImage2

istrName

protected java.lang.String istrName

istrOID

protected java.lang.String istrOID

istrStringvalue

protected java.lang.String istrStringvalue

istrURL

protected java.lang.String istrURL

istrValue

protected java.lang.String istrValue
Constructor Detail

AttributeValueUpdateCmdImpl

public AttributeValueUpdateCmdImpl()
Method Detail

getAttributeId

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

getAttrvalueId

public java.lang.Long getAttrvalueId()
Get the attribute value Id
Specified by:
getAttrvalueId in interface AttributeValueUpdateCmd
Returns:
java.lang.Long

getCatentryId

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

getDescLanguage

public java.lang.Integer getDescLanguage()
Get the description language
Returns:
java.lang.Integer

getField1

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

getField2

public java.lang.String getField2()
Get field 2 of the attribute value
Returns:
java.lang.String

getField3

public java.lang.String getField3()
Get field 3 of the attribute value
Returns:
java.lang.String

getFloatvalue

public java.lang.Double getFloatvalue()
Get the float value of the attribute value
Returns:
java.lang.Double

getImage1

public java.lang.String getImage1()
Get image 1 of the attribute value
Returns:
java.lang.String

getImage2

public java.lang.String getImage2()
Get image 2 of the attribute value
Returns:
java.lang.String

getIntegervalue

public java.lang.Integer getIntegervalue()
Get the integer value of the attribute value
Returns:
java.lang.Integer

getName

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

getOID

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

getSequence

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

getStringvalue

public java.lang.String getStringvalue()
Get the string value of the attribute value
Returns:
java.lang.String

getURL

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

getValue

public java.lang.String getValue()
Get value of the attribute value If value is get, then there is no need to use getFloatvalue, getIntegervalue, getStringvalue. Depending on what attribute type the attribute value is, the value will set the corresponding type.
Returns:
java.lang.String

performExecute

public void performExecute()
                    throws ECException
The main program for AttributeValueUpdate 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 AttributeValueUpdate command
Overrides:
reset in class AbstractECTargetableCommand

setAttributeId

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

setAttrvalueId

public void setAttrvalueId(java.lang.Long anAttrvalueId)
Set the attribute value Id
Specified by:
setAttrvalueId in interface AttributeValueUpdateCmd
Parameters:
anAttrvalueId - java.lang.Long

setCatentryId

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

setDescLanguage

public void setDescLanguage(java.lang.Integer anDescLanguage)
Set language Id of the attribute value
Specified by:
setDescLanguage in interface AttributeValueUpdateCmd
Parameters:
anDescLanguage - java.lang.Integer

setField1

public void setField1(java.lang.Integer anField1)
Set field 1 of the attribute value
Specified by:
setField1 in interface AttributeValueUpdateCmd
Parameters:
anField1 - java.lang.Integer

setField2

public void setField2(java.lang.String astrField2)
Set field 2 of the attribute value
Specified by:
setField2 in interface AttributeValueUpdateCmd
Parameters:
astrField2 - java.lang.String

setField3

public void setField3(java.lang.String astrField3)
Set field 3 of the attribute value
Specified by:
setField3 in interface AttributeValueUpdateCmd
Parameters:
astrField3 - java.lang.String

setFloatvalue

public void setFloatvalue(java.lang.Double adFloatvalue)
Set the float value of the attribute value
Specified by:
setFloatvalue in interface AttributeValueUpdateCmd
Parameters:
adFloatvalue - java.lang.Double

setImage1

public void setImage1(java.lang.String astrImage1)
Set image 1 of the attribute value
Specified by:
setImage1 in interface AttributeValueUpdateCmd
Parameters:
astrImage1 - java.lang.String

setImage2

public void setImage2(java.lang.String astrImage2)
Set image 2 of the attribute value
Specified by:
setImage2 in interface AttributeValueUpdateCmd
Parameters:
astrImage2 - java.lang.String

setIntegervalue

public void setIntegervalue(java.lang.Integer anIntegervalue)
Set the integer value of the attribute value
Specified by:
setIntegervalue in interface AttributeValueUpdateCmd
Parameters:
anIntegervalue - java.lang.Integer

setName

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

setOID

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

setProductAttributeValue

public void setProductAttributeValue(java.lang.String astrProductAttributeValue)
Set the value of the product attribute value It is used to determine the attribute value ID if it is not given by the user.
Specified by:
setProductAttributeValue in interface AttributeValueUpdateCmd
Parameters:
astrProductAttributeValue - java.lang.String

setRequestProperties

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

setSequence

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

setStringvalue

public void setStringvalue(java.lang.String astrStringvalue)
Set the string value of the attribute value
Specified by:
setStringvalue in interface AttributeValueUpdateCmd
Parameters:
astrStringvalue - java.lang.String

setURL

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

setValue

public void setValue(java.lang.String astrValue)
Set the value of the attribute value. If value is set, then there is no need to use setFloatvalue, setIntegervalue, setStringvalue. Depending on what attribute type the attribute value is, the value will set the corresponding type.
Specified by:
setValue in interface AttributeValueUpdateCmd
Parameters:
astrValue - java.lang.String

validateParameters

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