com.ibm.commerce.rfq.commands
Class RFQCreateForNextRoundCmdImpl

java.lang.Object
  CacheableCommandImpl
      com.ibm.commerce.command.AbstractECTargetableCommand
          com.ibm.commerce.command.ControllerCommandImpl
              com.ibm.commerce.rfq.commands.RFQCreateForNextRoundCmdImpl
All Implemented Interfaces:
AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable, RFQCreateForNextRoundCmd

public class RFQCreateForNextRoundCmdImpl
extends ControllerCommandImpl
implements RFQCreateForNextRoundCmd

Implemetation for creating the next round RFQ.

This is the default implementation of the RFQCreateForNextRoundCmd. This command calls the following TaskCommands:

This command uses the following AccessBeans/DataBeans:
See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
IBM copyright notice field
protected AccessVector iResourcelist
Access Vector
Fields inherited from class com.ibm.commerce.command.ControllerCommandImpl
requestProperties, responseProperties, retriable, viewReqProperties
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
commandContext
Fields inherited from interface com.ibm.commerce.rfq.commands.RFQCreateForNextRoundCmd
defaultCommandClassName, NAME
Constructor Summary
RFQCreateForNextRoundCmdImpl()
Method Summary
boolean getCopyAttachment()
Gets the copyAttachment
java.lang.Long getNewRfqId()
Gets the newRfqId
java.lang.String getNewRfqName()
Gets the newRfqName
AccessVector getResources() Gets the access vector accessed by this command.
java.lang.Long getSourceRfqId()
Gets the sourceRfqId
void performExecute()
Move the RFQ from close state to next round state.
void reset()
Reset the command
void setCopyAttachment(boolean copyAttachment)
Sets the copyAttachment
void setNewRfqId(java.lang.Long newRfqId)
Sets the newRfqId
void setNewRfqName(java.lang.String newRfqName)
Sets the newRfqName
void setSourceRfqId(java.lang.Long sourceRfqId)
Sets the sourceRfqId
void validateParameters()
Checks if the source RFQ id has been set, and if specified RFQ exist.
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setRequestProperties, setResponseProperties, setRetriable, setViewInputProperties
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, 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
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
Methods inherited from interface com.ibm.commerce.command.AccCommand
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
IBM copyright notice field
See Also:
Constant Field Values

iResourcelist

protected AccessVector iResourcelist
Access Vector
Constructor Detail

RFQCreateForNextRoundCmdImpl

public RFQCreateForNextRoundCmdImpl()
Method Detail

reset

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

getResources

public AccessVector getResources()
                          throws ECException
Gets the access vector accessed by this command.
Specified by:
getResources in interface ECCommand
Overrides:
getResources in class AbstractECTargetableCommand
Returns:
AccessVector - a vector of resource action pairs
Throws:
ECException
See Also:
ECCommand.getResources()

performExecute

public void performExecute()
                    throws ECException
Move the RFQ from close state to next round state. Calls the CopyRFQCmd task command to create the next round RFQ Set the new RFQ state to draft If copyAttachment is true Calls the CopyRFQAttachmentCmd to copy all attachments. For all the responses, Move all winning response to WON-NextRound state Mave all losing response to LOST-NextRound
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException
See Also:
ECCommand.performExecute()

validateParameters

public void validateParameters()
                        throws ECException
Checks if the source RFQ id has been set, and if specified RFQ exist. Checks if the new RFQ name has been set, and if RFQ with that new name exists Checks if the copyAttachment has been set.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECException.
ECException
See Also:
ECCommand.validateParameters()

getCopyAttachment

public boolean getCopyAttachment()
Gets the copyAttachment
Returns:
Returns a boolean

setCopyAttachment

public void setCopyAttachment(boolean copyAttachment)
Sets the copyAttachment
Parameters:
copyAttachment - The copyAttachment to set

getNewRfqId

public java.lang.Long getNewRfqId()
Gets the newRfqId
Returns:
Returns a java.lang.Long

setNewRfqId

public void setNewRfqId(java.lang.Long newRfqId)
Sets the newRfqId
Parameters:
newRfqId - The newRfqId to set

getNewRfqName

public java.lang.String getNewRfqName()
Gets the newRfqName
Returns:
Returns a java.lang.String

setNewRfqName

public void setNewRfqName(java.lang.String newRfqName)
Sets the newRfqName
Parameters:
newRfqName - The newRfqName to set

getSourceRfqId

public java.lang.Long getSourceRfqId()
Gets the sourceRfqId
Returns:
Returns a java.lang.Long

setSourceRfqId

public void setSourceRfqId(java.lang.Long sourceRfqId)
Sets the sourceRfqId
Parameters:
sourceRfqId - The sourceRfqId to set

Feedback