|
|||||||||||
| 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.ContentTemplate
A web page template.
| 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 |
ContentTemplate(ContentManager manager,
ContentData data,
DataSource src)
Creates a new template. |
|
ContentTemplate(ContentManager manager,
ContentTemplate parent)
Creates a new template with default values. |
|
ContentTemplate(ContentManager manager,
Domain domain)
Creates a new template with default values. |
| Method Summary | |
protected void |
doValidate()
Validates the object data before writing to the database. |
java.util.List |
getAllElementNames(ContentManager manager)
Returns all page element names in this template and it's parents. |
java.lang.String |
getElement(ContentManager manager,
java.lang.String name)
Returns a named page element. |
java.util.List |
getLocalElementNames()
Returns all page element names in this template. |
void |
setElement(java.lang.String name,
java.lang.String data)
Sets the data for a named page element. |
| 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 ContentTemplate(ContentManager manager,
Domain domain)
manager - the content manager to usedomain - the template domain
public ContentTemplate(ContentManager manager,
ContentTemplate parent)
throws ContentException
manager - the content manager to useparent - the parent template
ContentException - if the database couldn't be accessed
properly
protected ContentTemplate(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.util.List getAllElementNames(ContentManager manager)
throws ContentException
manager - the content manager to use
ContentException - if the database couldn't be accessed
properlypublic java.util.List getLocalElementNames()
public java.lang.String getElement(ContentManager manager,
java.lang.String name)
throws ContentException
manager - the content manager to usename - the page element name
ContentException - if the database couldn't be accessed
properly
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 | ||||||||||