|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectblackboard.data.BbObject
blackboard.data.discussionboard.MessageStatus
public class MessageStatus
The MessageStatus object wraps the state of a user's interaction with a given piece
of message and adaptive release status.
It is not a persistent object in the ordinary sense; it is loaded from the database, but
combines information derived from different sources. With this in mind, one cannot "save" a
MessageStatus object.
| Field Summary | |
|---|---|
static DataType |
DATA_TYPE
|
| Fields inherited from class blackboard.data.BbObject |
|---|
_bbAttributes |
| Constructor Summary | |
|---|---|
MessageStatus()
Default constructor. |
|
| Method Summary | |
|---|---|
java.lang.Integer |
getAncestorDistance()
Returns the ancestor distance of a message |
Message |
getAncestorObject()
Returns the ancestor message of a message |
java.lang.Integer |
getAncestorPK()
Returns the ancestor pk of a message |
float |
getAverageRating()
Returns the average rating of a message |
DataType |
getDataType()
Returns the DataType identifier for this object. |
boolean |
getHasAttachment()
Returns whether this message has attachment |
boolean |
getHasSubscription()
Returns whether the user is subscribed to this message |
boolean |
getIsFlagged()
Returns whether this message is flagged |
boolean |
getIsRead()
Returns whether this message is read |
int |
getNumberOfChildren()
Returns the number of children of a message |
int |
getNumberOfChildrenNoDraft()
Returns the number of non-draft children of a message |
java.lang.Integer |
getParentPosition()
Returns the parent position of a message |
int |
getReadCount()
Returns the number of read child messages ONLY of this message. |
int |
getReadCountInclSelf()
Returns the number of read children this message has INCLUDING this message itself if it is read. |
int |
getRoundedAverageRating()
Returns the average rating of a message |
java.lang.String |
getTopic()
Returns the topic associated with this message |
int |
getTotalCount()
Returns ONLY the number of children this message has. |
int |
getTotalCountInclSelf()
Returns the number of children this message has INCLUDING this message itself. |
int |
getTotalViews()
Returns the total views of a message |
int |
getUnreadChildrenCount()
Returns the number of unread children ONLY. |
int |
getUnreadCountOfSelfAndChildren()
Returns the number of unread children INCLUDING this message itself. |
void |
setAncestorDistance(java.lang.Integer pk1)
Sets the ancestor distance of a message |
void |
setAncestorPK(java.lang.Integer pk1)
Sets the ancestor pk of a message |
void |
setAverageRating(float n)
Sets the average rating of a message |
void |
setHasAttachment(boolean b)
Sets whether this message has attachment |
void |
setHasSubscription(boolean b)
Sets whether the user is subscribed to this message |
void |
setIsFlagged(boolean b)
Sets whether this message is flagged |
void |
setIsRead(boolean b)
Sets whether this message is read |
void |
setNumberOfChildren(int n)
Sets the number of children of a message |
void |
setNumberOfChildrenNoDraft(int n)
Sets the number of non-draft children of a message |
void |
setParentPosition(java.lang.Integer pk1)
Sets the parent position of a message |
void |
setReadCount(int n)
Sets ONLY the number of read children this message has. |
void |
setTopic(java.lang.String topic)
Sets the topic associated with this message |
void |
setTotalCount(int n)
Sets ONLY the number of children this message has. |
void |
setTotalViews(int n)
Sets the total views of a message |
| Methods inherited from class blackboard.data.BbObject |
|---|
clone, getBbAttributes, getCreatedDate, getId, getModifiedDate, persist, setCreatedDate, setId, setModifiedDate, toString, validate |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static DataType DATA_TYPE
| Constructor Detail |
|---|
public MessageStatus()
If you need to access status for a particular piece of message, use
MessageDbLoader
| Method Detail |
|---|
public DataType getDataType()
DataType identifier for this object. Can be used to
uniquely identify the "type" of this data object.
getDataType in interface IBbObjectgetDataType in interface IdentifiablegetDataType in class BbObjectDataType for this objectpublic java.lang.Integer getAncestorPK()
public void setAncestorPK(java.lang.Integer pk1)
pk1 - the ancestor pk of a messagepublic Message getAncestorObject()
public boolean getIsRead()
public void setIsRead(boolean b)
b - true if this message is read, false otherwisepublic boolean getIsFlagged()
public void setIsFlagged(boolean b)
b - true if this message is flagged, false otherwisepublic boolean getHasAttachment()
public void setHasAttachment(boolean b)
b - true if this message has attachment, false otherwisepublic boolean getHasSubscription()
public void setHasSubscription(boolean b)
b - true if the user is subscribed to this messagepublic java.lang.Integer getParentPosition()
public void setParentPosition(java.lang.Integer pk1)
pk1 - the parent position of a messagepublic java.lang.Integer getAncestorDistance()
public void setAncestorDistance(java.lang.Integer pk1)
pk1 - the ancestor distance of a messagepublic void setTopic(java.lang.String topic)
topic - a String containing the topic for this messagepublic java.lang.String getTopic()
Stringpublic int getNumberOfChildren()
public void setNumberOfChildren(int n)
n - the number of children of a messagepublic int getNumberOfChildrenNoDraft()
public void setNumberOfChildrenNoDraft(int n)
n - the number of non-draft children of a messagepublic int getTotalViews()
public void setTotalViews(int n)
n - the total views of a messagepublic float getAverageRating()
public void setAverageRating(float n)
n - the average rating of a messagepublic int getRoundedAverageRating()
public int getTotalCount()
public int getTotalCountInclSelf()
public void setTotalCount(int n)
n - the total count of childrenpublic int getReadCount()
public int getReadCountInclSelf()
public void setReadCount(int n)
n - the read count of a messagepublic int getUnreadChildrenCount()
public int getUnreadCountOfSelfAndChildren()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||