mura.content

Class contentManager

lucee.Component
    extended by mura.cfobject
      extended by mura.content.contentManager

This provides content service level logic functionality

Class Attributes:
  • output : false
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Constructor Summary
    init(any configBean, any contentGateway, any contentDAO, any contentUtility, any reminderManager, any settingsManager, any utility, any categoryManager, any fileManager, any pluginManager, any trashManager, any changesetManager, any clusterManager)
    Method Summary
    any add([any data])
    any approveComment([string commentID], any contentRenderer='', any script='', any subject='', any notify='true')
    any commentUnsubscribe([string contentID], [string email], [string siteID])
    any copy([string siteID], [string contentID], [string parentID], boolean recurse='false', boolean appendTitle='true', boolean setNotOnDisplay='false')
    any delete([struct data])
         Deletes a version from version history.
    any deleteall([struct data])
         Deletes everything.
    any deleteAllWithNestedContent([struct data])
    any deleteComment([string commentID])
    any deletehistall([struct data])
         Clears an item's version history.
    boolean doesLoadKeyExist([any contentBean], [any field], [any fieldValue])
    any exportHtmlSite(string siteid='default', [any exportDir=''])
    any findMany([any contentids], [any siteid])
    any formatRegionObjectsString([any rs])
    any getActiveByRemoteID(string remoteID, string siteID, boolean use404='false', any contentBean='', any type='')
    any getActiveByTitle(string title, string siteID, boolean use404='false', any contentBean='', any type='')
    any getActiveByURLTitle(string URLTitle, string siteID, boolean use404='false', any contentBean='', any type='')
    any getActiveContent(string contentID, string siteID, boolean use404='false', any contentBean='', any sourceIterator='')
    any getActiveContentByFilename(string filename, string siteID, boolean use404='false', any contentBean='', any type='')
    any getApprovalsIterator([string siteid])
    any getApprovalsQuery([string siteid])
    any getArchiveHist([string contentid], [string siteid])
    any getBean([any beanName='content'])
    any getCategoriesByHistID(string contentHistID)
    any getCategoriesByParentID(string siteid, string parentid, [string categoryid=''], [string categorytreeid=''])
    any getCategorySummary(string siteID, string parentid, [string categoryid=''], [string categorypathid=''])
    any getCategorySummaryIterator()
    any getCategorySummaryQuery(string siteID, string parentid, [string categoryid=''], [string categorypathid=''])
    any getCommentBean()
    any getCommentCount(String contentID='', string siteID='')
    any getComponents([string moduleid], [string siteid])
    any getComponentType([string siteid], [string type])
    any getContentVersion(string contentHistID, string siteID, boolean use404='false', any contentbean='', any sourceIterator='')
    array getCrumbList([string contentid], [string siteid], boolean setInheritance='false', any path='', any sort='asc', any usecache='true')
    any getDownloadselect([string contentid], [string siteid])
    any getDraftHist([string contentid], [string siteid])
    any getDraftList([string siteid])
    struct getDraftPromptData(string contentid, string siteid)
    any getExpiringContent(string siteid, string userid)
    any getExtendableList()
    any getHasDrafts([string contentid], [string siteid])
    any getHist([string contentid], [string siteid])
    any getImageURL(any bean, any size='undefined', [any direct='true'], [any complete='false'], [any height=''], [any width=''], [any default=''], [any secure='false'], [any useProtocol='true'])
    any getItemCount([string contentid], [string siteid])
    any getIterator()
    any getKidsCount(string parentid, string siteid, any liveOnly='true', any menutype='default')
    any getKidsIterator(string moduleid='00000000000000000000000000000000000', [string siteid], [string parentid], [string type='default'], [date today='[runtime expression]'], [numeric size='100'], [string keywords=''], [numeric hasFeatures='0'], [string sortBy='orderno'], [string sortDirection='asc'], string categoryID='', string relatedID='', string tag='', boolean aggregation='false', boolean applyPermFilter='false', string taggroup='')
    any getKidsQuery(string moduleid='00000000000000000000000000000000000', [string siteid], [string parentid], [string type='default'], [date today='[runtime expression]'], [numeric size='100'], [string keywords=''], [numeric hasFeatures='0'], [string sortBy='orderno'], [string sortDirection='asc'], string categoryID='', string relatedID='', string tag='', boolean aggregation='false', boolean applyPermFilter='false', string taggroup='')
    any getList([struct args])
    any getMyApprovalsCount([any siteid])
    any getMyDraftsCount([any siteid], [any startdate])
    any getMyExpiresCount(string siteid)
    any getMyLockedContentCount(string siteid)
    any getMySubmissionsCount([any siteid])
    any getNest([string parentid], [string siteid], string sortBy='orderno', string sortDirection='asc')
    any getPageCount([string siteid])
    any getPendingChangesets([string contentid], [string siteid])
    any getPrivateSearch([string siteid], [string keywords], any tag='', any sectionID='', string searchType='default')
    any getPrivateSearchIterator([string siteid], [string keywords], any tag='', any sectionID='', string searchType='default')
    any getPublicSearch([string siteid], [string keywords], any tag='', any sectionID='', any categoryID='')
    any getPublicSearchIterator([string siteid], [string keywords], any tag='', any sectionID='', any categoryID='')
    any getRecentCommentsIterator(string siteID='', numeric size='5', boolean approvedOnly='true')
    any getRecentCommentsQuery(string siteID='', numeric size='5', boolean approvedOnly='true')
    any getRegionObjects([string contenthistid], [string siteid], [string regionID])
    any getRelatedContent([string siteID], [string contentHistID], boolean liveOnly='true', date today='[runtime expression]', [string sortBy='orderno'], [string sortDirection='asc'], [string relatedContentSetID=''], [string name=''], [boolean reverse='false'], [string reverseContentID], boolean navOnly='false')
    any getRelatedContentIterator([string siteID], [string contentHistID], boolean liveOnly='true', date today='[runtime expression]', [string sortBy='orderno'], [string sortDirection='asc'], [string relatedContentSetID=''], [string name=''], [boolean reverse='false'], [string reverseContentID], boolean navOnly='false')
    any getReportData([struct data], [any contentBean])
    any getSections([string siteid], string type='')
    any getStatsBean()
    any getSubmissionsIterator([string siteid])
    any getSubmissionsQuery([string siteid])
    any getSystemObjects([string siteid])
    any getTabList()
    any getTreeLevelList()
    any getURL(any bean, any querystring='', boolean complete='false', string showMeta='0', [any secure='false'])
    any markCommentAsSpam([string commentID])
    any multiFileUpload([struct data])
    any purgeContentCache([any contentID], [any siteID], [any contentBean], [any broadcast='true'])
    any purgeContentCacheKey([any cache], [any key], [any purgeTypes='true'])
    any purgeContentDescendentsCache([any contentID], [any siteID], [any contentBean], [any broadcast='true'])
    any read(any contentID='', any contentHistID='', [any filename], any remoteID='', any title='', any urltitle='', any siteID='', any use404='false', any contentBean='', any type='', any sourceIterator='')
         Takes (contentid | contenthistid | filename | remoteid | title), siteid, use404.
    any readComments(String contentID='', string siteID='', boolean isEditor='false', string sortOrder='asc', String parentID='', boolean filterByParentID='true', boolean includeSpam='false', boolean includeDeleted='false', boolean includeKids='false')
    any readContentObject([any contenthistID], [any regionID], [any orderno])
    any save([any data])
    any saveComment([struct data], [any contentRenderer=''], any script='', any subject='', any notify='true')
    any saveCopyInfo([string siteID], [string contentID], [string moduleID], [string copyAll])
    any sendReminders(any theTime='[runtime expression]')
    any setCommentStat([string contentID], [string siteID])
    any setMaterializedPath([any contentBean])
    any setReminder([string contentid], [string siteid], [string email], [string displayStart], [numeric remindInterval])
    any setRequestRegionObjects([string contenthistid], [string siteid])
    any trimArchiveHistory([any contentID], [any siteID], [any limit='[runtime expression]'])
    any unapproveComment([string commentID])
    any undeleteComment([string commentID])
    any unmarkCommentAsSpam([string commentID])
    any updateContentObjectParams([any contenthistID], [any regionID], [any orderno], [any params])
    any updateMaterializedPath([any newPath], [any currentPath], [any siteID])
    any validate()
     
    Methods inherited from class mura.cfobject
    commitTracePoint, convertTimezone, deleteMethod, get, getAsJSON, getAsStruct, getConfigBean, getCurrentUser, getEventManager, getFeed, getHTTPAttrs, getHTTPService, getJavaTimezone, getPlugin, getPluginManager, getQueryAttrs, getQueryService, getServiceFactory, getSession, getValue, hasCustomDatasource, initTracePoint, inject, injectMethod, invokeMethod, mixin, parseDateArg, removeValue, set, setValue, valueExists
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init(any configBean, any contentGateway, any contentDAO, any contentUtility, any reminderManager, any settingsManager, any utility, any categoryManager, any fileManager, any pluginManager, any trashManager, any changesetManager, any clusterManager)

    Parameters:
    configBean
    contentGateway
    contentDAO
    contentUtility
    reminderManager
    settingsManager
    utility
    categoryManager
    fileManager
    pluginManager
    trashManager
    changesetManager
    clusterManager

    Method Detail

    add

    public any add([any data])

    Parameters:
    data

    approveComment

    public any approveComment([string commentID], any contentRenderer='', any script='', any subject='', any notify='true')

    Parameters:
    commentID
    contentRenderer - deprecated
    script
    subject
    notify

    commentUnsubscribe

    public any commentUnsubscribe([string contentID], [string email], [string siteID])

    Parameters:
    contentID
    email
    siteID

    copy

    public any copy([string siteID], [string contentID], [string parentID], boolean recurse='false', boolean appendTitle='true', boolean setNotOnDisplay='false')

    Parameters:
    siteID
    contentID
    parentID
    recurse
    appendTitle
    setNotOnDisplay

    delete

    public any delete([struct data])

    Deletes a version from version history

    Parameters:
    data

    deleteall

    public any deleteall([struct data])

    Deletes everything

    Parameters:
    data

    deleteAllWithNestedContent

    public any deleteAllWithNestedContent([struct data])

    Parameters:
    data

    deleteComment

    public any deleteComment([string commentID])

    Parameters:
    commentID

    deletehistall

    public any deletehistall([struct data])

    Clears an item's version history

    Parameters:
    data

    doesLoadKeyExist

    public boolean doesLoadKeyExist([any contentBean], [any field], [any fieldValue])

    Parameters:
    contentBean
    field
    fieldValue

    exportHtmlSite

    public any exportHtmlSite(string siteid='default', [any exportDir=''])

    Parameters:
    siteid
    exportDir

    findMany

    public any findMany([any contentids], [any siteid])

    Parameters:
    contentids
    siteid

    formatRegionObjectsString

    public any formatRegionObjectsString([any rs])

    Parameters:
    rs

    getActiveByRemoteID

    public any getActiveByRemoteID(string remoteID, string siteID, boolean use404='false', any contentBean='', any type='')

    Parameters:
    remoteID
    siteID
    use404
    contentBean
    type

    getActiveByTitle

    public any getActiveByTitle(string title, string siteID, boolean use404='false', any contentBean='', any type='')

    Parameters:
    title
    siteID
    use404
    contentBean
    type

    getActiveByURLTitle

    public any getActiveByURLTitle(string URLTitle, string siteID, boolean use404='false', any contentBean='', any type='')

    Parameters:
    URLTitle
    siteID
    use404
    contentBean
    type

    getActiveContent

    public any getActiveContent(string contentID, string siteID, boolean use404='false', any contentBean='', any sourceIterator='')

    Parameters:
    contentID
    siteID
    use404
    contentBean
    sourceIterator

    getActiveContentByFilename

    public any getActiveContentByFilename(string filename, string siteID, boolean use404='false', any contentBean='', any type='')

    Parameters:
    filename
    siteID
    use404
    contentBean
    type

    getApprovalsIterator

    public any getApprovalsIterator([string siteid])

    Parameters:
    siteid

    getApprovalsQuery

    public any getApprovalsQuery([string siteid])

    Parameters:
    siteid

    getArchiveHist

    public any getArchiveHist([string contentid], [string siteid])

    Parameters:
    contentid
    siteid

    getBean

    public any getBean([any beanName='content'])

    Overrides:
    getBean in class cfobject
    Parameters:
    beanName

    getCategoriesByHistID

    public any getCategoriesByHistID(string contentHistID)

    Parameters:
    contentHistID

    getCategoriesByParentID

    public any getCategoriesByParentID(string siteid, string parentid, [string categoryid=''], [string categorytreeid=''])

    Parameters:
    siteid
    parentid
    categoryid
    categorytreeid

    getCategorySummary

    public any getCategorySummary(string siteID, string parentid, [string categoryid=''], [string categorypathid=''])

    Parameters:
    siteID
    parentid
    categoryid
    categorypathid

    getCategorySummaryIterator

    public any getCategorySummaryIterator()


    getCategorySummaryQuery

    public any getCategorySummaryQuery(string siteID, string parentid, [string categoryid=''], [string categorypathid=''])

    Parameters:
    siteID
    parentid
    categoryid
    categorypathid

    getCommentBean

    public any getCommentBean()


    getCommentCount

    public any getCommentCount(String contentID='', string siteID='')

    Parameters:
    contentID
    siteID

    getComponents

    public any getComponents([string moduleid], [string siteid])

    Parameters:
    moduleid
    siteid

    getComponentType

    public any getComponentType([string siteid], [string type])

    Parameters:
    siteid
    type

    getContentVersion

    public any getContentVersion(string contentHistID, string siteID, boolean use404='false', any contentbean='', any sourceIterator='')

    Parameters:
    contentHistID
    siteID
    use404
    contentbean
    sourceIterator

    getCrumbList

    public array getCrumbList([string contentid], [string siteid], boolean setInheritance='false', any path='', any sort='asc', any usecache='true')

    Parameters:
    contentid
    siteid
    setInheritance
    path
    sort
    usecache

    getDownloadselect

    public any getDownloadselect([string contentid], [string siteid])

    Parameters:
    contentid
    siteid

    getDraftHist

    public any getDraftHist([string contentid], [string siteid])

    Parameters:
    contentid
    siteid

    getDraftList

    public any getDraftList([string siteid])

    Parameters:
    siteid

    getDraftPromptData

    public struct getDraftPromptData(string contentid, string siteid)

    Parameters:
    contentid
    siteid

    getExpiringContent

    public any getExpiringContent(string siteid, string userid)

    Parameters:
    siteid
    userid

    getExtendableList

    public any getExtendableList()


    getHasDrafts

    public any getHasDrafts([string contentid], [string siteid])

    Parameters:
    contentid
    siteid

    getHist

    public any getHist([string contentid], [string siteid])

    Parameters:
    contentid
    siteid

    getImageURL

    public any getImageURL(any bean, any size='undefined', [any direct='true'], [any complete='false'], [any height=''], [any width=''], [any default=''], [any secure='false'], [any useProtocol='true'])

    Parameters:
    bean
    size
    direct
    complete
    height
    width
    default
    secure
    useProtocol

    getItemCount

    public any getItemCount([string contentid], [string siteid])

    Parameters:
    contentid
    siteid

    getIterator

    public any getIterator()


    getKidsCount

    public any getKidsCount(string parentid, string siteid, any liveOnly='true', any menutype='default')

    Parameters:
    parentid
    siteid
    liveOnly
    menutype

    getKidsIterator

    public any getKidsIterator(string moduleid='00000000000000000000000000000000000', [string siteid], [string parentid], [string type='default'], [date today='[runtime expression]'], [numeric size='100'], [string keywords=''], [numeric hasFeatures='0'], [string sortBy='orderno'], [string sortDirection='asc'], string categoryID='', string relatedID='', string tag='', boolean aggregation='false', boolean applyPermFilter='false', string taggroup='')

    Parameters:
    moduleid
    siteid
    parentid
    type
    today
    size
    keywords
    hasFeatures
    sortBy
    sortDirection
    categoryID
    relatedID
    tag
    aggregation
    applyPermFilter
    taggroup

    getKidsQuery

    public any getKidsQuery(string moduleid='00000000000000000000000000000000000', [string siteid], [string parentid], [string type='default'], [date today='[runtime expression]'], [numeric size='100'], [string keywords=''], [numeric hasFeatures='0'], [string sortBy='orderno'], [string sortDirection='asc'], string categoryID='', string relatedID='', string tag='', boolean aggregation='false', boolean applyPermFilter='false', string taggroup='')

    Parameters:
    moduleid
    siteid
    parentid
    type
    today
    size
    keywords
    hasFeatures
    sortBy
    sortDirection
    categoryID
    relatedID
    tag
    aggregation
    applyPermFilter
    taggroup

    getList

    public any getList([struct args])

    Parameters:
    args

    getMyApprovalsCount

    public any getMyApprovalsCount([any siteid])

    Parameters:
    siteid

    getMyDraftsCount

    public any getMyDraftsCount([any siteid], [any startdate])

    Parameters:
    siteid
    startdate

    getMyExpiresCount

    public any getMyExpiresCount(string siteid)

    Parameters:
    siteid

    getMyLockedContentCount

    public any getMyLockedContentCount(string siteid)

    Parameters:
    siteid

    getMySubmissionsCount

    public any getMySubmissionsCount([any siteid])

    Parameters:
    siteid

    getNest

    public any getNest([string parentid], [string siteid], string sortBy='orderno', string sortDirection='asc')

    Parameters:
    parentid
    siteid
    sortBy
    sortDirection

    getPageCount

    public any getPageCount([string siteid])

    Parameters:
    siteid

    getPendingChangesets

    public any getPendingChangesets([string contentid], [string siteid])

    Parameters:
    contentid
    siteid

    getPrivateSearch

    public any getPrivateSearch([string siteid], [string keywords], any tag='', any sectionID='', string searchType='default')

    Parameters:
    siteid
    keywords
    tag
    sectionID
    searchType - Can be default or image

    getPrivateSearchIterator

    public any getPrivateSearchIterator([string siteid], [string keywords], any tag='', any sectionID='', string searchType='default')

    Parameters:
    siteid
    keywords
    tag
    sectionID
    searchType - Can be default or image

    getPublicSearch

    public any getPublicSearch([string siteid], [string keywords], any tag='', any sectionID='', any categoryID='')

    Parameters:
    siteid
    keywords
    tag
    sectionID
    categoryID

    getPublicSearchIterator

    public any getPublicSearchIterator([string siteid], [string keywords], any tag='', any sectionID='', any categoryID='')

    Parameters:
    siteid
    keywords
    tag
    sectionID
    categoryID

    getRecentCommentsIterator

    public any getRecentCommentsIterator(string siteID='', numeric size='5', boolean approvedOnly='true')

    Parameters:
    siteID
    size
    approvedOnly

    getRecentCommentsQuery

    public any getRecentCommentsQuery(string siteID='', numeric size='5', boolean approvedOnly='true')

    Parameters:
    siteID
    size
    approvedOnly

    getRegionObjects

    public any getRegionObjects([string contenthistid], [string siteid], [string regionID])

    Parameters:
    contenthistid
    siteid
    regionID

    getRelatedContent

    public any getRelatedContent([string siteID], [string contentHistID], boolean liveOnly='true', date today='[runtime expression]', [string sortBy='orderno'], [string sortDirection='asc'], [string relatedContentSetID=''], [string name=''], [boolean reverse='false'], [string reverseContentID], boolean navOnly='false')

    Parameters:
    siteID
    contentHistID
    liveOnly
    today
    sortBy
    sortDirection
    relatedContentSetID
    name
    reverse
    reverseContentID
    navOnly

    getRelatedContentIterator

    public any getRelatedContentIterator([string siteID], [string contentHistID], boolean liveOnly='true', date today='[runtime expression]', [string sortBy='orderno'], [string sortDirection='asc'], [string relatedContentSetID=''], [string name=''], [boolean reverse='false'], [string reverseContentID], boolean navOnly='false')

    Parameters:
    siteID
    contentHistID
    liveOnly
    today
    sortBy
    sortDirection
    relatedContentSetID
    name
    reverse
    reverseContentID
    navOnly

    getReportData

    public any getReportData([struct data], [any contentBean])

    Parameters:
    data
    contentBean

    getSections

    public any getSections([string siteid], string type='')

    Parameters:
    siteid
    type

    getStatsBean

    public any getStatsBean()


    getSubmissionsIterator

    public any getSubmissionsIterator([string siteid])

    Parameters:
    siteid

    getSubmissionsQuery

    public any getSubmissionsQuery([string siteid])

    Parameters:
    siteid

    getSystemObjects

    public any getSystemObjects([string siteid])

    Parameters:
    siteid

    getTabList

    public any getTabList()


    getTreeLevelList

    public any getTreeLevelList()


    getURL

    public any getURL(any bean, any querystring='', boolean complete='false', string showMeta='0', [any secure='false'])

    Parameters:
    bean
    querystring
    complete
    showMeta
    secure

    markCommentAsSpam

    public any markCommentAsSpam([string commentID])

    Parameters:
    commentID

    multiFileUpload

    public any multiFileUpload([struct data])

    Parameters:
    data

    purgeContentCache

    public any purgeContentCache([any contentID], [any siteID], [any contentBean], [any broadcast='true'])

    Parameters:
    contentID
    siteID
    contentBean
    broadcast

    purgeContentCacheKey

    public any purgeContentCacheKey([any cache], [any key], [any purgeTypes='true'])

    Parameters:
    cache
    key
    purgeTypes

    purgeContentDescendentsCache

    public any purgeContentDescendentsCache([any contentID], [any siteID], [any contentBean], [any broadcast='true'])

    Parameters:
    contentID
    siteID
    contentBean
    broadcast

    read

    public any read(any contentID='', any contentHistID='', [any filename], any remoteID='', any title='', any urltitle='', any siteID='', any use404='false', any contentBean='', any type='', any sourceIterator='')

    Takes (contentid | contenthistid | filename | remoteid | title), siteid, use404

    Parameters:
    contentID
    contentHistID
    filename
    remoteID
    title
    urltitle
    siteID
    use404
    contentBean
    type
    sourceIterator

    readComments

    public any readComments(String contentID='', string siteID='', boolean isEditor='false', string sortOrder='asc', String parentID='', boolean filterByParentID='true', boolean includeSpam='false', boolean includeDeleted='false', boolean includeKids='false')

    Parameters:
    contentID
    siteID
    isEditor
    sortOrder
    parentID
    filterByParentID
    includeSpam
    includeDeleted
    includeKids

    readContentObject

    public any readContentObject([any contenthistID], [any regionID], [any orderno])

    Parameters:
    contenthistID
    regionID
    orderno

    save

    public any save([any data])

    Parameters:
    data

    saveComment

    public any saveComment([struct data], [any contentRenderer=''], any script='', any subject='', any notify='true')

    Parameters:
    data
    contentRenderer - deprecated
    script
    subject
    notify

    saveCopyInfo

    public any saveCopyInfo([string siteID], [string contentID], [string moduleID], [string copyAll])

    Parameters:
    siteID
    contentID
    moduleID
    copyAll

    sendReminders

    public any sendReminders(any theTime='[runtime expression]')

    Parameters:
    theTime

    setCommentStat

    public any setCommentStat([string contentID], [string siteID])

    Parameters:
    contentID
    siteID

    setMaterializedPath

    public any setMaterializedPath([any contentBean])

    Parameters:
    contentBean

    setReminder

    public any setReminder([string contentid], [string siteid], [string email], [string displayStart], [numeric remindInterval])

    Parameters:
    contentid
    siteid
    email
    displayStart
    remindInterval

    setRequestRegionObjects

    public any setRequestRegionObjects([string contenthistid], [string siteid])

    Parameters:
    contenthistid
    siteid

    trimArchiveHistory

    public any trimArchiveHistory([any contentID], [any siteID], [any limit='[runtime expression]'])

    Parameters:
    contentID
    siteID
    limit

    unapproveComment

    public any unapproveComment([string commentID])

    Parameters:
    commentID

    undeleteComment

    public any undeleteComment([string commentID])

    Parameters:
    commentID

    unmarkCommentAsSpam

    public any unmarkCommentAsSpam([string commentID])

    Parameters:
    commentID

    updateContentObjectParams

    public any updateContentObjectParams([any contenthistID], [any regionID], [any orderno], [any params])

    Parameters:
    contenthistID
    regionID
    orderno
    params

    updateMaterializedPath

    public any updateMaterializedPath([any newPath], [any currentPath], [any siteID])

    Parameters:
    newPath
    currentPath
    siteID

    validate

    public any validate()