|
|||||||||||
| 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.ContentSection
A content section.
| Field Summary |
| 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 |
ContentSection(ContentManager manager,
ContentData data,
DataSource src)
Creates a new section. |
|
ContentSection(ContentManager manager,
ContentSection parent)
Creates a new section with default values. |
|
ContentSection(ContentManager manager,
Domain domain)
Creates a new root section with default values. |
| Method Summary | |
protected void |
doValidate()
Validates the object data before writing to the database. |
DocumentProperty[] |
getAllDocumentProperties()
Returns all document properties for this section. |
java.lang.String |
getDescription()
Returns the section description. |
DocumentProperty |
getDocumentProperty(java.lang.String id)
Returns an identified document property. |
void |
setDescription(java.lang.String description)
Sets the section description. |
void |
setDocumentProperty(java.lang.String id,
DocumentProperty property)
Sets a document property. |
| Methods inherited from class org.liquidsite.core.content.Content |
deleteRevision, doDelete, doInsert, 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, setName, 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 |
| Constructor Detail |
public ContentSection(ContentManager manager,
Domain domain)
manager - the content manager to usedomain - the domain
public ContentSection(ContentManager manager,
ContentSection parent)
throws ContentException
manager - the content manager to useparent - the parent content section
ContentException - if the database couldn't be accessed
properly
protected ContentSection(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 java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - the new section descriptionpublic DocumentProperty[] getAllDocumentProperties()
public DocumentProperty getDocumentProperty(java.lang.String id)
id - the document property identifier
public void setDocumentProperty(java.lang.String id,
DocumentProperty property)
id - the document property identifierproperty - the document property, or null
protected void doValidate()
throws ContentException
doValidate in class ContentContentException - if the object data wasn't valid
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||