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 |
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 |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- COPYRIGHT
- See Also:
-
Constant Field Values
MarkAttachmentForDeleteCmdImpl
public MarkAttachmentForDeleteCmdImpl()
- Constructs a new MarkAttachmentForDeleteCmdImpl class instance.
reset
public void reset()
- Reset the command
-
- Overrides:
-
reset
in class
AbstractECTargetableCommand
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