com.ibm.commerce.catalogmanagement.commands
Interface ProductAttributeAddCmd

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

public interface ProductAttributeAddCmd
extends ControllerCommand

Command Name: ProductAttributeAdd Command Type: URL and controller command Description: 1. Adds a new product attribute to an exisiting catalog entry (Product) at the store default language. 2. Adds the product attribute to an existing catalog entry (Product) at a language other than the store default language. Product attribute at the store default language must exists before the attribute can be created at the secondary language. Parameters: 1. Unique index of the attribute table must be speicified. Most fields in the Attribute table except for MPE related columns and IBM internal use columns. A new attribute ID will be returned at the end of successfully calling the command. 2. Attribute ID and Language ID must be supplied. Most fields in the Attribute table except for MPE related columns and IBM internal use columns. Tables: 1. Attribute 2. Attribute Task Commands: AddAttributeCmd Other Controller Commands: None Mandatory Parameters: catentryId, name, attrtypeId, Additional Parameters: Optional Parameters: desc, desc2, field1, descLangId, seq, usage, URL Default Value: descLanguageId = langauge ID fromcommand contect.


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
 java.lang.String getName()
          Get the attribute name
 void setAttributeId(java.lang.Long anAttributeId)
          Set the attribute ID
 void setAttrLangId(java.lang.Integer anAttrLangId)
          Set the attribute Language ID of the attribute
 void setAttrtypeId(java.lang.String astrAttrtypeId)
          Set the attribute type ID Attribute types included: 1.
 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 name of the attribute
 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

getName

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

setAttributeId

public void setAttributeId(java.lang.Long anAttributeId)
Set the attribute ID
Returns:
anAttributeId java.lang.Long

setAttrLangId

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

setAttrtypeId

public void setAttrtypeId(java.lang.String astrAttrtypeId)
Set the attribute type ID Attribute types included: 1. String 2. Integer 3. Float
Parameters:
astrAttrtypeId - java.lang.String

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:
astrDescription - 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 name of the attribute
Parameters:
astrName - java.lang.String

setOID

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

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