com.ibm.commerce.utf.commands
Class ModifyRFQAttachmentCmdImpl

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

public class ModifyRFQAttachmentCmdImpl
extends TaskCommandImpl
implements ModifyRFQAttachmentCmd

This is the default implementation of the ModifyRFQAttachmentCmd.

This command uses the following AccessBeans:

See Also:
Serialized Form

Field Summary
 java.lang.Long attachmentId
          Attachment Id.
 java.lang.String documentdesc
          Attachment Description.
 java.lang.String documentURL
          Document URL.
 java.lang.String mimeencoding
          Document Mime Coding.
 java.lang.String mimetype
          Document Mime Type.
 java.lang.Long ownerId
          Owner Id.
 java.lang.Long tradingId
          Trading Id.
 java.lang.String usage
          Attachment Usage.
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.utf.commands. ModifyRFQAttachmentCmd
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
ModifyRFQAttachmentCmdImpl()
          Default Constructor.
 
Method Summary
 java.lang.Long getAttachmentId()
           
 java.lang.String getDocumentdesc()
           
 java.lang.String getDocumentURL()
           
 java.lang.String getMimeencoding()
           
 java.lang.String getMimetype()
           
 java.lang.Long getOwnerId()
           
 java.lang.Long getTradingId()
           
 java.lang.String getUsage()
           
 void performExecute()
          The business logic for this command.
 void reset()
          Reset the command.
 void setAttachmentId(java.lang.Long newAttachmentId)
          Stores the ID of the RFQ attachment.
 void setDocumentdesc(java.lang.String newDocumentdesc)
          Stores the document description of the RFQ attachment.
 void setDocumentURL(java.lang.String newDocumentURL)
          Stores the document URL of the RFQ attachment.
 void setMimeencoding(java.lang.String newMimeencoding)
          Stores the mime encoding of the RFQ attachment.
 void setMimetype(java.lang.String newMimetype)
          Stores the mime type of the RFQ attachment.
 void setOwnerId(java.lang.Long newOwnerId)
          Stores the owner ID of the RFQ attachment.
 void setTradingId(java.lang.Long newTradingId)
          Stores the trading agreement ID which is also the RFQ ID.
 void setUsage(java.lang.String newUsage)
          Stores the attachment usage.
 void validateParameters()
          Performs parameter checking.
 
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

attachmentId

public java.lang.Long attachmentId
Attachment Id.

documentdesc

public java.lang.String documentdesc
Attachment Description.

documentURL

public java.lang.String documentURL
Document URL.

mimeencoding

public java.lang.String mimeencoding
Document Mime Coding.

mimetype

public java.lang.String mimetype
Document Mime Type.

ownerId

public java.lang.Long ownerId
Owner Id.

tradingId

public java.lang.Long tradingId
Trading Id.

usage

public java.lang.String usage
Attachment Usage.
Constructor Detail

ModifyRFQAttachmentCmdImpl

public ModifyRFQAttachmentCmdImpl()
Default Constructor.
Method Detail

reset

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

getAttachmentId

public java.lang.Long getAttachmentId()
Returns:
Attachment Id

getDocumentdesc

public java.lang.String getDocumentdesc()
Returns:
Attachment Description.

getDocumentURL

public java.lang.String getDocumentURL()
Returns:
Document URL.

getMimeencoding

public java.lang.String getMimeencoding()
Returns:
Document Mime Coding.

getMimetype

public java.lang.String getMimetype()
Returns:
Document Mime Type.

getOwnerId

public java.lang.Long getOwnerId()
Returns:
Owner Id.

getTradingId

public java.lang.Long getTradingId()
Returns:
Trading Id.

getUsage

public java.lang.String getUsage()
Returns:
Attachment Usage.

performExecute

public void performExecute()
                    throws ECException
Description copied from class: AbstractECTargetableCommand
The business logic for this command. This method should be overwritten by all command writers. Command writers should call super.performExecute() as the first line in their method.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException
See Also:
ECCommand#performExecute()

setAttachmentId

public void setAttachmentId(java.lang.Long newAttachmentId)
Description copied from interface: ModifyRFQAttachmentCmd
Stores the ID of the RFQ attachment.
Specified by:
setAttachmentId in interface ModifyRFQAttachmentCmd
Parameters:
newAttachmentId - Sets new attachment Id

setDocumentdesc

public void setDocumentdesc(java.lang.String newDocumentdesc)
Description copied from interface: ModifyRFQAttachmentCmd
Stores the document description of the RFQ attachment.
Specified by:
setDocumentdesc in interface ModifyRFQAttachmentCmd
Parameters:
newDocumentdesc - Sets new attachment description

setDocumentURL

public void setDocumentURL(java.lang.String newDocumentURL)
Description copied from interface: ModifyRFQAttachmentCmd
Stores the document URL of the RFQ attachment.
Specified by:
setDocumentURL in interface ModifyRFQAttachmentCmd
Parameters:
newDocumentURL - Sets new document URL

setMimeencoding

public void setMimeencoding(java.lang.String newMimeencoding)
Description copied from interface: ModifyRFQAttachmentCmd
Stores the mime encoding of the RFQ attachment.
Specified by:
setMimeencoding in interface ModifyRFQAttachmentCmd
Parameters:
newMimeencoding - Sets new document Mime Coding

setMimetype

public void setMimetype(java.lang.String newMimetype)
Description copied from interface: ModifyRFQAttachmentCmd
Stores the mime type of the RFQ attachment.
Specified by:
setMimetype in interface ModifyRFQAttachmentCmd
Parameters:
newMimetype - Sets new document Mime Type

setOwnerId

public void setOwnerId(java.lang.Long newOwnerId)
Description copied from interface: ModifyRFQAttachmentCmd
Stores the owner ID of the RFQ attachment.
Specified by:
setOwnerId in interface ModifyRFQAttachmentCmd
Parameters:
newOwnerId - Sets new Owner

setTradingId

public void setTradingId(java.lang.Long newTradingId)
Description copied from interface: ModifyRFQAttachmentCmd
Stores the trading agreement ID which is also the RFQ ID.
Specified by:
setTradingId in interface ModifyRFQAttachmentCmd
Parameters:
newTradingId - Sets new Trading Id

setUsage

public void setUsage(java.lang.String newUsage)
Description copied from interface: ModifyRFQAttachmentCmd
Stores the attachment usage.
Specified by:
setUsage in interface ModifyRFQAttachmentCmd
Parameters:
newUsage - Sets new Usage

validateParameters

public void validateParameters()
                        throws ECException
Description copied from class: AbstractECTargetableCommand
Performs parameter checking. This method replaces checkParameters() in 5.1. The default implementation of validateParameters() is a no op. It is the responsibility of the command writers to implements this method if they want to perform server side parameter checking.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECException
See Also:
ECCommand#validateParameters()