contentbox.models.content

Class ContentVersion

lucee.Component
    extended by contentbox.models.BaseEntityMethods
      extended by contentbox.models.BaseEntity
        extended by contentbox.models.content.ContentVersion

ContentBox - A Modular Content Platform Copyright since 2012 by Ortus Solutions, Corp www.ortussolutions.com/products/contentbox --- I am a versioned piece of content

Class Attributes:
  • entityname : cbContentVersion
  •  
  • cacheuse : read-write
  •  
  • table : cb_contentVersion
  •  
  • synchronized : false
  •  
  • cachename : cbContentVersion
  •  
  • batchsize : 25
  •  
  • accessors : false
  •  
  • persistent : true
  •  
    Property Summary
    type property default serializable required
    any author


    • access = public
    • fieldtype = many-to-one
    • returntype = any
    • fetch = join
    • notnull = true
    • fkcolumn = FK_authorID
    • cfc = contentbox.models.security.Author
    • lazy = true
    true false
    any changelog


    • access = public
    • returntype = any
    • notnull = false
    • ormtype = text
    • length = 8000
    true false
    any content


    • access = public
    • returntype = any
    • notnull = true
    • ormtype = text
    • length = 8000
    true false
    any contentVersionID


    • access = public
    • fieldtype = id
    • returntype = any
    • params = { allocationSize = 1, sequence = 'contentVersionID_seq' }
    • generator = native
    • setter = no
    true false
    date createdDate


    • access = public
    • returntype = any
    • notnull = true
    • ormtype = timestamp
    • update = false
    • index = idx_createDate
    true false
    any interceptorService


    • access = public
    • returntype = any
    • inject = coldbox:interceptorService
    • persistent = false
    true false
    any isActive


    • access = public
    • returntype = any
    • notnull = true
    • ormtype = boolean
    • index = idx_activeContentVersion,idx_contentVersions
    false true false
    any isDeleted


    • access = public
    • dbdefault = 0
    • returntype = any
    • notnull = true
    • ormtype = boolean
    • index = idx_deleted
    • sqltype = bit
    false true false
    date modifiedDate


    • access = public
    • returntype = any
    • notnull = true
    • ormtype = timestamp
    • index = idx_modifiedDate
    true false
    any relatedContent


    • access = public
    • fieldtype = many-to-one
    • returntype = any
    • fetch = join
    • notnull = true
    • index = idx_contentVersions
    • fkcolumn = FK_contentID
    • cfc = contentbox.models.content.BaseContent
    • lazy = true
    true false
    any renderedContent


    • access = public
    • returntype = any
    • persistent = false
    true false
    any version


    • access = public
    • returntype = any
    • notnull = true
    • ormtype = integer
    • index = idx_version
    1 true false
    Constructor Summary
    init()
          constructor.
    Method Summary
    string getAuthor()
    string getAuthorEmail()
         Shorthand Author email.
    string getAuthorName()
         Shorthand Author name.
    string getChangelog()
    string getContent()
    string getContentVersionID()
    string getInterceptorService()
    string getIsActive()
    any getMemento([any excludes=''])
         Get memento representation.
    any getParentSlug()
         Get parent slug from the related content it belongs to.
    any getParentTitle()
         Get parent title from the related content it belongs to.
    string getRelatedContent()
    string getRenderedContent()
    string getVersion()
    boolean hasAuthor([any author])
    boolean hasRelatedContent([any relatedContent])
    any renderContent()
         Render version content out.
    any setAuthor(any author)
    any setChangelog(any changelog)
    any setContent(any content)
    any setInterceptorService(any interceptorService)
    any setIsActive(any isActive)
    any setRelatedContent(any relatedContent)
    any setRenderedContent(any renderedContent)
    any setVersion(any version)
     
    Methods inherited from class contentbox.models.BaseEntity
    getCreatedDate, getIsDeleted, getModifiedDate, setCreatedDate, setIsDeleted, setModifiedDate
     
    Methods inherited from class contentbox.models.BaseEntityMethods
    getBaseMemento, getDisplayCreatedDate, getDisplayModifiedDate, isLoaded, preInsert, preUpdate
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init()

    constructor


    Property Detail

    author

    property any author

    Attributes:
    access - public
    required - false
    fieldtype - many-to-one
    returntype - any
    fetch - join
    notnull - true
    fkcolumn - FK_authorID
    serializable - true
    cfc - contentbox.models.security.Author
    lazy - true

    changelog

    property any changelog

    Attributes:
    access - public
    required - false
    returntype - any
    notnull - false
    ormtype - text
    length - 8000
    serializable - true

    content

    property any content

    Attributes:
    access - public
    required - false
    returntype - any
    notnull - true
    ormtype - text
    length - 8000
    serializable - true

    contentVersionID

    property any contentVersionID

    Attributes:
    access - public
    required - false
    fieldtype - id
    returntype - any
    params - { allocationSize = 1, sequence = 'contentVersionID_seq' }
    generator - native
    serializable - true
    setter - no

    createdDate

    property date createdDate

    Attributes:
    access - public
    required - false
    returntype - any
    notnull - true
    ormtype - timestamp
    update - false
    index - idx_createDate
    serializable - true

    interceptorService

    property any interceptorService

    Attributes:
    access - public
    required - false
    returntype - any
    inject - coldbox:interceptorService
    persistent - false
    serializable - true

    isActive

    property any isActive = [false]

    Attributes:
    access - public
    required - false
    returntype - any
    notnull - true
    ormtype - boolean
    index - idx_activeContentVersion,idx_contentVersions
    serializable - true

    isDeleted

    property any isDeleted = [false]

    Attributes:
    access - public
    required - false
    dbdefault - 0
    returntype - any
    notnull - true
    ormtype - boolean
    index - idx_deleted
    serializable - true
    sqltype - bit

    modifiedDate

    property date modifiedDate

    Attributes:
    access - public
    required - false
    returntype - any
    notnull - true
    ormtype - timestamp
    index - idx_modifiedDate
    serializable - true

    relatedContent

    property any relatedContent

    Attributes:
    access - public
    required - false
    fieldtype - many-to-one
    returntype - any
    fetch - join
    notnull - true
    index - idx_contentVersions
    fkcolumn - FK_contentID
    serializable - true
    cfc - contentbox.models.content.BaseContent
    lazy - true

    renderedContent

    property any renderedContent

    Attributes:
    access - public
    required - false
    returntype - any
    persistent - false
    serializable - true

    version

    property any version = [1]

    Attributes:
    access - public
    required - false
    returntype - any
    notnull - true
    ormtype - integer
    index - idx_version
    serializable - true

    Method Detail

    getAuthor

    public string getAuthor()


    getAuthorEmail

    public string getAuthorEmail()

    Shorthand Author email


    getAuthorName

    public string getAuthorName()

    Shorthand Author name


    getChangelog

    public string getChangelog()


    getContent

    public string getContent()


    getContentVersionID

    public string getContentVersionID()


    getInterceptorService

    public string getInterceptorService()


    getIsActive

    public string getIsActive()


    getMemento

    public any getMemento([any excludes=''])

    Get memento representation

    Parameters:
    excludes

    getParentSlug

    public any getParentSlug()

    Get parent slug from the related content it belongs to


    getParentTitle

    public any getParentTitle()

    Get parent title from the related content it belongs to


    getRelatedContent

    public string getRelatedContent()


    getRenderedContent

    public string getRenderedContent()


    getVersion

    public string getVersion()


    hasAuthor

    public boolean hasAuthor([any author])

    Parameters:
    author

    hasRelatedContent

    public boolean hasRelatedContent([any relatedContent])

    Parameters:
    relatedContent

    renderContent

    public any renderContent()

    Render version content out


    setAuthor

    public any setAuthor(any author)

    Parameters:
    author

    setChangelog

    public any setChangelog(any changelog)

    Parameters:
    changelog

    setContent

    public any setContent(any content)

    Parameters:
    content

    setInterceptorService

    public any setInterceptorService(any interceptorService)

    Parameters:
    interceptorService

    setIsActive

    public any setIsActive(any isActive)

    Parameters:
    isActive

    setRelatedContent

    public any setRelatedContent(any relatedContent)

    Parameters:
    relatedContent

    setRenderedContent

    public any setRenderedContent(any renderedContent)

    Parameters:
    renderedContent

    setVersion

    public any setVersion(any version)

    Parameters:
    version