contentbox.model.content

Class Entry

railo-context.Component
        extended by contentbox.model.content.BaseContent
            extended by contentbox.model.content.Entry
Class Attributes:
  • discriminatorvalue : Entry
  •  
  • entityname : cbEntry
  •  
  • cacheuse : read-write
  •  
  • joincolumn : contentID
  •  
  • table : cb_entry
  •  
  • synchronized : false
  •  
  • cachename : cbEntry
  •  
  • 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 blog entry entity that is amazing

    Property Summary
    type property default serializable required
    any excerpt


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


    • persistent = false
    true false
    Constructor Summary
    init()
          constructor.
    Method Summary
    string getExcerpt()
    any getMemento([array slugCache='[runtime expression]'])
         Get a flat representation of this entry.
    string getRenderedExcerpt()
    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 setRenderedExcerpt(any renderedExcerpt)
    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

    renderedExcerpt

    property any renderedExcerpt

    Attributes:
    required - false
    persistent - false
    serializable - true

    Method Detail

    getExcerpt

    public string getExcerpt()


    getMemento

    public any getMemento([array slugCache='[runtime expression]'])

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

    Overrides:
    getMemento in class BaseContent
    Parameters:
    slugCache

    getRenderedExcerpt

    public string getRenderedExcerpt()


    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

    setRenderedExcerpt

    public any setRenderedExcerpt(any renderedExcerpt)

    Parameters:
    renderedExcerpt

    validate

    public array validate()