contentbox.model.content

Class Page

railo-context.Component
        extended by contentbox.model.content.BaseContent
            extended by contentbox.model.content.Page
Class Attributes:
  • discriminatorvalue : Page
  •  
  • entityname : cbPage
  •  
  • cacheuse : read-write
  •  
  • joincolumn : contentID
  •  
  • table : cb_page
  •  
  • synchronized : false
  •  
  • cachename : cbPage
  •  
  • batchsize : 25
  •  
  • accessors : false
  •  
  • persistent : true
  •  

    ContentBox - A Modular Content Platform Copyright 2012 by Luis Majano and Ortus Solutions, Corp 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

    Property Summary
    type property default serializable required
    any excerpt


    • notnull = false
    • ormtype = text
    • length = 8000
    true false
    any layout


    • notnull = false
    • length = 200
    true false
    any mobileLayout


    • notnull = false
    • length = 200
    true false
    any order


    • notnull = false
    • ormtype = integer
    0 true false
    any renderedExcerpt


    • persistent = false
    true false
    any showInMenu


    • notnull = true
    • ormtype = boolean
    • index = idx_showInMenu
    true true false
    any SSLOnly


    • notnull = true
    • ormtype = boolean
    • index = idx_ssl
    false true false
    Constructor Summary
    init()
          constructor.
    Method Summary
    string getExcerpt()
    string getLayout()
    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([array slugCache='[runtime expression]'])
         Get a flat representation of this page.
    string getMobileLayout()
    any getMobileLayoutWithInheritance()
         Get mobile layout with layout inheritance, if none found return normal saved layout.
    string getOrder()
    string getRenderedExcerpt()
    string getShowInMenu()
    string getSSLOnly()
    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.
    any setExcerpt(any excerpt)
    any setLayout(any layout)
    any setMobileLayout(any mobileLayout)
    any setOrder(any order)
    any setRenderedExcerpt(any renderedExcerpt)
    any setShowInMenu(any showInMenu)
    any setSSLOnly(any SSLOnly)
    array validate()
     
    Methods inherited from class contentbox.model.content.BaseContent
    addActiveContent, addCategories, addChild, addComment, addCommentSubscription, addContentVersion, addCustomField, addExpiredTime, addLinkedContent, addNewContentVersion, addPublishedTime, addRelatedContent, buildContentCacheKey, canCacheContent, getActiveContent, getAllowComments, getAuthor, getAuthorEmail, getAuthorName, getCache, getCachebox, getCacheLastAccessTimeout, getCacheLayout, getCacheTimeout, getCategories, getCategoriesList, getCategoryService, getChildren, getComments, getCommentSubscriptions, getContent, getContentID, getContentService, getContentType, getContentVersions, getContentVersionService, getCreatedDate, getCreator, getCreatorEmail, getCreatorName, getCustomField, getCustomFields, getCustomFieldsAsStruct, getCustomFieldService, getDisplayCreatedDate, getDisplayExpireDate, getDisplayPublishedDate, getExpireDate, getExpireDateForEditor, getHTMLDescription, getHTMLKeywords, getInterceptorService, getIsPublished, getLinkedContent, getMarkup, getNumberOfApprovedComments, getNumberOfChildren, getNumberOfComments, getNumberOfHits, getNumberOfVersions, getParent, getParentID, getParentName, getPasswordProtection, getPublishedDate, getPublishedDateForEditor, getRecursiveSlug, getRelatedContent, getRelatedContentIDs, getRenderedContent, getSettingService, getShowInSearch, getSlug, getStats, getTitle, hasActiveContent, hasCategories, hasChild, hasComment, hasCommentSubscription, hasContentVersion, hasCreator, hasCustomField, hasLinkedContent, hasParent, hasRelatedContent, hasStats, inflateCustomFields, inflateRelatedContent, isContentPublished, isExpired, isLoaded, isPasswordProtected, isPublishedInFuture, maxContentVersionChecks, removeActiveContent, removeAllCategories, removeAllLinkedContent, removeCategories, removeChild, removeComment, removeCommentSubscription, removeContentVersion, removeCustomField, removeLinkedContent, removeRelatedContent, renderContent, renderContentSilent, setActiveContent, setAllowComments, setCache, setCachebox, setCacheLastAccessTimeout, setCacheLayout, setCacheTimeout, setCategories, setCategoryService, setChildren, setComments, setCommentSubscriptions, setContentService, setContentVersions, setContentVersionService, setCreatedDate, setCreator, setCustomFields, setCustomFieldService, setExpireDate, setHTMLDescription, setHTMLKeywords, setInterceptorService, setIsPublished, setLinkedContent, setMarkup, setNumberOfApprovedComments, setNumberOfChildren, setNumberOfComments, setNumberOfHits, setNumberOfVersions, setParent, setPasswordProtection, setPublishedDate, setRelatedContent, setRenderedContent, setSettingService, setShowInSearch, setSlug, setStats, setTitle
     
    Methods inherited from class railo-context.Component
    None

    Constructor Detail

    init

    public init()

    constructor


    Property Detail

    excerpt

    property any excerpt

    Attributes:
    required - false
    notnull - false
    ormtype - text
    length - 8000
    serializable - true

    layout

    property any layout

    Attributes:
    required - false
    notnull - false
    length - 200
    serializable - true

    mobileLayout

    property any mobileLayout

    Attributes:
    required - false
    notnull - false
    length - 200
    serializable - true

    order

    property any order = [0]

    Attributes:
    required - false
    notnull - false
    ormtype - integer
    serializable - true

    renderedExcerpt

    property any renderedExcerpt

    Attributes:
    required - false
    persistent - false
    serializable - true

    showInMenu

    property any showInMenu = [true]

    Attributes:
    required - false
    notnull - true
    ormtype - boolean
    index - idx_showInMenu
    serializable - true

    SSLOnly

    property any SSLOnly = [false]

    Attributes:
    required - false
    notnull - true
    ormtype - boolean
    index - idx_ssl
    serializable - true

    Method Detail

    getExcerpt

    public string getExcerpt()


    getLayout

    public string getLayout()


    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([array slugCache='[runtime expression]'])

    Get a flat representation of this page slugCache.hint Cache of slugs to prevent infinite recursions

    Overrides:
    getMemento in class BaseContent
    Parameters:
    slugCache

    getMobileLayout

    public string getMobileLayout()


    getMobileLayoutWithInheritance

    public any getMobileLayoutWithInheritance()

    Get mobile layout with layout inheritance, if none found return normal saved layout


    getOrder

    public string getOrder()


    getRenderedExcerpt

    public string getRenderedExcerpt()


    getShowInMenu

    public string getShowInMenu()


    getSSLOnly

    public string getSSLOnly()


    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


    setExcerpt

    public any setExcerpt(any excerpt)

    Parameters:
    excerpt

    setLayout

    public any setLayout(any layout)

    Parameters:
    layout

    setMobileLayout

    public any setMobileLayout(any mobileLayout)

    Parameters:
    mobileLayout

    setOrder

    public any setOrder(any order)

    Parameters:
    order

    setRenderedExcerpt

    public any setRenderedExcerpt(any renderedExcerpt)

    Parameters:
    renderedExcerpt

    setShowInMenu

    public any setShowInMenu(any showInMenu)

    Parameters:
    showInMenu

    setSSLOnly

    public any setSSLOnly(any SSLOnly)

    Parameters:
    SSLOnly

    validate

    public array validate()