|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object blackboard.data.BbObject blackboard.data.content.ContentStatus
public class ContentStatus
The ContentStatus
object wraps the state of a user's interaction with a given piece
of content 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
ContentStatus
object.
Field Summary | |
---|---|
static DataType |
DATA_TYPE
|
Fields inherited from class blackboard.data.BbObject |
---|
_bbAttributes |
Constructor Summary | |
---|---|
ContentStatus()
Default constructor. |
Method Summary | |
---|---|
Id |
getContentId()
Returns the content id that this status is attached to |
DataType |
getDataType()
Returns the DataType identifier for the given BbObject-derived
object. |
CourseMembership |
getMembership()
Returns the membership associated with this status. |
boolean |
getPassesRule()
Returns whether the user associated with this status object passes the adaptive release rules that are attached to the associated content object. |
boolean |
getReviewed()
Returns whether the item has been reviewed. |
java.util.Calendar |
getReviewedDate()
Returns the date the user reviewed this item. |
User |
getUser()
Returns the user associated with this status. |
Id |
getUserId()
The id of the user this status is for. |
void |
setContentId(Id contentId)
Method used by the framework when setting review status. |
void |
setReviewedDate(java.util.Calendar cal)
Method used by framework when setting review date. |
void |
setUserId(Id userId)
Method used by the framework when setting review status. |
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 ContentStatus()
If you need to access status for a particular piece of content, use
ContentDbLoader
or
ContentStatusDbLoader
Method Detail |
---|
public DataType getDataType()
BbObject
DataType
identifier for the given BbObject-derived
object. Can be used to uniquely identify the "type" of a data object.
getDataType
in interface IBbObject
getDataType
in class BbObject
DataType
for current objectpublic java.util.Calendar getReviewedDate()
public void setReviewedDate(java.util.Calendar cal)
userId
- public Id getUserId()
public void setUserId(Id userId)
userId
- public User getUser()
ContentStatusDbLoader.loadByContentId()
. See specific method documentation
to see which attributes of the user object are set.
null
if heavy load was not used.public CourseMembership getMembership()
ContentStatusDbLoader.loadByContentId()
. See specific method documentation
to see which attributes of the membership object are set.
null
if heavy load was not used.public Id getContentId()
public void setContentId(Id contentId)
userId
- public boolean getPassesRule()
public boolean getReviewed()
getReviewedDate() != null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |