com.ibm.commerce.negotiation.commands
Class DeleteMailCmdImpl
java.lang.Object
CacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.ControllerCommandImpl
com.ibm.commerce.negotiation.commands.DeleteMailCmdImpl
- All Implemented Interfaces:
- AccCommand, ControllerCommand, DeleteMailCmd, ECCommand, ECTargetableCommand, Protectable
- public class DeleteMailCmdImpl
- extends ControllerCommandImpl
- implements DeleteMailCmd
Deletes a list of messages from a member's Mail. This command calls the following TaskCommands:
This command uses the following AccessBeans:
- OrderItemAccessBean
- TradingAgreementAccessBean
- TermConditionAccessBean
- BusinessPolicyAccessBean
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
COPYRIGHT
Copyright statement. |
Method Summary |
java.lang.String[] |
getMsgId()
This method returns the Message Reference number which has to be deleted. |
java.lang.String |
getUrl()
Fetches the url. |
java.lang.Long |
getUserId()
Fetches the user id. |
boolean |
isReadyToCallExecute()
Verifies that the this command is ready to be executed. |
void |
performExecute()
performExecute Mark the Status as 'D' in the Message Member Relation Table. |
void |
setMsgId(java.lang.String[] newMsgId)
Set message Id list for deletion . |
void |
setRequestProperties(TypedProperty param)
setRequestProperties Copies key-value input data into member fields. |
void |
setUrl(java.lang.String newUrl)
Sets the url. |
void |
setUserId(java.lang.Long newUserId)
Sets the user id. |
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, 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, getResources, getStoreId, getUser, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters |
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, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- Copyright statement.
- See Also:
- Constant Field Values
DeleteMailCmdImpl
public DeleteMailCmdImpl()
- DeleteMailImpl constructor.
getMsgId
public java.lang.String[] getMsgId()
- This method returns the Message Reference number which has to be deleted. getMessageId Accessor method for member field.
-
- Returns:
- java.lang.Long
getUrl
public java.lang.String getUrl()
- Fetches the url.
-
- Returns:
- java.lang.String
getUserId
public java.lang.Long getUserId()
- Fetches the user id.
-
- Specified by:
- getUserId in interface ECCommand
- Overrides:
- getUserId in class AbstractECTargetableCommand
-
- Returns:
- long
isReadyToCallExecute
public boolean isReadyToCallExecute()
- Verifies that the this command is ready to be executed.
-
- Overrides:
- isReadyToCallExecute in class AbstractECTargetableCommand
-
- Returns:
- boolean true if command is ready, otherwise false.
performExecute
public void performExecute()
throws ECException
- performExecute Mark the Status as 'D' in the Message Member Relation Table.
-
- Specified by:
- performExecute in interface ECCommand
- Overrides:
- performExecute in class AbstractECTargetableCommand
-
- Throws:
- ECException - The exception description.
setMsgId
public void setMsgId(java.lang.String[] newMsgId)
- Set message Id list for deletion .
-
- Parameters:
- newMsgId -
setRequestProperties
public void setRequestProperties(TypedProperty param)
throws ECApplicationException
- setRequestProperties Copies key-value input data into member fields.
-
- Specified by:
- setRequestProperties in interface ControllerCommand
- Overrides:
- setRequestProperties in class ControllerCommandImpl
-
- Parameters:
- param - com.ibm.commerce.datatype.TypedProperty
- Throws:
- ECApplicationException - The exception description.
setUrl
public void setUrl(java.lang.String newUrl)
- Sets the url.
-
- Parameters:
- newUrl - java.lang.String
- Returns:
- java.lang.String
setUserId
public void setUserId(java.lang.Long newUserId)
- Sets the user id.
-
- Parameters:
- newUserId - java.lang.Long
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.