com.ibm.commerce.negotiation.beans
Class ForumMessageListBean

java.lang.Object
  |
  +--com.ibm.commerce.beans.InputDataBeanImpl
        |
        +--com.ibm.commerce.beans.SmartDataBeanImpl
              |
              +--com.ibm.commerce.negotiation.beans.NegotiationListBean
                    |
                    +--com.ibm.commerce.negotiation.beans.ForumMessageListBean
All Implemented Interfaces:
DataBean, ForumMessageListInputDataBean, ForumMessageListSmartDataBean, InputDataBean, NegotiationListInputDataBean, NegotiationListSmartDataBean, java.io.Serializable, SmartDataBean

public class ForumMessageListBean
extends NegotiationListBean
implements ForumMessageListInputDataBean, ForumMessageListSmartDataBean

Provides sorted lists of ForumMessageDataBean beans.

See Also:
NegotiationListBean, CommandDataBean, Serialized Form

Field Summary
static java.lang.String COPYRIGHT
           
protected  java.lang.String forumId
           
protected  ForumMessageDataBean[] forumMessageBeans
           
protected  java.lang.String msgStatus
           
protected  java.lang.String parentMsgId
           
protected  java.lang.String posterId
           
protected  java.lang.String rootMsgId
           
protected  java.lang.String targetId
           
protected  java.lang.String viewStatus
           
 
Fields inherited from class com.ibm.commerce.negotiation.beans.NegotiationListBean
listSize, sortingAtt
 
Fields inherited from class com.ibm.commerce.beans.SmartDataBeanImpl
commandContext
 
Fields inherited from class com.ibm.commerce.beans.InputDataBeanImpl
requestProperties
 
Fields inherited from interface com.ibm.commerce.beans.DataBean
emptyString
 
Constructor Summary
ForumMessageListBean()
          Constructs a ForumMessageListBean.
 
Method Summary
 java.lang.String getForumId()
          Gets the forumId.
 ForumMessageDataBean[] getForumMessageBeans()
          Gets a sorted list of ForumMessageDataBean objects.
 java.lang.String getMsgStatus()
          Gets the msgStatus.
 java.lang.String getParentMsgId()
          Gets the parentMsgId.
 java.lang.String getPosterId()
          Gets the id of the user posting the message.
 java.lang.String getRootMsgId()
          Gets the id of the first (root) message in the current thread.
 java.lang.String getTargetId()
          Gets the id of the relevant auction.
 java.lang.String getViewStatus()
          Gets the viewStatus.
 void populate()
          Looks up forum messages and populates an array with the result.
 void setForumId(java.lang.String newForumId)
          setForumId(String) Sets the value of field forumId.
 void setForumMessageBeans(ForumMessageDataBean[] newForumMessageBeans)
          Loads the array of ForumMessageDataBean.
 void setMsgStatus(java.lang.String newMsgStatus)
          Sets the msgStatus.
 void setParentMsgId(java.lang.String newParentMsgId)
          Sets the parent message id.
 void setPosterId(java.lang.String newPosterId)
          Sets the id of the user posting the message.
 void setRootMsgId(java.lang.String newRootMsgId)
          Sets the id of the first (root) message in the current thread.
 void setTargetId(java.lang.String newTargetId)
          Sets the id of the relevant auction.
 void setViewStatus(java.lang.String newViewStatus)
          Sets the viewStatus.
 
Methods inherited from class com.ibm.commerce.negotiation.beans.NegotiationListBean
getLength, getSortAtt, setSortAtt
 
Methods inherited from class com.ibm.commerce.beans.SmartDataBeanImpl
fulfills, getCommandContext, getResources, setCommandContext
 
Methods inherited from class com.ibm.commerce.beans.InputDataBeanImpl
getRequestProperties, setRequestProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.commerce.beans.InputDataBean
getRequestProperties, setRequestProperties
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT

forumId

protected java.lang.String forumId

forumMessageBeans

protected ForumMessageDataBean[] forumMessageBeans

msgStatus

protected java.lang.String msgStatus

parentMsgId

protected java.lang.String parentMsgId

posterId

protected java.lang.String posterId

rootMsgId

protected java.lang.String rootMsgId

targetId

protected java.lang.String targetId

