com.ibm.commerce.utf.commands
Class CreateRFQAttachmentCmdImpl

java.lang.Object
  |
  +--com.ibm.commerce.command.AbstractECCommand
        |
        +--com.ibm.commerce.command.TaskCommandImpl
              |
              +--com.ibm.commerce.utf.commands.CreateRFQAttachmentCmdImpl
All Implemented Interfaces:
CreateRFQAttachmentCmd, ECCommand, TaskCommand

public class CreateRFQAttachmentCmdImpl
extends TaskCommandImpl
implements CreateRFQAttachmentCmd

Task command implementation to create an RFQ attachment.


Field Summary
 java.lang.Long attachmentId
           
 java.lang.String documentdesc
           
 java.lang.String documentURL
           
 java.lang.String mimeencoding
           
 java.lang.String mimetype
           
 java.lang.Long ownerId
           
 java.lang.Long tradingId
           
 java.lang.String usage
           
 
Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.utf.commands.CreateRFQAttachmentCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Constructor Summary
CreateRFQAttachmentCmdImpl()
          CreateRFQAttachmentCmdImpl constructor comment.
 
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()
          Contains the actual business logic of the command It should be implemented by all the command writer.
 void setAttachmentId(java.lang.Long newAttachmentId)
           
 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 server side parameter checking.
 
Methods inherited from class com.ibm.commerce.command.AbstractECCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 

Field Detail

attachmentId

public java.lang.Long attachmentId

documentdesc

public java.lang.String documentdesc

documentURL

public java.lang.String documentURL

mimeencoding

public java.lang.String mimeencoding

mimetype

public java.lang.String mimetype

ownerId

public java.lang.Long ownerId

tradingId

public java.lang.Long tradingId

usage

public java.lang.String usage
Constructor Detail

CreateRFQAttachmentCmdImpl

public CreateRFQAttachmentCmdImpl()
CreateRFQAttachmentCmdImpl constructor comment.
Method Detail

getAttachmentId

public java.lang.Long getAttachmentId()

getDocumentdesc

public java.lang.String getDocumentdesc()

getDocumentURL

public java.lang.String getDocumentURL()

getMimeencoding

public java.lang.String getMimeencoding()

getMimetype

public java.lang.String getMimetype()

getOwnerId

public java.lang.Long getOwnerId()

getTradingId

public java.lang.Long getTradingId()

getUsage

public java.lang.String getUsage()

performExecute

public void performExecute()
                    throws ECException
Description copied from interface: ECCommand
Contains the actual business logic of the command It should be implemented by all the command writer.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
com.ibm.commerce.command.CommandException - The superclass for all ECExceptions.

setAttachmentId

public void setAttachmentId(java.lang.Long newAttachmentId)

setDocumentdesc

public void setDocumentdesc(java.lang.String newDocumentdesc)
Description copied from interface: CreateRFQAttachmentCmd
Stores the document description of the RFQ attachment.
Specified by:
setDocumentdesc in interface CreateRFQAttachmentCmd
Following copied from interface: com.ibm.commerce.utf.commands.CreateRFQAttachmentCmd
Parameters:
newDocumentdesc - The document description.

setDocumentURL

public void setDocumentURL(java.lang.String newDocumentURL)
Description copied from interface: CreateRFQAttachmentCmd
Stores the document URL of the RFQ attachment.
Specified by:
setDocumentURL in interface CreateRFQAttachmentCmd
Following copied from interface: com.ibm.commerce.utf.commands.CreateRFQAttachmentCmd
Parameters:
newDocumentURL - The document URL.

setMimeencoding

public void setMimeencoding(java.lang.String newMimeencoding)
Description copied from interface: CreateRFQAttachmentCmd
Stores the mime encoding of the RFQ attachment.
Specified by:
setMimeencoding in interface CreateRFQAttachmentCmd
Following copied from interface: com.ibm.commerce.utf.commands.CreateRFQAttachmentCmd
Parameters:
newMimeencoding - The mime encoding.

setMimetype

public void setMimetype(java.lang.String newMimetype)
Description copied from interface: CreateRFQAttachmentCmd
Stores the mime type of the RFQ attachment.
Specified by:
setMimetype in interface CreateRFQAttachmentCmd
Following copied from interface: com.ibm.commerce.utf.commands.CreateRFQAttachmentCmd
Parameters:
newMimetype - The mime type.

setOwnerId

public void setOwnerId(java.lang.Long newOwnerId)
Description copied from interface: CreateRFQAttachmentCmd
Stores the owner ID of the RFQ attachment.
Specified by:
setOwnerId in interface CreateRFQAttachmentCmd
Following copied from interface: com.ibm.commerce.utf.commands.CreateRFQAttachmentCmd
Parameters:
newOwnerId - The owner ID.

setTradingId

public void setTradingId(java.lang.Long newTradingId)
Description copied from interface: CreateRFQAttachmentCmd
Stores the trading agreement ID which is also the RFQ ID.
Specified by:
setTradingId in interface CreateRFQAttachmentCmd
Following copied from interface: com.ibm.commerce.utf.commands.CreateRFQAttachmentCmd
Parameters:
newTradingId - The RFQ ID.

setUsage

public void setUsage(java.lang.String newUsage)
Description copied from interface: CreateRFQAttachmentCmd
Stores the attachment usage.
Specified by:
setUsage in interface CreateRFQAttachmentCmd
Following copied from interface: com.ibm.commerce.utf.commands.CreateRFQAttachmentCmd
Parameters:
newUsage - The attachment usage.

validateParameters

public void validateParameters()
                        throws ECException
Description copied from interface: ECCommand
Performs server side parameter checking. This method replaces the checkParameters() method in a previous version of the code.

Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
ECException. -