com.ibm.commerce.negotiation.commands
Class DeleteMailCmdImpl

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.


Field Summary
static java.lang.String COPYRIGHT
           
 
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.negotiation.commands.DeleteMailCmd
defaultCommandClassName, NAME
 
Constructor Summary
DeleteMailCmdImpl()
          DeleteMailImpl constructor.
 
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
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
 
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
 
Methods inherited from interface com.ibm.commerce.command.AccCommand
accessControlCheck, getAccCheck, getForUserId, setAccCheck, setForUserId, setOwner
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Constructor Detail

DeleteMailCmdImpl

public DeleteMailCmdImpl()
DeleteMailImpl constructor.
Method Detail

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.
Returns:
java.lang.String

setUserId

public void setUserId(java.lang.Long newUserId)
Sets the user id.