viewStatus

protected java.lang.String viewStatus
Constructor Detail

ForumMessageListBean

public ForumMessageListBean()
Constructs a ForumMessageListBean.
Method Detail

getForumId

public java.lang.String getForumId()
Gets the forumId.
Specified by:
getForumId in interface ForumMessageListSmartDataBean
Returns:
forumId java.lang.String

getForumMessageBeans

public ForumMessageDataBean[] getForumMessageBeans()
Gets a sorted list of ForumMessageDataBean objects.
Specified by:
getForumMessageBeans in interface ForumMessageListSmartDataBean
Returns:
a sorted list of ForumMessageDataBean objects.

getMsgStatus

public java.lang.String getMsgStatus()
Gets the msgStatus.
Specified by:
getMsgStatus in interface ForumMessageListSmartDataBean
Returns:
the message status; Active or Deleted.

getParentMsgId

public java.lang.String getParentMsgId()
Gets the parentMsgId.
Specified by:
getParentMsgId in interface ForumMessageListSmartDataBean
Returns:
for a response message, the original message id; for an original message, the message id.

getPosterId

public java.lang.String getPosterId()
Gets the id of the user posting the message.
Specified by:
getPosterId in interface ForumMessageListSmartDataBean
Returns:
the id of the user posting the message.

getRootMsgId

public java.lang.String getRootMsgId()
Gets the id of the first (root) message in the current thread.
Specified by:
getRootMsgId in interface ForumMessageListSmartDataBean
Returns:
the id of the first (root) message in the current thread.

getTargetId

public java.lang.String getTargetId()
Gets the id of the relevant auction.
Specified by:
getTargetId in interface ForumMessageListSmartDataBean
Returns:
the id of the relevant auction.

getViewStatus

public java.lang.String getViewStatus()
Gets the viewStatus.
Specified by:
getViewStatus in interface ForumMessageListSmartDataBean
Returns:
the view status; Public or PrIvate.

populate

public void populate()
              throws java.lang.Exception
Looks up forum messages and populates an array with the result.
Overrides:
populate in class SmartDataBeanImpl
Throws:
java.lang.Exception - if any problems are encountered.

setForumId

public void setForumId(java.lang.String newForumId)
setForumId(String) Sets the value of field forumId.
Specified by:
setForumId in interface ForumMessageListInputDataBean
Parameters:
newForumId - newForumId java.lang.String

setForumMessageBeans

public void setForumMessageBeans(ForumMessageDataBean[] newForumMessageBeans)
Loads the array of ForumMessageDataBean.
Specified by:
setForumMessageBeans in interface ForumMessageListInputDataBean
Parameters:
newForumMessageBeans - new array of ForumMessageDataBean objects.

setMsgStatus

public void setMsgStatus(java.lang.String newMsgStatus)
Sets the msgStatus.
Specified by:
setMsgStatus in interface ForumMessageListInputDataBean
Parameters:
newMsgStatus - the message status; Active or Deleted.

setParentMsgId

public void setParentMsgId(java.lang.String newParentMsgId)
Sets the parent message id.
Specified by:
setParentMsgId in interface ForumMessageListInputDataBean
Parameters:
newParentMsgId - for a response message, the original message id; for an original message, the message id.

setPosterId

public void setPosterId(java.lang.String newPosterId)
Sets the id of the user posting the message.
Specified by:
setPosterId in interface ForumMessageListInputDataBean
Parameters:
newPosterId - the id of the user posting the message.

setRootMsgId

public void setRootMsgId(java.lang.String newRootMsgId)
Sets the id of the first (root) message in the current thread.
Specified by:
setRootMsgId in interface ForumMessageListInputDataBean
Parameters:
newRootMsgId - the id of the first (root) message in the current thread.

setTargetId

public void setTargetId(java.lang.String newTargetId)
Sets the id of the relevant auction.
Specified by:
setTargetId in interface ForumMessageListInputDataBean
Parameters:
newTargetId - the id of the relevant auction.

setViewStatus

public void setViewStatus(java.lang.String newViewStatus)
Sets the viewStatus.
Specified by:
setViewStatus in interface ForumMessageListInputDataBean
Parameters:
newViewStatus - the view status; Public or PrIvate.