com.ibm.commerce.catalogmanagement.commands

Class ProductAttributeUpdateCmdImpl

  • All Implemented Interfaces:
    ProductAttributeUpdateCmd, AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    public class ProductAttributeUpdateCmdImpl
    extends ControllerCommandImpl
    implements ProductAttributeUpdateCmd
    The ProductAttributeUpdateCmd is a URL and controller command that:
    • Updates an existing attribute. Note that attribute type cannot be changed.
    • If a new language ID is supplied, then ProductAttributeAddCmd will be called to create the attribute in the secondary language.
    Parameters:
    • Most fields in the ATTRIBUTE table except for Market Place Edition related columns and IBM internal use columns.
    • Most fields in the ATTRIBUTE table except for Market Place Edition related columns and IBM internal use columns.
    Access Beans:
    • AttributeAccessBean
    • AttributeAccessBean
    Task Commands: UpdateAttributeCmd
    Other Controller Commands: None.
    Mandatory Parameters: attributeId, or catentryId and name.
    Additional Parameters: None.
    Optional Parameters: attrtypeId, desc, desc2, field1, descLangId, seq, URL.
    Default Value: descLangId = language ID from command context.
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        The internal copyright field.
        See Also:
        Constant Field Values
      • CLASSNAME

        public static final java.lang.String CLASSNAME
        The name of this interface is "com.ibm.commerce.catalogmanagement.commands.ProductAttributeUpdateCmdImpl".
        See Also:
        Constant Field Values
    • Constructor Detail

      • ProductAttributeUpdateCmdImpl

        public ProductAttributeUpdateCmdImpl()
    • Method Detail

      • 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
      • 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. This method calls the UpdateAttributeCmd task command. It then sets the attribute ID in the response properties.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException
      • reset

        public void reset()
        This method reset all the variables used in ProductAttributeUpdate command
        Specified by:
        reset in interface com.ibm.websphere.command.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
      • 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