|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.liquidsite.core.content.PersistentObject
org.liquidsite.core.content.Content
org.liquidsite.core.content.ContentPost
A discussion forum post.
| Field Summary | |
static int |
PLAIN_TEXT_TYPE
The plain text type constant. |
static int |
TAGGED_TEXT_TYPE
The tagged text type constant. |
| Fields inherited from class org.liquidsite.core.content.Content |
DOCUMENT_CATEGORY, FILE_CATEGORY, FOLDER_CATEGORY, FORUM_CATEGORY, NAME_CHARS, PAGE_CATEGORY, POST_CATEGORY, SECTION_CATEGORY, SITE_CATEGORY, TEMPLATE_CATEGORY, TOPIC_CATEGORY, TRANSLATOR_CATEGORY |
| Fields inherited from class org.liquidsite.core.content.PersistentObject |
BINDERS, LOWER_CASE, NUMBERS, UPPER_CASE |
| Constructor Summary | |
protected |
ContentPost(ContentManager manager,
ContentData data,
DataSource src)
Creates a new post. |
|
ContentPost(ContentManager manager,
ContentTopic parent)
Creates a new post with default values. |
| Method Summary | |
protected void |
doInsert(DataSource src,
User user,
boolean restore)
Inserts the object data into the database. |
protected void |
doValidate()
Validates the object data before writing to the database. |
java.lang.String |
getSubject()
Returns the post subject. |
java.lang.String |
getText()
Returns the post text. |
int |
getTextType()
Returns the post text type. |
void |
setName(java.lang.String name)
Sets the post name. |
void |
setSubject(java.lang.String subject)
Sets the post subject. |
void |
setText(java.lang.String text)
Sets the post text. |
void |
setTextType(int type)
Sets the post text type. |
| Methods inherited from class org.liquidsite.core.content.Content |
deleteRevision, doDelete, doUpdate, equals, equals, getAllRevisions, getAttribute, getAttributeNames, getAuthor, getAuthorName, getCategory, getComment, getDomain, getDomainName, getId, getLock, getMaxRevisionNumber, getModifiedDate, getName, getOfflineDate, getOnlineDate, getParent, getParentId, getPermissions, getRevision, getRevisionNumber, isLatestRevision, isOnline, isPublishedRevision, setAttribute, setAuthorName, setComment, setId, setModifiedDate, setOfflineDate, setOnlineDate, setParent, setParentId, setRevisionNumber, toString |
| Methods inherited from class org.liquidsite.core.content.PersistentObject |
decodeMap, delete, delete, encodeMap, getContentManager, hasAdminAccess, hasPublishAccess, hasReadAccess, hasWriteAccess, isPersistent, restore, restore, save, save, validateChars, validateSize |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int PLAIN_TEXT_TYPE
public static final int TAGGED_TEXT_TYPE
| Constructor Detail |
public ContentPost(ContentManager manager,
ContentTopic parent)
throws ContentException
manager - the content manager to useparent - the parent content topic
ContentException - if the database couldn't be accessed
properly
protected ContentPost(ContentManager manager,
ContentData data,
DataSource src)
throws ContentException
manager - the content manager to usedata - the content data objectsrc - the data source to use
ContentException - if the database couldn't be accessed
properly| Method Detail |
public void setName(java.lang.String name)
setName in class Contentname - the new namepublic java.lang.String getSubject()
public void setSubject(java.lang.String subject)
subject - the new post subjectpublic java.lang.String getText()
public void setText(java.lang.String text)
text - the new post textpublic int getTextType()
PLAIN_TEXT_TYPE,
TAGGED_TEXT_TYPEpublic void setTextType(int type)
type - the new post text typePLAIN_TEXT_TYPE,
TAGGED_TEXT_TYPE
protected void doValidate()
throws ContentException
doValidate in class ContentContentException - if the object data wasn't valid
protected void doInsert(DataSource src,
User user,
boolean restore)
throws ContentException
doInsert in class Contentsrc - the data source to useuser - the user performing the operationrestore - the restore flag
ContentException - if the database couldn't be accessed
properly
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||