ContentBox Core API 1.5.7

contentbox.model.content
Class Page

WEB-INF.cftags.component
        extended by contentbox.model.content.BaseContent
            extended by contentbox.model.content.Page

public class Page
extends BaseContent

******************************************************************************* ContentBox - A Modular Content Platform Copyright 2012 by Luis Majano and Ortus Solutions, Corp www.gocontentbox.org | www.luismajano.com | www.ortussolutions.com ******************************************************************************* Apache License, Version 2.0 Copyright Since [2012] [Luis Majano and Ortus Solutions,Corp] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ******************************************************************************* I am a cms page entity that totally rocks


Constructor Summary
init()
          constructor
 
Method Summary
 any GETEXCERPT()
 any GETLAYOUT()
 any GETMOBILELAYOUT()
 any GETORDER()
 any GETRENDEREDEXCERPT()
 any GETSHOWINMENU()
 void SETEXCERPT(any excerpt)
 void SETLAYOUT(any layout)
 void SETMOBILELAYOUT(any mobileLayout)
 void SETORDER(any order)
 void SETRENDEREDEXCERPT(any renderedExcerpt)
 void SETSHOWINMENU(any showInMenu)
 any getLayoutWithDefault()
          Get the layout or if empty the default convention of "pages"
 any getLayoutWithInheritance()
          Get layout with layout inheritance, if none found return normal saved layout
 any getMemento()
          Get a flat representation of this page
 any getMobileLayoutWithInheritance()
          Get mobile layout with layout inheritance, if none found return normal saved layout
 boolean hasExcerpt()
          has excerpt
 BaseContent prepareForClone(any author, any original, any originalService, boolean publish, any originalSlugRoot, any newSlugRoot)
          Wipe primary key, and descendant keys, and prepare for cloning of entire hierarchies
 any renderExcerpt()
          Render excerpt
 array validate()
 
Methods inherited from class contentbox.model.content.BaseContent
ADDACTIVECONTENT, ADDCHILD, ADDCOMMENT, ADDCONTENTVERSION, ADDCUSTOMFIELD, GETALLOWCOMMENTS, GETCACHE, GETCACHEBOX, GETCACHELASTACCESSTIMEOUT, GETCACHELAYOUT, GETCACHETIMEOUT, GETCATEGORIES, GETCATEGORYSERVICE, GETCHILDREN, GETCOMMENTS, GETCONTENTID, GETCONTENTSERVICE, GETCONTENTTYPE, GETCONTENTVERSIONS, GETCONTENTVERSIONSERVICE, GETCREATEDDATE, GETCREATOR, GETCUSTOMFIELDS, GETCUSTOMFIELDSERVICE, GETEXPIREDATE, GETHITS, GETHTMLDESCRIPTION, GETHTMLKEYWORDS, GETINTERCEPTORSERVICE, GETISPUBLISHED, GETMARKUP, GETNUMBEROFAPPROVEDCOMMENTS, GETNUMBEROFCHILDREN, GETNUMBEROFCOMMENTS, GETNUMBEROFVERSIONS, GETPARENT, GETPASSWORDPROTECTION, GETPUBLISHEDDATE, GETRENDEREDCONTENT, GETSETTINGSERVICE, GETSLUG, GETTITLE, HASACTIVECONTENT, HASCATEGORIES, HASCHILD, HASCOMMENT, HASCONTENTVERSION, HASCREATOR, HASCUSTOMFIELD, HASPARENT, REMOVEACTIVECONTENT, REMOVECHILD, REMOVECOMMENT, REMOVECONTENTVERSION, REMOVECUSTOMFIELD, SETACTIVECONTENT, SETALLOWCOMMENTS, SETCACHE, SETCACHEBOX, SETCACHELASTACCESSTIMEOUT, SETCACHELAYOUT, SETCACHETIMEOUT, SETCATEGORYSERVICE, SETCONTENTSERVICE, SETCONTENTVERSIONSERVICE, SETCREATEDDATE, SETCREATOR, SETCUSTOMFIELDSERVICE, SETEXPIREDATE, SETHITS, SETHTMLDESCRIPTION, SETHTMLKEYWORDS, SETINTERCEPTORSERVICE, SETISPUBLISHED, SETMARKUP, SETNUMBEROFAPPROVEDCOMMENTS, SETNUMBEROFCHILDREN, SETNUMBEROFCOMMENTS, SETNUMBEROFVERSIONS, SETPARENT, SETPASSWORDPROTECTION, SETPUBLISHEDDATE, SETRENDEREDCONTENT, SETSETTINGSERVICE, SETSLUG, SETTITLE, addCategories, addExpiredTime, addNewContentVersion, addPublishedTime, buildContentCacheKey, canCacheContent, getActiveContent, getAuthor, getAuthorEmail, getAuthorName, getCategoriesList, getContent, getCreatorEmail, getCreatorName, getDisplayCreatedDate, getDisplayExpireDate, getDisplayPublishedDate, getExpireDateForEditor, getParentID, getParentName, getPublishedDateForEditor, getRecursiveSlug, inflateCustomFields, isContentPublished, isExpired, isLoaded, isPasswordProtected, isPublishedInFuture, maxContentVersionChecks, removeAllCategories, removeCategories, renderContent, renderContentSilent, setCategories, setChildren, setComments, setContentVersions, setCustomFields
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

public init()
constructor

Method Detail

GETEXCERPT

public any GETEXCERPT()


GETLAYOUT

public any GETLAYOUT()


GETMOBILELAYOUT

public any GETMOBILELAYOUT()


GETORDER

public any GETORDER()


GETRENDEREDEXCERPT

public any GETRENDEREDEXCERPT()


GETSHOWINMENU

public any GETSHOWINMENU()


SETEXCERPT

public void SETEXCERPT(any excerpt)

Parameters:
excerpt

SETLAYOUT

public void SETLAYOUT(any layout)

Parameters:
layout

SETMOBILELAYOUT

public void SETMOBILELAYOUT(any mobileLayout)

Parameters:
mobileLayout

SETORDER

public void SETORDER(any order)

Parameters:
order

SETRENDEREDEXCERPT

public void SETRENDEREDEXCERPT(any renderedExcerpt)

Parameters:
renderedExcerpt

SETSHOWINMENU

public void SETSHOWINMENU(any showInMenu)

Parameters:
showInMenu

getLayoutWithDefault

public any getLayoutWithDefault()
Get the layout or if empty the default convention of "pages"


getLayoutWithInheritance

public any getLayoutWithInheritance()
Get layout with layout inheritance, if none found return normal saved layout


getMemento

public any getMemento()
Get a flat representation of this page

Overrides:
getMemento in class BaseContent

getMobileLayoutWithInheritance

public any getMobileLayoutWithInheritance()
Get mobile layout with layout inheritance, if none found return normal saved layout


hasExcerpt

public boolean hasExcerpt()
has excerpt


prepareForClone

public BaseContent prepareForClone(any author, any original, any originalService, boolean publish, any originalSlugRoot, any newSlugRoot)
Wipe primary key, and descendant keys, and prepare for cloning of entire hierarchies

Overrides:
prepareForClone in class BaseContent
Parameters:
author - The author doing the cloning
original - The original content object that will be cloned into this content object
originalService - The ContentBox content service object
publish - Publish pages or leave as drafts
originalSlugRoot - The original slug that will be replaced in all cloned content
newSlugRoot - The new slug root that will be replaced in all cloned content

renderExcerpt

public any renderExcerpt()
Render excerpt


validate

public array validate()


ContentBox Core API 1.5.7