contentbox.models.system

Class Site

lucee.Component
    extended by contentbox.models.BaseEntityMethods
      extended by contentbox.models.BaseEntity
        extended by contentbox.models.system.Site

ContentBox - A Modular Content Platform Copyright since 2012 by Ortus Solutions, Corp www.ortussolutions.com/products/contentbox --- I model a ContentBox site for multi-site support

Class Attributes:
  • entityname : cbSite
  •  
  • cacheuse : read-write
  •  
  • table : cb_site
  •  
  • synchronized : false
  •  
  • cachename : cbSite
  •  
  • accessors : false
  •  
  • persistent : true
  •  
    Property Summary
    type property default serializable required
    any activeTheme


    • access = public
    • returntype = any
    • column = activeTheme
    • notnull = false
    • ormtype = string
    • length = 255
    true false
    any adminBar


    • access = public
    • returntype = any
    • column = adminBar
    • notnull = true
    • ormtype = boolean
    true true false
    array categories


    • access = public
    • inverse = true
    • fieldtype = one-to-many
    • returntype = any
    • cascade = all-delete-orphan
    • orderby = slug
    • singularname = category
    • fkcolumn = FK_siteID
    • cfc = contentbox.models.content.Category
    • lazy = true
    true false
    any contentService


    • access = public
    • returntype = any
    • inject = provider:contentService@contentbox
    • persistent = false
    true false
    array contentStore


    • access = public
    • inverse = true
    • fieldtype = one-to-many
    • returntype = any
    • cascade = all-delete-orphan
    • orderby = parent
    • fkcolumn = FK_siteID
    • cfc = contentbox.models.content.ContentStore
    • lazy = true
    true false
    date createdDate


    • access = public
    • returntype = any
    • column = createdDate
    • notnull = true
    • ormtype = timestamp
    • update = false
    • persistent = true
    true false
    any description


    • access = public
    • returntype = any
    • column = description
    • notnull = false
    • ormtype = string
    • length = 500
    true false
    any domain


    • access = public
    • returntype = any
    • column = domain
    • notnull = false
    • ormtype = string
    • length = 255
    true false
    any domainAliases


    • access = public
    • returntype = any
    • column = domainAliases
    • notnull = false
    • ormtype = text
    • length = 8000
    true false
    any domainRegex


    • access = public
    • returntype = any
    • column = domainRegex
    • notnull = false
    • ormtype = string
    • length = 255
    true false
    array entries


    • access = public
    • inverse = true
    • fieldtype = one-to-many
    • returntype = any
    • cascade = all-delete-orphan
    • orderby = createdDate desc
    • singularname = entry
    • fkcolumn = FK_siteID
    • cfc = contentbox.models.content.Entry
    • lazy = true
    true false
    any homepage


    • access = public
    • returntype = any
    • column = homepage
    • notnull = false
    • ormtype = string
    • length = 255
    cbBlog true false
    any isActive


    • access = public
    • returntype = any
    • column = isActive
    • notnull = true
    • ormtype = boolean
    true true false
    any isBlogEnabled


    • access = public
    • returntype = any
    • column = isBlogEnabled
    • notnull = true
    • ormtype = boolean
    true true false
    any isDeleted


    • access = public
    • returntype = any
    • column = isDeleted
    • notnull = true
    • ormtype = boolean
    • persistent = true
    false true false
    any isSSL


    • access = public
    • returntype = any
    • column = isSSL
    • notnull = true
    • ormtype = boolean
    false true false
    any isSitemapEnabled


    • access = public
    • returntype = any
    • column = isSitemapEnabled
    • notnull = true
    • ormtype = boolean
    true true false
    any keywords


    • access = public
    • returntype = any
    • column = keywords
    • notnull = false
    • ormtype = string
    • length = 255
    true false
    any mediaDisk


    • access = public
    • returntype = any
    • column = mediaDisk
    • notnull = false
    • ormtype = string
    • length = 50
    contentbox true false
    array menus


    • access = public
    • inverse = true
    • fieldtype = one-to-many
    • returntype = any
    • cascade = all-delete-orphan
    • orderby = createdDate desc
    • singularname = menu
    • fkcolumn = FK_siteID
    • cfc = contentbox.models.menu.Menu
    • lazy = true
    true false
    date modifiedDate


    • access = public
    • returntype = any
    • column = modifiedDate
    • notnull = true
    • ormtype = timestamp
    • persistent = true
    true false
    any name


    • access = public
    • returntype = any
    • column = name
    • notnull = true
    • ormtype = string
    • length = 255
    true false
    any notificationEmails


    • access = public
    • returntype = any
    • column = notificationEmails
    • notnull = false
    • ormtype = string
    • length = 500
    true false
    any notifyOnContentStore


    • access = public
    • returntype = any
    • column = notifyOnContentStore
    • notnull = true
    • ormtype = boolean
    true true false
    any notifyOnEntries


    • access = public
    • returntype = any
    • column = notifyOnEntries
    • notnull = true
    • ormtype = boolean
    true true false
    any notifyOnPages


    • access = public
    • returntype = any
    • column = notifyOnPages
    • notnull = true
    • ormtype = boolean
    true true false
    any numberOfCategories


    • access = public
    • returntype = any
    • formula = select count(*) from cb_category as category where category.FK_siteID = siteID
    true false
    any numberOfContentStore


    • access = public
    • returntype = any
    • formula = select count(*) from cb_contentStore as contentStore, cb_content as content where contentStore.contentID=content.contentID and content.FK_siteID = siteID
    true false
    any numberOfEntries


    • access = public
    • returntype = any
    • formula = select count(*) from cb_entry as entry, cb_content as content where entry.contentID=content.contentID and content.FK_siteID = siteID
    true false
    any numberOfMenus


    • access = public
    • returntype = any
    • formula = select count(*) from cb_menu as menu where menu.FK_siteID = siteID
    true false
    any numberOfPages


    • access = public
    • returntype = any
    • formula = select count(*) from cb_page as page, cb_content as content where page.contentID=content.contentID and content.FK_siteID = siteID
    true false
    array pages


    • access = public
    • inverse = true
    • fieldtype = one-to-many
    • returntype = any
    • cascade = all-delete-orphan
    • orderby = parent
    • singularname = page
    • fkcolumn = FK_siteID
    • cfc = contentbox.models.content.Page
    • lazy = true
    true false
    any poweredByHeader


    • access = public
    • returntype = any
    • column = poweredByHeader
    • notnull = true
    • ormtype = boolean
    true true false
    array settings


    • access = public
    • inverse = true
    • fieldtype = one-to-many
    • returntype = any
    • cascade = all-delete-orphan
    • orderby = name
    • singularname = setting
    • fkcolumn = FK_siteID
    • cfc = contentbox.models.system.Setting
    • lazy = true
    true false
    any siteID


    • access = public
    • fieldtype = id
    • returntype = any
    • column = siteID
    • ormtype = string
    • update = false
    • generator = uuid
    • length = 36
    true false
    any slug


    • access = public
    • unique = true
    • returntype = any
    • column = slug
    • notnull = true
    • ormtype = string
    • index = idx_siteSlug
    • length = 255
    true false
    any tagline


    • access = public
    • returntype = any
    • column = tagline
    • notnull = false
    • ormtype = string
    • length = 255
    true false
    Constructor Summary
    init()
          Constructor.
    Method Summary
    any addCategory(any category)
    any addContentStore(any contentStore)
    any addEntry(any entry)
    any addMenu(any menu)
    any addPage(any page)
    any addSetting(any setting)
    string getActiveTheme()
    string getAdminBar()
    string getCategories()
    any getCategory(any slug)
         Tries to get a category object by slug if assigned to this site.
    string getContentService()
    any getContentStore([boolean root='true'])
         We make sure we only return contentStore that have no parent to simulate the root hierarchy.
    string getDescription()
    string getDomain()
    array getDomainAliases()
         Get the domain aliases.
    string getDomainAliasesAsJSON()
         Get the domain aliases as a string.
    string getDomainRegex()
    string getEntries()
    string getHomepage()
    struct getInfoSnapshot()
         A nice snapshot of this entity used for mementifications.
    string getIsActive()
    string getIsBlogEnabled()
    string getIsSSL()
    string getIsSitemapEnabled()
    string getKeywords()
    string getMediaDisk()
    string getMenus()
    string getName()
    string getNotificationEmails()
    string getNotifyOnContentStore()
    string getNotifyOnEntries()
    string getNotifyOnPages()
    string getNumberOfCategories()
    numeric getNumberOfContent()
         Get the total number of content items in this site.
    string getNumberOfContentStore()
    string getNumberOfEntries()
    string getNumberOfMenus()
    string getNumberOfPages()
    any getPages([boolean root='true'])
         We make sure we only return pages that have no parent to simulate the root hierarchy.
    string getPoweredByHeader()
    private any getServerName()
         Get the server host according to lookup order.
    private any getServerPort()
         Get the server port according to lookup order.
    string getSettings()
    string getSiteID()
    string getSiteRoot()
         Get the site root URL as defined per the settings.
    string getSlug()
    string getTagline()
    boolean hasCategory([any category])
    boolean hasContentStore([any contentStore])
    boolean hasEntry([any entry])
    boolean hasMenu([any menu])
    boolean hasPage([any page])
    boolean hasSetting([any setting])
    Site removeAllCategories()
         I remove all category associations.
    Site removeAllContentStore()
         I remove all contentStore associations.
    Site removeAllEntries()
         I remove all entry associations.
    Site removeAllMenus()
         I remove all menu associations.
    Site removeAllPages()
         I remove all page associations.
    Site removeAllSettings()
         I remove all setting associations.
    boolean removeCategory(any category)
    boolean removeContentStore(any contentStore)
    boolean removeEntry(any entry)
    boolean removeMenu(any menu)
    boolean removePage(any page)
    boolean removeSetting(any setting)
    any setActiveTheme(any activeTheme)
    any setAdminBar(any adminBar)
    any setCategories(array categories)
    any setContentService(any contentService)
    any setContentStore(array contentStore)
    any setDescription(any description)
    any setDomain(any domain)
    Site setDomainAliases([any aliases='[runtime expression]'])
         Set the domain aliases.
    any setDomainRegex(any domainRegex)
    any setEntries(array entries)
    any setHomepage(any homepage)
    any setIsActive(any isActive)
    any setIsBlogEnabled(any isBlogEnabled)
    any setIsSSL(any isSSL)
    any setIsSitemapEnabled(any isSitemapEnabled)
    any setKeywords(any keywords)
    any setMediaDisk(any mediaDisk)
    any setMenus(array menus)
    any setName(any name)
    any setNotificationEmails(any notificationEmails)
    any setNotifyOnContentStore(any notifyOnContentStore)
    any setNotifyOnEntries(any notifyOnEntries)
    any setNotifyOnPages(any notifyOnPages)
    any setNumberOfCategories(any numberOfCategories)
    any setNumberOfContentStore(any numberOfContentStore)
    any setNumberOfEntries(any numberOfEntries)
    any setNumberOfMenus(any numberOfMenus)
    any setNumberOfPages(any numberOfPages)
    any setPages(array pages)
    any setPoweredByHeader(any poweredByHeader)
    any setSettings(array settings)
    any setSiteID(any siteID)
    any setSlug(any slug)
    any setTagline(any tagline)
     
    Methods inherited from class contentbox.models.BaseEntity
    getCreatedDate, getIsDeleted, getModifiedDate, setCreatedDate, setIsDeleted, setModifiedDate
     
    Methods inherited from class contentbox.models.BaseEntityMethods
    appendToMemento, appendToMementoProfile, arrayWrap, getDisplayCreatedDate, getDisplayModifiedDate, getEntityName, getId, includeMixin, isLoaded, preInsert, preUpdate
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init()

    Constructor


    Property Detail

    activeTheme

    property any activeTheme

    Attributes:
    access - public
    required - false
    returntype - any
    column - activeTheme
    notnull - false
    ormtype - string
    length - 255
    serializable - true

    adminBar

    property any adminBar = [true]

    Attributes:
    access - public
    required - false
    returntype - any
    column - adminBar
    notnull - true
    ormtype - boolean
    serializable - true

    categories

    property array categories

    Attributes:
    access - public
    required - false
    inverse - true
    fieldtype - one-to-many
    returntype - any
    cascade - all-delete-orphan
    orderby - slug
    singularname - category
    fkcolumn - FK_siteID
    serializable - true
    cfc - contentbox.models.content.Category
    lazy - true

    contentService

    property any contentService

    Attributes:
    access - public
    required - false
    returntype - any
    inject - provider:contentService@contentbox
    persistent - false
    serializable - true

    contentStore

    property array contentStore

    Attributes:
    access - public
    required - false
    inverse - true
    fieldtype - one-to-many
    returntype - any
    cascade - all-delete-orphan
    orderby - parent
    fkcolumn - FK_siteID
    serializable - true
    cfc - contentbox.models.content.ContentStore
    lazy - true

    createdDate

    property date createdDate

    Attributes:
    access - public
    required - false
    returntype - any
    column - createdDate
    notnull - true
    ormtype - timestamp
    update - false
    persistent - true
    serializable - true

    description

    property any description

    Attributes:
    access - public
    required - false
    returntype - any
    column - description
    notnull - false
    ormtype - string
    length - 500
    serializable - true

    domain

    property any domain

    Attributes:
    access - public
    required - false
    returntype - any
    column - domain
    notnull - false
    ormtype - string
    length - 255
    serializable - true

    domainAliases

    property any domainAliases

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

    domainRegex

    property any domainRegex

    Attributes:
    access - public
    required - false
    returntype - any
    column - domainRegex
    notnull - false
    ormtype - string
    length - 255
    serializable - true

    entries

    property array entries

    Attributes:
    access - public
    required - false
    inverse - true
    fieldtype - one-to-many
    returntype - any
    cascade - all-delete-orphan
    orderby - createdDate desc
    singularname - entry
    fkcolumn - FK_siteID
    serializable - true
    cfc - contentbox.models.content.Entry
    lazy - true

    homepage

    property any homepage = [cbBlog]

    Attributes:
    access - public
    required - false
    returntype - any
    column - homepage
    notnull - false
    ormtype - string
    length - 255
    serializable - true

    isActive

    property any isActive = [true]

    Attributes:
    access - public
    required - false
    returntype - any
    column - isActive
    notnull - true
    ormtype - boolean
    serializable - true

    isBlogEnabled

    property any isBlogEnabled = [true]

    Attributes:
    access - public
    required - false
    returntype - any
    column - isBlogEnabled
    notnull - true
    ormtype - boolean
    serializable - true

    isDeleted

    property any isDeleted = [false]

    Attributes:
    access - public
    required - false
    returntype - any
    column - isDeleted
    notnull - true
    ormtype - boolean
    persistent - true
    serializable - true

    isSSL

    property any isSSL = [false]

    Attributes:
    access - public
    required - false
    returntype - any
    column - isSSL
    notnull - true
    ormtype - boolean
    serializable - true

    isSitemapEnabled

    property any isSitemapEnabled = [true]

    Attributes:
    access - public
    required - false
    returntype - any
    column - isSitemapEnabled
    notnull - true
    ormtype - boolean
    serializable - true

    keywords

    property any keywords

    Attributes:
    access - public
    required - false
    returntype - any
    column - keywords
    notnull - false
    ormtype - string
    length - 255
    serializable - true

    mediaDisk

    property any mediaDisk = [contentbox]

    Attributes:
    access - public
    required - false
    returntype - any
    column - mediaDisk
    notnull - false
    ormtype - string
    length - 50
    serializable - true

    menus

    property array menus

    Attributes:
    access - public
    required - false
    inverse - true
    fieldtype - one-to-many
    returntype - any
    cascade - all-delete-orphan
    orderby - createdDate desc
    singularname - menu
    fkcolumn - FK_siteID
    serializable - true
    cfc - contentbox.models.menu.Menu
    lazy - true

    modifiedDate

    property date modifiedDate

    Attributes:
    access - public
    required - false
    returntype - any
    column - modifiedDate
    notnull - true
    ormtype - timestamp
    persistent - true
    serializable - true

    name

    property any name

    Attributes:
    access - public
    required - false
    returntype - any
    column - name
    notnull - true
    ormtype - string
    length - 255
    serializable - true

    notificationEmails

    property any notificationEmails

    Attributes:
    access - public
    required - false
    returntype - any
    column - notificationEmails
    notnull - false
    ormtype - string
    length - 500
    serializable - true

    notifyOnContentStore

    property any notifyOnContentStore = [true]

    Attributes:
    access - public
    required - false
    returntype - any
    column - notifyOnContentStore
    notnull - true
    ormtype - boolean
    serializable - true

    notifyOnEntries

    property any notifyOnEntries = [true]

    Attributes:
    access - public
    required - false
    returntype - any
    column - notifyOnEntries
    notnull - true
    ormtype - boolean
    serializable - true

    notifyOnPages

    property any notifyOnPages = [true]

    Attributes:
    access - public
    required - false
    returntype - any
    column - notifyOnPages
    notnull - true
    ormtype - boolean
    serializable - true

    numberOfCategories

    property any numberOfCategories

    Attributes:
    access - public
    required - false
    returntype - any
    formula - select count(*) from cb_category as category where category.FK_siteID = siteID
    serializable - true

    numberOfContentStore

    property any numberOfContentStore

    Attributes:
    access - public
    required - false
    returntype - any
    formula - select count(*) from cb_contentStore as contentStore, cb_content as content where contentStore.contentID=content.contentID and content.FK_siteID = siteID
    serializable - true

    numberOfEntries

    property any numberOfEntries

    Attributes:
    access - public
    required - false
    returntype - any
    formula - select count(*) from cb_entry as entry, cb_content as content where entry.contentID=content.contentID and content.FK_siteID = siteID
    serializable - true

    numberOfMenus

    property any numberOfMenus

    Attributes:
    access - public
    required - false
    returntype - any
    formula - select count(*) from cb_menu as menu where menu.FK_siteID = siteID
    serializable - true

    numberOfPages

    property any numberOfPages

    Attributes:
    access - public
    required - false
    returntype - any
    formula - select count(*) from cb_page as page, cb_content as content where page.contentID=content.contentID and content.FK_siteID = siteID
    serializable - true

    pages

    property array pages

    Attributes:
    access - public
    required - false
    inverse - true
    fieldtype - one-to-many
    returntype - any
    cascade - all-delete-orphan
    orderby - parent
    singularname - page
    fkcolumn - FK_siteID
    serializable - true
    cfc - contentbox.models.content.Page
    lazy - true

    poweredByHeader

    property any poweredByHeader = [true]

    Attributes:
    access - public
    required - false
    returntype - any
    column - poweredByHeader
    notnull - true
    ormtype - boolean
    serializable - true

    settings

    property array settings

    Attributes:
    access - public
    required - false
    inverse - true
    fieldtype - one-to-many
    returntype - any
    cascade - all-delete-orphan
    orderby - name
    singularname - setting
    fkcolumn - FK_siteID
    serializable - true
    cfc - contentbox.models.system.Setting
    lazy - true

    siteID

    property any siteID

    Attributes:
    access - public
    required - false
    fieldtype - id
    returntype - any
    column - siteID
    ormtype - string
    update - false
    generator - uuid
    length - 36
    serializable - true

    slug

    property any slug

    Attributes:
    access - public
    unique - true
    required - false
    returntype - any
    column - slug
    notnull - true
    ormtype - string
    index - idx_siteSlug
    length - 255
    serializable - true

    tagline

    property any tagline

    Attributes:
    access - public
    required - false
    returntype - any
    column - tagline
    notnull - false
    ormtype - string
    length - 255
    serializable - true

    Method Detail

    addCategory

    public any addCategory(any category)

    Parameters:
    category

    addContentStore

    public any addContentStore(any contentStore)

    Parameters:
    contentStore

    addEntry

    public any addEntry(any entry)

    Parameters:
    entry

    addMenu

    public any addMenu(any menu)

    Parameters:
    menu

    addPage

    public any addPage(any page)

    Parameters:
    page

    addSetting

    public any addSetting(any setting)

    Parameters:
    setting

    getActiveTheme

    public string getActiveTheme()


    getAdminBar

    public string getAdminBar()


    getCategories

    public string getCategories()


    getCategory

    public any getCategory(any slug)

    Tries to get a category object by slug if assigned to this site

    Parameters:
    slug
    Returns:
    The category object or null if not found

    getContentService

    public string getContentService()


    getContentStore

    public any getContentStore([boolean root='true'])

    We make sure we only return contentStore that have no parent to simulate the root hierarchy.

    Parameters:
    root - Show only root level contentStore if enabled

    getDescription

    public string getDescription()


    getDomain

    public string getDomain()


    getDomainAliases

    public array getDomainAliases()

    Get the domain aliases

    Returns:
    The domain aliases as an array

    getDomainAliasesAsJSON

    public string getDomainAliasesAsJSON()

    Get the domain aliases as a string

    Returns:
    The domain aliases as a json string

    getDomainRegex

    public string getDomainRegex()


    getEntries

    public string getEntries()


    getHomepage

    public string getHomepage()


    getInfoSnapshot

    public struct getInfoSnapshot()

    A nice snapshot of this entity used for mementifications


    getIsActive

    public string getIsActive()


    getIsBlogEnabled

    public string getIsBlogEnabled()


    getIsSSL

    public string getIsSSL()


    getIsSitemapEnabled

    public string getIsSitemapEnabled()


    getKeywords

    public string getKeywords()


    getMediaDisk

    public string getMediaDisk()


    getMenus

    public string getMenus()


    getName

    public string getName()


    getNotificationEmails

    public string getNotificationEmails()


    getNotifyOnContentStore

    public string getNotifyOnContentStore()


    getNotifyOnEntries

    public string getNotifyOnEntries()


    getNotifyOnPages

    public string getNotifyOnPages()


    getNumberOfCategories

    public string getNumberOfCategories()


    getNumberOfContent

    public numeric getNumberOfContent()

    Get the total number of content items in this site


    getNumberOfContentStore

    public string getNumberOfContentStore()


    getNumberOfEntries

    public string getNumberOfEntries()


    getNumberOfMenus

    public string getNumberOfMenus()


    getNumberOfPages

    public string getNumberOfPages()


    getPages

    public any getPages([boolean root='true'])

    We make sure we only return pages that have no parent to simulate the root hierarchy.

    Parameters:
    root - Show only root level pages if enabled

    getPoweredByHeader

    public string getPoweredByHeader()


    getServerName

    private any getServerName()

    Get the server host according to lookup order 1. x-forwarded-host header 2. cgi.server_host


    getServerPort

    private any getServerPort()

    Get the server port according to lookup order 1. x-forwarded-port header 2. cgi.server_port


    getSettings

    public string getSettings()


    getSiteID

    public string getSiteID()


    getSiteRoot

    public string getSiteRoot()

    Get the site root URL as defined per the settings


    getSlug

    public string getSlug()


    getTagline

    public string getTagline()


    hasCategory

    public boolean hasCategory([any category])

    Parameters:
    category

    hasContentStore

    public boolean hasContentStore([any contentStore])

    Parameters:
    contentStore

    hasEntry

    public boolean hasEntry([any entry])

    Parameters:
    entry

    hasMenu

    public boolean hasMenu([any menu])

    Parameters:
    menu

    hasPage

    public boolean hasPage([any page])

    Parameters:
    page

    hasSetting

    public boolean hasSetting([any setting])

    Parameters:
    setting

    removeAllCategories

    public Site removeAllCategories()

    I remove all category associations


    removeAllContentStore

    public Site removeAllContentStore()

    I remove all contentStore associations


    removeAllEntries

    public Site removeAllEntries()

    I remove all entry associations


    removeAllMenus

    public Site removeAllMenus()

    I remove all menu associations


    removeAllPages

    public Site removeAllPages()

    I remove all page associations


    removeAllSettings

    public Site removeAllSettings()

    I remove all setting associations


    removeCategory

    public boolean removeCategory(any category)

    Parameters:
    category

    removeContentStore

    public boolean removeContentStore(any contentStore)

    Parameters:
    contentStore

    removeEntry

    public boolean removeEntry(any entry)

    Parameters:
    entry

    removeMenu

    public boolean removeMenu(any menu)

    Parameters:
    menu

    removePage

    public boolean removePage(any page)

    Parameters:
    page

    removeSetting

    public boolean removeSetting(any setting)

    Parameters:
    setting

    setActiveTheme

    public any setActiveTheme(any activeTheme)

    Parameters:
    activeTheme

    setAdminBar

    public any setAdminBar(any adminBar)

    Parameters:
    adminBar

    setCategories

    public any setCategories(array categories)

    Parameters:
    categories

    setContentService

    public any setContentService(any contentService)

    Parameters:
    contentService

    setContentStore

    public any setContentStore(array contentStore)

    Parameters:
    contentStore

    setDescription

    public any setDescription(any description)

    Parameters:
    description

    setDomain

    public any setDomain(any domain)

    Parameters:
    domain

    setDomainAliases

    public Site setDomainAliases([any aliases='[runtime expression]'])

    Set the domain aliases. If the value is an array, it will be serialized to JSON as domain aliases are stored as a JSON string.

    Parameters:
    aliases - The domain aliases as an array or a JSON array string

    setDomainRegex

    public any setDomainRegex(any domainRegex)

    Parameters:
    domainRegex

    setEntries

    public any setEntries(array entries)

    Parameters:
    entries

    setHomepage

    public any setHomepage(any homepage)

    Parameters:
    homepage

    setIsActive

    public any setIsActive(any isActive)

    Parameters:
    isActive

    setIsBlogEnabled

    public any setIsBlogEnabled(any isBlogEnabled)

    Parameters:
    isBlogEnabled

    setIsSSL

    public any setIsSSL(any isSSL)

    Parameters:
    isSSL

    setIsSitemapEnabled

    public any setIsSitemapEnabled(any isSitemapEnabled)

    Parameters:
    isSitemapEnabled

    setKeywords

    public any setKeywords(any keywords)

    Parameters:
    keywords

    setMediaDisk

    public any setMediaDisk(any mediaDisk)

    Parameters:
    mediaDisk

    setMenus

    public any setMenus(array menus)

    Parameters:
    menus

    setName

    public any setName(any name)

    Parameters:
    name

    setNotificationEmails

    public any setNotificationEmails(any notificationEmails)

    Parameters:
    notificationEmails

    setNotifyOnContentStore

    public any setNotifyOnContentStore(any notifyOnContentStore)

    Parameters:
    notifyOnContentStore

    setNotifyOnEntries

    public any setNotifyOnEntries(any notifyOnEntries)

    Parameters:
    notifyOnEntries

    setNotifyOnPages

    public any setNotifyOnPages(any notifyOnPages)

    Parameters:
    notifyOnPages

    setNumberOfCategories

    public any setNumberOfCategories(any numberOfCategories)

    Parameters:
    numberOfCategories

    setNumberOfContentStore

    public any setNumberOfContentStore(any numberOfContentStore)

    Parameters:
    numberOfContentStore

    setNumberOfEntries

    public any setNumberOfEntries(any numberOfEntries)

    Parameters:
    numberOfEntries

    setNumberOfMenus

    public any setNumberOfMenus(any numberOfMenus)

    Parameters:
    numberOfMenus

    setNumberOfPages

    public any setNumberOfPages(any numberOfPages)

    Parameters:
    numberOfPages

    setPages

    public any setPages(array pages)

    Parameters:
    pages

    setPoweredByHeader

    public any setPoweredByHeader(any poweredByHeader)

    Parameters:
    poweredByHeader

    setSettings

    public any setSettings(array settings)

    Parameters:
    settings

    setSiteID

    public any setSiteID(any siteID)

    Parameters:
    siteID

    setSlug

    public any setSlug(any slug)

    Parameters:
    slug

    setTagline

    public any setTagline(any tagline)

    Parameters:
    tagline