com.ibm.commerce.negotiation.commands
Class ModifyForumMessageCmdImpl

com.ibm.commerce.negotiation.commands.ModifyForumMessageCmdImpl
All Implemented Interfaces:
AccCommand, ControllerCommand, ECCommand, ModifyForumMessageCmd, Protectable, ToolsControllerCommand
Direct Known Subclasses:
ModifyForumMessageListCmdImpl

public class ModifyForumMessageCmdImpl
implements ModifyForumMessageCmd

Controller command allows an administrator to mofify the attributes of a forum message.


Field Summary
protected  com.ibm.commerce.negotiation.commands.ForumMessageHelper fmh
           
 java.util.Hashtable xmlHash
           
 
Fields inherited from interface com.ibm.commerce.negotiation.commands.ModifyForumMessageCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Constructor Summary
ModifyForumMessageCmdImpl()
          ModifyForumMessageCmdImpl constructor.
 
Method Summary
 void executeModify()
          Modifies the VIEWSTATUS and/or MSGSTATUS of one or more entries in the FORUMMSG table.
protected  java.lang.String getErrorText()
          Fetches the text of an error message.
 java.lang.String getMsgAction()
          Returns the msgAction member field.
 int getMsgIdCount()
          Returns the number of msg id's available to process.
protected  java.lang.Long getMsgIdEntry(int index)
          Fetches a specific msgId.
protected  java.lang.String getViewTaskName()
          Gets the viewTaskName field.
protected  java.util.Hashtable getXmlHash()
          Accessor method.
protected  boolean isParameterError()
          Returns true if a parameter error is present.
 boolean isReadyToCallExecute()
          Verifies that the this command is ready to be executed.
 void performExecute()
          Modifies the VIEWSTATUS and/or MSGSTATUS of one or more entries in the FORUMMSG table.
protected  void setErrorText(java.lang.String newErrorText)
          Sets the error text.
 void setMsgAction(java.lang.String newMsgAction)
          Sets the msgAction member field.
protected  void setMsgIdArrayFromList(java.lang.String msgIdList)
          Sets the elements of a Long[] array from a comma-delimited list of msg_id's.
protected  void setParameterError(boolean newParameterError)
          Sets parameter error flag value.
 void setRequestProperties(TypedProperty param)
          Copies key-value input data into member fields.
protected  void setViewTaskName(java.lang.String newViewTaskName)
          Sets the viewTaskName field.
protected  void setXmlHash(java.util.Hashtable newXmlHash)
          Setter method.
 void toolsPerformExecute()
          Performs forum message modify with ECTools error handling logic.
 
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, getUserId, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
 

Field Detail

fmh

protected com.ibm.commerce.negotiation.commands.ForumMessageHelper fmh

xmlHash

public java.util.Hashtable xmlHash
Constructor Detail

ModifyForumMessageCmdImpl

public ModifyForumMessageCmdImpl()
ModifyForumMessageCmdImpl constructor.
Method Detail

executeModify

public void executeModify()
                   throws ECSystemException
Modifies the VIEWSTATUS and/or MSGSTATUS of one or more entries in the FORUMMSG table.
Throws:
ECSystemException -  

getErrorText

protected java.lang.String getErrorText()
Fetches the text of an error message.
Returns:
java.lang.String

getMsgAction

public java.lang.String getMsgAction()
Returns the msgAction member field.
Returns:
java.lang.String

getMsgIdCount

public int getMsgIdCount()
Returns the number of msg id's available to process.
Returns:
int

getMsgIdEntry

protected java.lang.Long getMsgIdEntry(int index)
Fetches a specific msgId.
Returns:
java.lang.Long[]

getViewTaskName

protected java.lang.String getViewTaskName()
Gets the viewTaskName field.
Returns:
java.lang.String

getXmlHash

protected java.util.Hashtable getXmlHash()
Accessor method.
Returns:
java.util.Hashtable

isParameterError

protected boolean isParameterError()
Returns true if a parameter error is present.
Returns:
boolean

isReadyToCallExecute

public boolean isReadyToCallExecute()
Verifies that the this command is ready to be executed.
Returns:
boolean

performExecute

public void performExecute()
                    throws ECSystemException
Modifies the VIEWSTATUS and/or MSGSTATUS of one or more entries in the FORUMMSG table.
Specified by:
performExecute in interface ECCommand
Throws:
ECSystemException -  

setErrorText

protected void setErrorText(java.lang.String newErrorText)
Sets the error text.
Parameters:
newErrorText - java.lang.String

setMsgAction

public void setMsgAction(java.lang.String newMsgAction)
Sets the msgAction member field.
Parameters:
newMsgAction - java.lang.String

setMsgIdArrayFromList

protected void setMsgIdArrayFromList(java.lang.String msgIdList)
                              throws java.lang.NumberFormatException
Sets the elements of a Long[] array from a comma-delimited list of msg_id's.
Parameters:
newMsgIdArray - java.lang.String
Throws:
java.lang.NumberFormatException -  

setParameterError

protected void setParameterError(boolean newParameterError)
Sets parameter error flag value.
Parameters:
newParameterError - boolean

setRequestProperties

public void setRequestProperties(TypedProperty param)
                          throws ECApplicationException
Copies key-value input data into member fields.
Specified by:
setRequestProperties in interface ControllerCommand
Parameters:
param - com.ibm.commerce.datatype.TypedProperty
Throws:
ECApplicationException -  

setViewTaskName

protected void setViewTaskName(java.lang.String newViewTaskName)
Sets the viewTaskName field.
Parameters:
newUrl - java.lang.String

setXmlHash

protected void setXmlHash(java.util.Hashtable newXmlHash)
Setter method.
Parameters:
newXmlHash - java.util.Hashtable

toolsPerformExecute

public void toolsPerformExecute()
                         throws ECSystemException
Performs forum message modify with ECTools error handling logic.
Throws:
ECSystemException -