public class CSForumContent extends CSItemContent
CSForum
object.
set/get
methods within CSForum
provide access to this content data and so there should
not typically be any need to explicitly use the get/set
methods supplied here.
CSForum
,
Serialized FormConstructor and Description |
---|
CSForumContent()
Construct a
CSForumContent object. |
Modifier and Type | Method and Description |
---|---|
CSItemContent |
createInstance()
Creates a new
CSForumContent object and returns it as a CSItemContent , its super
class. |
boolean |
equals(java.lang.Object obj)
Determines whether the data contained in this
CSForumContent object is equal to another object. |
java.lang.String |
getDescription()
Get the Description of this forum.
|
int |
getForumID()
Get the ID of this forum.
|
java.lang.String |
getForumName()
Get the Name of this forum.
|
int |
getGroupID()
Get the ID of the immediate parent forum group.
|
java.lang.String |
getGroupName()
Get the name of the immediate parent forum group.
|
java.util.Date |
getLastMessage()
Get the date of the last message in this forum.
|
int |
getMessageCount()
Get the number of messages in this forum.
|
boolean |
getModerated()
Determine whether or not this forum is moderated.
|
void |
setDescription(java.lang.String strDesc)
Set the Description of this forum.
|
void |
setForumID(int nForumID)
Set the ID of this forum.
|
void |
setForumName(java.lang.String strForumName)
Set the Name of this forum.
|
void |
setGroupID(int nGroupID)
Set the ID of the immediate parent forum group.
|
void |
setGroupName(java.lang.String strGroupName)
Set the Name of the immediate parent forum group.
|
void |
setLastMessage(java.util.Date LastMessage)
Set the date of the last message in this forum.
|
void |
setMessageCount(int nMessageCount)
Set the number of messages in this forum.
|
void |
setModerated(boolean bModerated)
Mark this forum as moderated/unmoderated.
|
java.lang.String |
toString()
Outputs the contents of this
CSForumContent object to a String object in a
user-friendly format. |
clone, getID, setID, unset
public void setForumID(int nForumID)
nForumID
- the unique numeric ID associated with this forum.public int getForumID()
public void setForumName(java.lang.String strForumName)
strForumName
- a String
containing the name of this forum.public java.lang.String getForumName()
String
containing the name of this forum.public void setDescription(java.lang.String strDesc)
strDesc
- a String
containing the description of this forum.public java.lang.String getDescription()
String
containing the description of this forum.public void setModerated(boolean bModerated)
bModerated
- true
indicates that threads and messages added to this forum must be approved before
they are published.public boolean getModerated()
true
if threads and messages added to this forum must be approved before they are
published, false
otherwise.public void setMessageCount(int nMessageCount)
nMessageCount
- the number of messages in the forum.public int getMessageCount()
public void setLastMessage(java.util.Date LastMessage)
LastMessage
- a Date
representing the time and date that the last message was added to this forum.public java.util.Date getLastMessage()
Date
representing the time and date that the last message was added to this forum.public void setGroupID(int nGroupID)
nGroupID
- the ID of the parent forum group.public int getGroupID()
public void setGroupName(java.lang.String strGroupName)
strGroupName
- the name of the parent forum group.public java.lang.String getGroupName()
public CSItemContent createInstance()
CSForumContent
object and returns it as a CSItemContent
, its super
class.
CSForumContent
object.public java.lang.String toString()
CSForumContent
object to a String
object in a
user-friendly format.
toString
in class CSItemContent
String
containing the user-friendly output.public boolean equals(java.lang.Object obj)
CSForumContent
object is equal to another object.
Note that the key data used for searching is not tested for equality.
equals
in class CSItemContent
obj
- the object to be tested for equality.false
if there are any differences between the objects.Copyright © 2022 Goss Interactive Ltd. All Rights Reserved.