com.ibm.commerce.catalogmanagement.commands
Interface ProductAttributeUpdateCmd

All Superinterfaces:
AccCommand, ControllerCommand, ECCommand, Protectable
All Known Implementing Classes:
ProductAttributeUpdateCmdImpl

public interface ProductAttributeUpdateCmd
extends ControllerCommand

Command Name: ProductAttributeUpdate Command Type: URL and controller command Description: 1. Updates an existing attribute, note that attribute type cannot be changed. 2. If a new language ID is supplied, then ProductAttributeAdd will be called to create a an attribute of secondary language. Parameters: 1. Most fields in the attribute table except for MPE related columns and IBM internal use columns. 2. Most fields in the attribute table except for MPE related columns and IBM internal use columns. Tables: 1. Attribute 2. Attribute Task Commands: UpdateAttributeCmd Other Controller Commands: None Mandatory Parameters: attributeId, or catentryId + name Additional Parameters: Optional Parameters: attrtypeId, desc, desc2, field1, descLangId, seq, URL, Default Value: descLangId = language ID from command context.


Field Summary
static java.lang.String CLASSNAME
           
static java.lang.String COPYRIGHT
           
 
Fields inherited from interface com.ibm.commerce.command.ECCommand
defaultCommandClassName
 
Method Summary
 java.lang.Long getAttributeId()
          Get the attribute Id
 java.lang.Long getCatentryId()
          Get the catalog entry Id
 void setAttributeId(java.lang.Long anAttributeId)
          Set the attribute Id
 void setAttrLangId(java.lang.Integer anAttrLangId)
          Set attribute 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 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 setSequence(java.lang.Double anSequence)
          Set the sequence number of the attribute
 void setURL(java.lang.String astrURL)
          Set the redirect URL
 void setUsage(java.lang.String astrUsage)
          Set the usage of the attribute 1 .NULL or "1" indicates SKU-resolution.
 
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, 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, performExecute, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 
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
Method Detail

getAttributeId

public java.lang.Long getAttributeId()
Get the attribute Id
Returns:
java.lang.Long

getCatentryId

public java.lang.Long getCatentryId()
Get the catalog entry Id
Returns:
java.lang.Long

setAttributeId

public void setAttributeId(java.lang.Long anAttributeId)
Set the attribute Id
Parameters:
anAttributeId - java.lang.Long

setAttrLangId

public void setAttrLangId(java.lang.Integer anAttrLangId)
Set attribute language Id of the attribute
Parameters:
anAttrLangId - java.lang.Integer

setCatentryId

public void setCatentryId(java.lang.Long anCatentryId)
Set the catalog entry Id
Parameters:
anCatentryId - java.lang.Long

setDescription

public void setDescription(java.lang.String astrDescription)
Set the description of the attribute
Parameters:
astrDescription - java.lang.String

setDescription2

public void setDescription2(java.lang.String astrDescription2)
Set the second description of the attribute
Parameters:
astrDescription2 - java.lang.String

setField1

public void setField1(java.lang.String astrField1)
Set field 1 of the attribute
Parameters:
astrField1 - java.lang.String

setName

public void setName(java.lang.String astrName)
Set the attribute name
Parameters:
astrName - java.lang.String

setOID

public void setOID(java.lang.String astrOID)
Set the object identifier of the attribute

setSequence

public void setSequence(java.lang.Double anSequence)
Set the sequence number of the attribute
Parameters:
anSequence - java.lang.Double

setURL

public void setURL(java.lang.String astrURL)
Set the redirect URL
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.
Parameters:
astrUsage - java.lang.String