public class RFQAttachmentReplaceCmdImpl extends AttachmentUploadCmdImpl implements RFQAttachmentReplaceCmd
The RFQAttachmentReplaceCmdImpl will remove the specified attachment from an RFQ, then upload a file and associate the file to an RFQ.
This is the default implementation of the RFQAttachmentReplaceCmd Command. This command calls the following TaskCommands:
Constructor and Description |
---|
RFQAttachmentReplaceCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String | getDescription()
Gets the description
|
java.lang.Long | getOldAttachmentId()
Gets the attachment ID.
|
AccessVector | getResources()
Gets the access vector accessed by this command.
|
java.lang.Long | getRfqId()
Gets the rfqId
|
void | performExecute()
Save the attachment to datastore, and associate the attachment to an RFQ.
|
void | reset()
Reset the command
|
void | setDescription(java.lang.String description)
Sets the description
|
void | setOldAttachmentId(java.lang.Long oldAttachmentId)
Sets the attachment ID.
|
void | setRequestProperties(TypedProperty reqParms)
Retrieves the identifier of the RFQ, old attachment id, and new attachment description.
The WebController calls the setRequestProperties method before invoking the execute method in this command. |
void | setRfqId(java.lang.Long rfqId)
Sets the rfqId
|
void | validateParameters()
Checks if the RFQ id has been set, and if specified RFQ exist.
|
public void reset()
public AccessVector getResources() throws ECException
public void setRequestProperties(TypedProperty reqParms) throws ECException
public void performExecute() throws ECException
public java.lang.Long getRfqId()
public void setRfqId(java.lang.Long rfqId)
public void validateParameters() throws ECException
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
public java.lang.Long getOldAttachmentId()
public void setOldAttachmentId(java.lang.Long oldAttachmentId)