com.ibm.commerce.utf.commands
Class CreateRFQItemAttributeCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.TaskCommandImpl
                    |
                    +--com.ibm.commerce.utf.commands.CreateRFQItemAttributeCmdImpl
All Implemented Interfaces:
CreateRFQItemAttributeCmd, ECCommand, ECTargetableCommand, TaskCommand

public class CreateRFQItemAttributeCmdImpl
extends TaskCommandImpl
implements CreateRFQItemAttributeCmd

Creates standard product attribute values for an RFQ item.

An RFQ item may or may not have all the attributes of its parent product. This command stores the values for the inherited attributes.

This is the default implementation of the CreateRFQItemAttributeCmd. This command uses the following Data Beans:

See Also:
Serialized Form

Field Summary
 java.util.Vector attributeVector
          Attribute Vector.
 java.lang.Long catentryId
          Catentry Id.
 java.lang.Integer languageId
          Language Id.
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.utf.commands. CreateRFQItemAttributeCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECTargetableCommand
COPYRIGHT
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
CreateRFQItemAttributeCmdImpl()
          Default Constructor.
 
Method Summary
 java.util.Vector getAttributeVector()
          Retrieves the list of attributes.
 java.lang.Long getCatentryId()
          Retrieves the catalog entry ID.
 java.lang.Integer getLanguageId()
          Retrieves the language identifier.
 void performExecute()           Creates standard attribute values for an RFQ item.
 void reset()
          Reset the command.
 void setAttributeVector(java.util.Vector newAttributeVector)
          Stores the list of inherited standard attributes.
 void setCatentryId(java.lang.Long newCatentryId)
          Stores the catalog entry ID.
 void setLanguageId(java.lang.Integer newLanguageId)
          Stores the language identifier.
 void validateParameters()           This method does the following: Verifies that a catalog entry ID has been provided. Verifies that a list of standard attributes has been provided. Verifies that a language identifier has been provided.
 
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
 

Field Detail

attributeVector

public java.util.Vector attributeVector
Attribute Vector.

catentryId

public java.lang.Long catentryId
Catentry Id.

languageId

public java.lang.Integer languageId
Language Id.
Constructor Detail

CreateRFQItemAttributeCmdImpl

public CreateRFQItemAttributeCmdImpl()
Default Constructor.
Method Detail

reset

public void reset()
Reset the command.
Overrides:
reset in class AbstractECTargetableCommand

getAttributeVector

public java.util.Vector getAttributeVector()
Retrieves the list of attributes.
Returns:
The list of standard attributes.

getCatentryId

public java.lang.Long getCatentryId()
Retrieves the catalog entry ID.
Returns:
The catalog entry ID.

getLanguageId

public java.lang.Integer getLanguageId()
Retrieves the language identifier.
Returns:
The language identifier.

performExecute

public void performExecute()
                    throws ECException
Creates standard attribute values for an RFQ item.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECApplicationException - If an application error occurs while creating the attribute entries.
ECSystemException - If a system error occurs while creating the attribute entries.
ECException
See Also:
ECCommand.performExecute()

setAttributeVector

public void setAttributeVector(java.util.Vector newAttributeVector)
Stores the list of inherited standard attributes.
Specified by:
setAttributeVector in interface CreateRFQItemAttributeCmd
Parameters:
newAttributeVector - The list of standard attributes.

setCatentryId

public void setCatentryId(java.lang.Long newCatentryId)
Stores the catalog entry ID.
Specified by:
setCatentryId in interface CreateRFQItemAttributeCmd
Parameters:
newCatentryId - The catalog entry ID.

setLanguageId

public void setLanguageId(java.lang.Integer newLanguageId)
Stores the language identifier.
Specified by:
setLanguageId in interface CreateRFQItemAttributeCmd
Parameters:
newLanguageId - The language identifier.

validateParameters

public void validateParameters()
                        throws ECException
This method does the following:
  1. Verifies that a catalog entry ID has been provided.
  2. Verifies that a list of standard attributes has been provided.
  3. Verifies that a language identifier has been provided.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECApplicationException -
  • If the catalog entry ID has not been provided.
  • If the list of standard attributes is empty.
  • If the language identifier has not been provided.
ECException
See Also:
ECCommand.validateParameters()