com.ibm.commerce.rfq.commands
Class RespondRFQLevelAttachmentsCmdImpl

java.lang.Object
  CacheableCommandImpl
      com.ibm.commerce.command.AbstractECTargetableCommand
          com.ibm.commerce.command.TaskCommandImpl
              com.ibm.commerce.rfq.commands.RespondRFQLevelAttachmentsCmdImpl
All Implemented Interfaces:
ECCommand, ECTargetableCommand, RespondRFQLevelAttachmentsCmd, TaskCommand

public class RespondRFQLevelAttachmentsCmdImpl
extends TaskCommandImpl
implements RespondRFQLevelAttachmentsCmd

Implementation for creating RFQ level attachments in an RFQ response.

This command uses the following AccessBeans:

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
Copyright.
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
commandContext
Fields inherited from interface com.ibm.commerce.rfq.commands.RespondRFQLevelAttachmentsCmd
defaultCommandClassName, NAME
Fields inherited from interface com.ibm.commerce.command.ECCommand
defaultCommandClassName
Constructor Summary
RespondRFQLevelAttachmentsCmdImpl()
Constructor an instance of RespondRFQLevelAttachmentsCmdImpl.
Method Summary
protected void addTradingAttachmentRelation(java.lang.Long attachmentId)
Add the RFQ response trading attachment relationship.
protected void deleteTradingAttachmentRelation(java.lang.Long attachmentId)
Delete the RFQ response trading attachment relationship.
java.util.Vector getAttachmentsVector()
Gets attachmentsVector
java.lang.Long getResponseId()
Gets responseId
boolean isTradingAttachmentRelationFound(java.lang.Long attachmentId)
Check if the trading attachment relationship is found.
void performExecute()
Create response attachments.
void setAttachmentsVector(java.util.Vector newAttachmentsVector)
Sets the field of attachmentsVector
void setResponseId(java.lang.Long newResponseId)
Sets the field of responseId
void validateParameters()
Validate response parameters.
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, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright.
See Also:
Constant Field Values
Constructor Detail

RespondRFQLevelAttachmentsCmdImpl

public RespondRFQLevelAttachmentsCmdImpl()
Constructor an instance of RespondRFQLevelAttachmentsCmdImpl.
Method Detail

getAttachmentsVector

public java.util.Vector getAttachmentsVector()
Gets attachmentsVector
Returns:
java.util.Vector

getResponseId

public java.lang.Long getResponseId()
Gets responseId
Returns:
java.lang.Long

addTradingAttachmentRelation

protected void addTradingAttachmentRelation(java.lang.Long attachmentId)
                                     throws ECException
Add the RFQ response trading attachment relationship.

Behaviour

Parameters:
attachmentId - java.lang.Long
Throws:
ECException - if any error happens.

deleteTradingAttachmentRelation

protected void deleteTradingAttachmentRelation(java.lang.Long attachmentId)
                                        throws ECException
Delete the RFQ response trading attachment relationship.

Behaviour

Parameters:
attachmentId - java.lang.Long
Throws:
ECException - if any error happens.

isTradingAttachmentRelationFound

public boolean isTradingAttachmentRelationFound(java.lang.Long attachmentId)
Check if the trading attachment relationship is found.
Parameters:
attachmentId - java.lang.Long
Returns:
boolean

performExecute

public void performExecute()
                    throws ECApplicationException,
                           ECException
Create response attachments.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECApplicationException
ECException

setAttachmentsVector

public void setAttachmentsVector(java.util.Vector newAttachmentsVector)
Sets the field of attachmentsVector
Specified by:
setAttachmentsVector in interface RespondRFQLevelAttachmentsCmd
Parameters:
newAttachmentsVector - java.util.Vector

setResponseId

public void setResponseId(java.lang.Long newResponseId)
Sets the field of responseId
Specified by:
setResponseId in interface RespondRFQLevelAttachmentsCmd
Parameters:
newResponseId - java.lang.Long

validateParameters

public void validateParameters()
                        throws ECApplicationException
Validate response parameters.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECApplicationException

Feedback