ContentBox Core API 1.6.0

contentbox.model.content
Class ContentVersion

WEB-INF.cftags.component
        extended by contentbox.model.content.ContentVersion

public class ContentVersion
extends WEB-INF.cftags.component

******************************************************************************* 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 versioned piece of content

Property Summary
Type Property & Description Default Serializable Required
 any author


Attributes:
  • fieldtype = many-to-one
  • fetch = join
  • notnull = true
  • lazy = true
  • cfc = contentbox.model.security.Author
  • fkcolumn = FK_authorID
true false
 any changelog


Attributes:
  • ormtype = text
  • notnull = false
  • length = 8000
true false
 any content


Attributes:
  • ormtype = text
  • notnull = true
  • length = 8000
true false
 any contentVersionID


Attributes:
  • generator = native
  • fieldtype = id
  • setter = false
true false
 any createdDate


Attributes:
  • update = false
  • index = idx_createdDate
  • ormtype = timestamp
  • notnull = true
true false
 any interceptorService


Attributes:
  • inject = coldbox:interceptorService
  • persistent = false
true false
 any isActive


Attributes:
  • index = idx_active,idx_contentVersions
  • ormtype = boolean
  • notnull = true
  • dbdefault = 0
true true false
 any relatedContent


Attributes:
  • index = idx_contentVersions
  • fetch = join
  • lazy = true
  • fieldtype = many-to-one
  • notnull = true
  • cfc = contentbox.model.content.BaseContent
  • fkcolumn = FK_contentID
true false
 any renderedContent


Attributes:
  • persistent = false
true false
 any version


Attributes:
  • index = idx_version
  • ormtype = integer
  • dbdefalt = 1
  • notnull = true
1 true false
 
Constructor Summary
init()
          constructor
 
Method Summary
 any GETAUTHOR()
 any GETCHANGELOG()
 any GETCONTENT()
 any GETCONTENTVERSIONID()
 any GETCREATEDDATE()
 any GETINTERCEPTORSERVICE()
 any GETISACTIVE()
 any GETRELATEDCONTENT()
 any GETRENDEREDCONTENT()
 any GETVERSION()
 boolean HASAUTHOR()
 boolean HASRELATEDCONTENT()
 ContentVersion SETAUTHOR(any author)
 ContentVersion SETCHANGELOG(any changelog)
 ContentVersion SETCONTENT(any content)
 ContentVersion SETCREATEDDATE(any createdDate)
 ContentVersion SETINTERCEPTORSERVICE(any interceptorService)
 ContentVersion SETISACTIVE(any isActive)
 ContentVersion SETRELATEDCONTENT(any relatedContent)
 ContentVersion SETRENDEREDCONTENT(any renderedContent)
 ContentVersion SETVERSION(any version)
 string getAuthorEmail()
          Shorthand Author email
 string getAuthorName()
          Shorthand Author name
 string getDisplayCreatedDate()
          Get formatted createdDate
 any getMemento()
          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
 boolean isLoaded()
          is loaded?
 any renderContent()
          Render version content out
 
Methods inherited from class WEB-INF.cftags.component
None
 

Constructor Detail

init

public init()
constructor

Property Detail

author

any author

Attributes:
fieldtype - many-to-one
fetch - join
serializable - true
required - false
notnull - true
lazy - true
cfc - contentbox.model.security.Author
default -
fkcolumn - FK_authorID

changelog

any changelog

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

content

any content

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

contentVersionID

any contentVersionID

Attributes:
generator - native
fieldtype - id
serializable - true
required - false
default -
setter - false

createdDate

any createdDate

Attributes:
update - false
index - idx_createdDate
ormtype - timestamp
serializable - true
required - false
notnull - true
default -

interceptorService

any interceptorService

Attributes:
inject - coldbox:interceptorService
serializable - true
required - false
persistent - false
default -

isActive

any isActive

Attributes:
index - idx_active,idx_contentVersions
ormtype - boolean
serializable - true
required - false
notnull - true
dbdefault - 0
default - true

relatedContent

any relatedContent

Attributes:
index - idx_contentVersions
fetch - join
serializable - true
lazy - true
default -
fieldtype - many-to-one
required - false
notnull - true
cfc - contentbox.model.content.BaseContent
fkcolumn - FK_contentID

renderedContent

any renderedContent

Attributes:
required - false
serializable - true
persistent - false
default -

version

any version

Attributes:
index - idx_version
ormtype - integer
dbdefalt - 1
serializable - true
required - false
notnull - true
default - 1

Method Detail

GETAUTHOR

public any GETAUTHOR()


GETCHANGELOG

public any GETCHANGELOG()


GETCONTENT

public any GETCONTENT()


GETCONTENTVERSIONID

public any GETCONTENTVERSIONID()


GETCREATEDDATE

public any GETCREATEDDATE()


GETINTERCEPTORSERVICE

public any GETINTERCEPTORSERVICE()


GETISACTIVE

public any GETISACTIVE()


GETRELATEDCONTENT

public any GETRELATEDCONTENT()


GETRENDEREDCONTENT

public any GETRENDEREDCONTENT()


GETVERSION

public any GETVERSION()


HASAUTHOR

public boolean HASAUTHOR()


HASRELATEDCONTENT

public boolean HASRELATEDCONTENT()


SETAUTHOR

public ContentVersion SETAUTHOR(any author)

Parameters:
author

SETCHANGELOG

public ContentVersion SETCHANGELOG(any changelog)

Parameters:
changelog

SETCONTENT

public ContentVersion SETCONTENT(any content)

Parameters:
content

SETCREATEDDATE

public ContentVersion SETCREATEDDATE(any createdDate)

Parameters:
createdDate

SETINTERCEPTORSERVICE

public ContentVersion SETINTERCEPTORSERVICE(any interceptorService)

Parameters:
interceptorService

SETISACTIVE

public ContentVersion SETISACTIVE(any isActive)

Parameters:
isActive

SETRELATEDCONTENT

public ContentVersion SETRELATEDCONTENT(any relatedContent)

Parameters:
relatedContent

SETRENDEREDCONTENT

public ContentVersion SETRENDEREDCONTENT(any renderedContent)

Parameters:
renderedContent

SETVERSION

public ContentVersion SETVERSION(any version)

Parameters:
version

getAuthorEmail

public string getAuthorEmail()
Shorthand Author email


getAuthorName

public string getAuthorName()
Shorthand Author name


getDisplayCreatedDate

public string getDisplayCreatedDate()
Get formatted createdDate


getMemento

public any getMemento()
Get memento representation


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


isLoaded

public boolean isLoaded()
is loaded?


renderContent

public any renderContent()
Render version content out


ContentBox Core API 1.6.0