com.ibm.commerce.rfq.commands
Class MarkAttachmentForDeleteCmdImpl

java.lang.Object
  CacheableCommandImpl
      com.ibm.commerce.command.AbstractECTargetableCommand
          com.ibm.commerce.command.TaskCommandImpl
              com.ibm.commerce.rfq.commands.MarkAttachmentForDeleteCmdImpl
All Implemented Interfaces:
ECCommand, ECTargetableCommand, MarkAttachmentForDeleteCmd, TaskCommand

public class MarkAttachmentForDeleteCmdImpl
extends TaskCommandImpl
implements MarkAttachmentForDeleteCmd

This is the default implementation of the MarkAttachmentForDeleteCmd. This command uses the following AccessBeans:

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
COPYRIGHT
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
commandContext
Fields inherited from interface com.ibm.commerce.rfq.commands.MarkAttachmentForDeleteCmd
defaultCommandClassName, NAME
Fields inherited from interface com.ibm.commerce.command.ECCommand
defaultCommandClassName
Constructor Summary
MarkAttachmentForDeleteCmdImpl()
Constructs a new MarkAttachmentForDeleteCmdImpl class instance.
Method Summary
java.lang.Long[] getAttachmentIds()
Gets the attachmentIds
void performExecute()
Marks all attachments in the attachmentList for delete.
void reset()
Reset the command
void setAttachmentIds(java.lang.Long[] attachmentIds)
Sets the attachmentIds
void validateParameters()
Checks if the attachmentId exists in the database.
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

COPYRIGHT

public static final java.lang.String COPYRIGHT
COPYRIGHT
See Also:
Constant Field Values
Constructor Detail

MarkAttachmentForDeleteCmdImpl

public MarkAttachmentForDeleteCmdImpl()
Constructs a new MarkAttachmentForDeleteCmdImpl class instance.
Method Detail

reset

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

performExecute

public void performExecute()
                    throws ECException
Marks all attachments in the attachmentList for delete.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException.
ECException
See Also:
ECCommand.performExecute()

validateParameters

public void validateParameters()
                        throws ECException
Checks if the attachmentId exists in the database. If exists, add it to the attachmentList.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECException.
ECException
See Also:
ECCommand.validateParameters()

getAttachmentIds

public java.lang.Long[] getAttachmentIds()
Gets the attachmentIds
Returns:
Returns a java.lang.Long[]

setAttachmentIds

public void setAttachmentIds(java.lang.Long[] attachmentIds)
Sets the attachmentIds
Specified by:
setAttachmentIds in interface MarkAttachmentForDeleteCmd
Parameters:
attachmentIds - The attachmentIds to set

Feedback