com.ibm.commerce.negotiation.beans
Class ForumMessageLightListBean
- java.lang.Object
-
- com.ibm.commerce.beans.InputDataBeanImpl
-
- com.ibm.commerce.beans.SmartDataBeanImpl
-
- com.ibm.commerce.negotiation.beans.NegotiationListBean
-
- com.ibm.commerce.negotiation.beans.ForumMessageLightListBean
-
- All Implemented Interfaces:
- DataBean, InputDataBean, SmartDataBean, ForumMessageLightListInputDataBean, ForumMessageLightListSmartDataBean, NegotiationListInputDataBean, NegotiationListSmartDataBean, java.io.Serializable
public class ForumMessageLightListBean extends NegotiationListBean implements ForumMessageLightListInputDataBean, ForumMessageLightListSmartDataBean
Provides sorted lists of forum message light beans.- See Also:
NegotiationListBean
,CommandDataBean
, Serialized Form
-
-
Field Summary
-
Fields inherited from class com.ibm.commerce.negotiation.beans.NegotiationListBean
sortingAtt
-
Fields inherited from class com.ibm.commerce.beans.SmartDataBeanImpl
COPYRIGHT
-
Fields inherited from interface com.ibm.commerce.beans.DataBean
emptyString
-
-
Constructor Summary
Constructors Constructor and Description ForumMessageLightListBean()
Constructs a forum message lights list bean.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.String
getForumId()
Gets the forum ID.ForumMessageLightDataBean[]
getForumMessageBeans()
Gets a sorted list of forum messages light objects.java.lang.Integer
getMessagesNum()
Gets the number of messages.java.lang.String
getMsgStatus()
Gets the message status.java.lang.String
getParentMsgId()
Gets the ID of the parent message.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 target ID.java.lang.String
getViewStatus()
Gets the view status.void
populate()
Creates a sorted list of beans.void
setForumId(java.lang.String newForumId)
Sets the forum ID.void
setForumMessageBeans(ForumMessageLightDataBean[] newForumMessageBeans)
Sets the array of forum message beans.void
setMsgStatus(java.lang.String newMsgStatus)
Sets the value of field msg status.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 view status.-
Methods inherited from class com.ibm.commerce.negotiation.beans.NegotiationListBean
getLength, getSortAtt, setSortAtt, setSortAttByString
-
Methods inherited from class com.ibm.commerce.beans.SmartDataBeanImpl
fulfills, getCommandContext, getHttpRequest, getHttpResponse, getResources, getViewCommandContext, setCommandContext, setHttpRequest, setHttpResponse, setViewCommandContext
-
Methods inherited from class com.ibm.commerce.beans.InputDataBeanImpl
getRequestProperties, setRequestProperties
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.commerce.beans.InputDataBean
getRequestProperties, setRequestProperties
-
-
-
-
Constructor Detail
-
ForumMessageLightListBean
public ForumMessageLightListBean()
Constructs a forum message lights list bean.
-
-
Method Detail
-
getForumId
public java.lang.String getForumId()
Gets the forum ID.- Specified by:
getForumId
in interfaceForumMessageLightListSmartDataBean
- Returns:
- the forum ID.
-
getForumMessageBeans
public ForumMessageLightDataBean[] getForumMessageBeans()
Gets a sorted list of forum messages light objects.- Specified by:
getForumMessageBeans
in interfaceForumMessageLightListSmartDataBean
- Returns:
- an array of ForumMessageLight.
-
getMsgStatus
public java.lang.String getMsgStatus()
Gets the message status.- Specified by:
getMsgStatus
in interfaceForumMessageLightListSmartDataBean
- Returns:
- the message status; Active or Deleted.
-
getParentMsgId
public java.lang.String getParentMsgId()
Gets the ID of the parent message.- Specified by:
getParentMsgId
in interfaceForumMessageLightListSmartDataBean
- 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 interfaceForumMessageLightListSmartDataBean
- 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 interfaceForumMessageLightListSmartDataBean
- Returns:
- the ID of the first (root) message of the current thread.
-
getTargetId
public java.lang.String getTargetId()
Gets the target ID.- Specified by:
getTargetId
in interfaceForumMessageLightListSmartDataBean
- Returns:
- the ID of the relevant auction.
-
getViewStatus
public java.lang.String getViewStatus()
Gets the view status.- Specified by:
getViewStatus
in interfaceForumMessageLightListSmartDataBean
- Returns:
- the view status; Public or PrIvate.
-
populate
public void populate() throws java.lang.Exception
Creates a sorted list of beans.- Specified by:
populate
in interfaceSmartDataBean
- Overrides:
populate
in classSmartDataBeanImpl
- Throws:
java.lang.Exception
- if any problems are encountered.
-
setForumId
public void setForumId(java.lang.String newForumId)
Sets the forum ID.- Specified by:
setForumId
in interfaceForumMessageLightListInputDataBean
- Parameters:
newForumId
- the relevant forum ID.
-
setForumMessageBeans
public void setForumMessageBeans(ForumMessageLightDataBean[] newForumMessageBeans)
Sets the array of forum message beans.- Specified by:
setForumMessageBeans
in interfaceForumMessageLightListInputDataBean
- Parameters:
newForumMessageBeans
- The array of forum message lights data beans.
-
setMsgStatus
public void setMsgStatus(java.lang.String newMsgStatus)
Sets the value of field msg status.- Specified by:
setMsgStatus
in interfaceForumMessageLightListInputDataBean
- 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 interfaceForumMessageLightListInputDataBean
- 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 interfaceForumMessageLightListInputDataBean
- 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 interfaceForumMessageLightListInputDataBean
- 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 interfaceForumMessageLightListInputDataBean
- Parameters:
newTargetId
- the ID of the relevant auction.
-
setViewStatus
public void setViewStatus(java.lang.String newViewStatus)
Sets view status.- Specified by:
setViewStatus
in interfaceForumMessageLightListInputDataBean
- Parameters:
newViewStatus
- the view status; Public or Private.
-
getMessagesNum
public java.lang.Integer getMessagesNum()
Gets the number of messages.- Returns:
- the number of messages.
-
-