|
|||||||||||
| 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.ContentPage
A web page. A page has optional links to a template and a section. A template link means that the page elements in the templates are inherited by this page. A section link means that any documents in the section can be presented by this page.
| 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 | |
|
ContentPage(ContentManager manager,
Content parent)
Creates a new page with default values. |
protected |
ContentPage(ContentManager manager,
ContentData data,
DataSource src)
Creates a new page. |
| Method Summary | |
protected void |
doValidate()
Validates the object data before writing to the database. |
java.util.List |
getAllElementNames(User user)
Returns all page element names in this page and it's template. |
java.lang.String |
getElement(User user,
java.lang.String name)
Returns a named page element. |
java.util.List |
getLocalElementNames()
Returns all page element names in this page. |
ContentTemplate |
getTemplate(User user)
Returns the page template. |
int |
getTemplateId()
Returns the tempate content identifier. |
void |
setElement(java.lang.String name,
java.lang.String data)
Sets the data for a named page element. |
void |
setTemplate(ContentTemplate template)
Sets the page template. |
void |
setTemplateId(int template)
Sets the template content identifier. |
| 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, 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 ContentPage(ContentManager manager,
Content parent)
throws ContentException
manager - the content manager to useparent - the parent content object
ContentException - if the database couldn't be accessed
properly
protected ContentPage(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 ContentTemplate getTemplate(User user)
throws ContentException,
ContentSecurityException
user - the user performing the operation
ContentException - if the database couldn't be accessed
properly
ContentSecurityException - if the user didn't have read
access to the templatepublic void setTemplate(ContentTemplate template)
template - the new template, or null for nonepublic int getTemplateId()
public void setTemplateId(int template)
template - the new template identifier
public java.util.List getAllElementNames(User user)
throws ContentException,
ContentSecurityException
user - the user performing the operation
ContentException - if the database couldn't be accessed
properly
ContentSecurityException - if the user didn't have read
access to the templatepublic java.util.List getLocalElementNames()
public java.lang.String getElement(User user,
java.lang.String name)
throws ContentException,
ContentSecurityException
user - the user performing the operationname - the page element name
ContentException - if the database couldn't be accessed
properly
ContentSecurityException - if the user didn't have read
access to the template
public void setElement(java.lang.String name,
java.lang.String data)
name - the page element namedata - the page element data, 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 | ||||||||||