mura.content

Class contentUtility

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

This provides content utility methods

Class Attributes:
  • output : false
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Constructor Summary
    init(any contentDAO, any configBean, any permUtility, any settingsManager, any fileManager, any contentRenderer)
    Method Summary
    string approximate([any str])
    any checkApprovalQue([any contentBean], [any parentBean])
    any copy([string siteid], [string contentID], [string parentID], boolean recurse='false', boolean appendTitle='true', [any path], boolean setNotOnDisplay='false')
    string deaccent([any str])
    any deleteFile([any contentBean])
    any deployPartialBundle([any bundleFile], [any serverBundlePath], [any siteID], [any parentID], [any importstatus='Active'], [any changesetname='[runtime expression]'], [any errors=''])
    boolean doesFileExist(string siteid, string filename, string contentid)
    boolean doesLoadKeyExist([any contentBean], [any field], [any fieldValue])
    any duplicateExternalCategories([any destinationSiteID], [any sourceSiteID], [any categoryID=''], [any parentID=''])
    any duplicateExternalContent([any contentID], [any destinationSiteID], [any sourceSiteID], [boolean includeChildren='false'], [boolean siteSynced='false'], [string feedIDList=''], [string contentIDList=''])
    any duplicateExternalFeed([any feedID], [any destinationSiteID], [any sourceSiteID])
    any duplicateExternalSortOrder([any destinationSiteID], [any sourceSiteID])
    any findAndReplace(string find='', string replace='', string siteID='')
    any formatFilename([any filename])
    any getExtendFileIDs([any contentExtendData], [any siteID])
    any getLayouts(string siteid, string type='collection/layouts')
    any getMailingLists(string siteid)
    any getNotify([array crumbData])
    any getRestrictGroups([string siteID])
    any getTemplates(string siteid, string type='')
    any isOnDisplay([numeric display], [string displaystart], [string displaystop], [string siteid], [string parentid], string parentType='Page')
    any move([string siteid], [string filename], [string oldfilename])
    any movelink([string siteid], [string filename], [string oldfilename])
    any removeUnicode([any str])
    any restorePartialBundle([any bundleFile], [any siteID=''], [any parentID=''], [any importstatus='Draft'], [any changesetname=''], [any errors='[runtime expression]'], [any keyMode='copy'])
    any sendNotices([struct data], [any contentBean])
    any setApprovalQue([any contentBean], [string email])
    any setCategoriesFromExternalAssignments([any sourceContentBean], [any newContentBean])
    any setMailer(any mailer)
    any setUniqueFilename([any contentBean])
    any setUniqueTitle([any contentBean])
    any setUniqueURLTitle([any contentBean])
    any setVersionNumbers([any contentBean], [any versionType='minor'])
    any updateGlobalCommentsMaterializedPath([any siteID], any parentID='', any path='', any datasource='[runtime expression]')
    any updateGlobalMaterializedPath([any siteID], any parentID='00000000000000000000000000000000END', any path='', any datasource='[runtime expression]')
    any updateRelatedContent([any contentID], [any destinationSiteID], [any sourceSiteID])
    string urlSafeFormat([any str], [any delim='-'])
     
    Methods inherited from class mura.cfobject
    commitTracePoint, convertTimezone, deleteMethod, get, getAsJSON, getAsStruct, getBean, 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 contentDAO, any configBean, any permUtility, any settingsManager, any fileManager, any contentRenderer)

    Parameters:
    contentDAO
    configBean
    permUtility
    settingsManager
    fileManager
    contentRenderer

    Method Detail

    approximate

    public string approximate([any str])

    Parameters:
    str

    checkApprovalQue

    public any checkApprovalQue([any contentBean], [any parentBean])

    Parameters:
    contentBean
    parentBean

    copy

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

    Parameters:
    siteid
    contentID
    parentID
    recurse
    appendTitle
    path
    setNotOnDisplay

    deaccent

    public string deaccent([any str])

    Parameters:
    str

    deleteFile

    public any deleteFile([any contentBean])

    Parameters:
    contentBean

    deployPartialBundle

    public any deployPartialBundle([any bundleFile], [any serverBundlePath], [any siteID], [any parentID], [any importstatus='Active'], [any changesetname='[runtime expression]'], [any errors=''])

    Parameters:
    bundleFile
    serverBundlePath
    siteID
    parentID
    importstatus
    changesetname
    errors

    doesFileExist

    public boolean doesFileExist(string siteid, string filename, string contentid)

    Parameters:
    siteid
    filename
    contentid

    doesLoadKeyExist

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

    Parameters:
    contentBean
    field
    fieldValue

    duplicateExternalCategories

    public any duplicateExternalCategories([any destinationSiteID], [any sourceSiteID], [any categoryID=''], [any parentID=''])

    Parameters:
    destinationSiteID
    sourceSiteID
    categoryID
    parentID

    duplicateExternalContent

    public any duplicateExternalContent([any contentID], [any destinationSiteID], [any sourceSiteID], [boolean includeChildren='false'], [boolean siteSynced='false'], [string feedIDList=''], [string contentIDList=''])

    Parameters:
    contentID
    destinationSiteID
    sourceSiteID
    includeChildren
    siteSynced
    feedIDList
    contentIDList

    duplicateExternalFeed

    public any duplicateExternalFeed([any feedID], [any destinationSiteID], [any sourceSiteID])

    Parameters:
    feedID
    destinationSiteID
    sourceSiteID

    duplicateExternalSortOrder

    public any duplicateExternalSortOrder([any destinationSiteID], [any sourceSiteID])

    Parameters:
    destinationSiteID
    sourceSiteID

    findAndReplace

    public any findAndReplace(string find='', string replace='', string siteID='')

    Parameters:
    find
    replace
    siteID

    formatFilename

    public any formatFilename([any filename])

    Parameters:
    filename

    getExtendFileIDs

    public any getExtendFileIDs([any contentExtendData], [any siteID])

    Parameters:
    contentExtendData
    siteID

    getLayouts

    public any getLayouts(string siteid, string type='collection/layouts')

    Parameters:
    siteid
    type

    getMailingLists

    public any getMailingLists(string siteid)

    Parameters:
    siteid

    getNotify

    public any getNotify([array crumbData])

    Parameters:
    crumbData

    getRestrictGroups

    public any getRestrictGroups([string siteID])

    Parameters:
    siteID

    getTemplates

    public any getTemplates(string siteid, string type='')

    Parameters:
    siteid
    type

    isOnDisplay

    public any isOnDisplay([numeric display], [string displaystart], [string displaystop], [string siteid], [string parentid], string parentType='Page')

    Parameters:
    display
    displaystart
    displaystop
    siteid
    parentid
    parentType

    move

    public any move([string siteid], [string filename], [string oldfilename])

    Parameters:
    siteid
    filename
    oldfilename

    movelink

    public any movelink([string siteid], [string filename], [string oldfilename])

    Parameters:
    siteid
    filename
    oldfilename

    removeUnicode

    public any removeUnicode([any str])

    Parameters:
    str

    restorePartialBundle

    public any restorePartialBundle([any bundleFile], [any siteID=''], [any parentID=''], [any importstatus='Draft'], [any changesetname=''], [any errors='[runtime expression]'], [any keyMode='copy'])

    Parameters:
    bundleFile
    siteID
    parentID
    importstatus
    changesetname
    errors
    keyMode

    sendNotices

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

    Parameters:
    data
    contentBean

    setApprovalQue

    public any setApprovalQue([any contentBean], [string email])

    Parameters:
    contentBean
    email

    setCategoriesFromExternalAssignments

    public any setCategoriesFromExternalAssignments([any sourceContentBean], [any newContentBean])

    Parameters:
    sourceContentBean
    newContentBean

    setMailer

    public any setMailer(any mailer)

    Parameters:
    mailer

    setUniqueFilename

    public any setUniqueFilename([any contentBean])

    Parameters:
    contentBean

    setUniqueTitle

    public any setUniqueTitle([any contentBean])

    Parameters:
    contentBean

    setUniqueURLTitle

    public any setUniqueURLTitle([any contentBean])

    Parameters:
    contentBean

    setVersionNumbers

    public any setVersionNumbers([any contentBean], [any versionType='minor'])

    Parameters:
    contentBean
    versionType

    updateGlobalCommentsMaterializedPath

    public any updateGlobalCommentsMaterializedPath([any siteID], any parentID='', any path='', any datasource='[runtime expression]')

    Parameters:
    siteID
    parentID
    path
    datasource

    updateGlobalMaterializedPath

    public any updateGlobalMaterializedPath([any siteID], any parentID='00000000000000000000000000000000END', any path='', any datasource='[runtime expression]')

    Parameters:
    siteID
    parentID
    path
    datasource

    updateRelatedContent

    public any updateRelatedContent([any contentID], [any destinationSiteID], [any sourceSiteID])

    Parameters:
    contentID
    destinationSiteID
    sourceSiteID

    urlSafeFormat

    public string urlSafeFormat([any str], [any delim='-'])

    Parameters:
    str
    delim