com.ibm.commerce.utf.commands
Class ModifyRFQAttachmentCmdImpl

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

public class ModifyRFQAttachmentCmdImpl
extends TaskCommandImpl
implements ModifyRFQAttachmentCmd

Task command implementation to update 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.ModifyRFQAttachmentCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Constructor Summary
ModifyRFQAttachmentCmdImpl()
           
 
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)
          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 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

ModifyRFQAttachmentCmdImpl

public ModifyRFQAttachmentCmdImpl()
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)
Description copied from interface: ModifyRFQAttachmentCmd
Stores the ID of the RFQ attachment.
Specified by:
setAttachmentId in interface ModifyRFQAttachmentCmd
Following copied from interface: com.ibm.commerce.utf.commands.ModifyRFQAttachmentCmd
Parameters:
newAttachmentId - The 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
Following copied from interface: com.ibm.commerce.utf.commands.ModifyRFQAttachmentCmd
Parameters:
newDocumentdesc - The document 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
Following copied from interface: com.ibm.commerce.utf.commands.ModifyRFQAttachmentCmd
Parameters:
newDocumentURL - The 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
Following copied from interface: com.ibm.commerce.utf.commands.ModifyRFQAttachmentCmd
Parameters:
newMimeencoding - The mime encoding.

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
Following copied from interface: com.ibm.commerce.utf.commands.ModifyRFQAttachmentCmd
Parameters:
newMimetype - The 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
Following copied from interface: com.ibm.commerce.utf.commands.ModifyRFQAttachmentCmd
Parameters:
newOwnerId - The owner ID.

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
Following copied from interface: com.ibm.commerce.utf.commands.ModifyRFQAttachmentCmd
Parameters:
newTradingId - The RFQ ID.

setUsage

public void setUsage(java.lang.String newUsage)
Description copied from interface: ModifyRFQAttachmentCmd
Stores the attachment usage.
Specified by:
setUsage in interface ModifyRFQAttachmentCmd
Following copied from interface: com.ibm.commerce.utf.commands.ModifyRFQAttachmentCmd
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. -