mura.plugin

Class pluginManager

lucee.Component
    extended by mura.cfobject
      extended by mura.plugin.pluginManager

This provides plugin service level logic functionality

Class Attributes:
  • output : false
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Constructor Summary
    init(any configBean, any settingsManager, any utility, any standardEventsHandler, any fileWriter)
    Method Summary
    any addEventHandler([any component], any siteID, any persist='true', any applyglobal='true')
    any adjustSiteID([any siteID])
    any announceEvent(any eventToAnnounce='', any currentEventObject='', any rsHandlers='', any moduleID='', any index='0')
    any createAppCFCIncludes()
    any createBundle([any id], [any directory])
         I bundle a plugin and return it's filename.
    any createLookupTXT()
    any deleteAssignedSites([any moduleID])
    any deleteDisplayObjects([any moduleID])
    any deletePlugin([any moduleID])
    any deleteScripts([any moduleID])
    any deleteSettings([any moduleID])
    any deploy(any moduleID='', any id='', any useDefaultSettings='false', [any siteID=''], any pluginFile='', any pluginDir='', any autoDeploy='true')
         This method is primarily used internally by Mura.
    any deployBundle([any siteID], [any bundleFile])
         I return a struct of any errors that occurred.
    any deployDirectory([any siteID], [any directory], any useDefaultSettings='true', any autoDeploy='true')
    any deployPlugin([any siteID], [any pluginFile], any useDefaultSettings='true', any autoDeploy='true')
    any discover()
    any discoverBeans()
    any displayObject([any object], any event='', any moduleID='', any params='')
    any executeScript([any runat], any siteID='', any event='', any index='1')
    any executeScripts([any runat], any siteID='', any event='', any scripts='', any moduleID='')
    any getAllPlugins(any orderby='name')
    any getAssignedSites([any moduleID])
    any getAttributeBean([any theXML], [any moduleID])
    any getCacheFactory(any siteid='')
    any getComponent([any componentPath], [any pluginID], [any siteID], any cache='true')
    any getConfig([any ID], any siteID='', any cache='true')
    any getDirectoryFromQuery([any rs])
    any getDisplayObjectBean()
    any getDisplayObjectsBySiteID(any siteID='', any modulesOnly='false', any moduleID='', any configuratorsOnly='false')
    any getEventHandlerFromPath([any component])
    any getEventMappings([any eventName], any siteID='')
    any getExecutor()
    any getHandlersQuery([any eventToHandle], any siteID='', any moduleID='')
    any getIDFromPath([any path])
    any getLocalFileFromURL([any pluginURL])
    any getLocation([any directory])
    any getPlugin([any ID], any siteID='', any cache='true')
    xml getPluginXML([any moduleID], [any pluginDir=''])
    any getScriptBean()
    any getScripts([any runat], any siteID='', any moduleID='')
    any getSiteListener([any siteID], [any runat])
    struct getSitePluginGroups([query rsplugins])
    any getSitePlugins([any siteID], any orderby='name', any applyPermFilter='false')
    any getStandardEventFactory(any siteid='')
    any getZipTrim([any pluginFile])
    any hasPlugin([any ID], any siteID='', any cache='true')
    any loadPlugins([any safeMode='false'])
    any purgeCacheFactories()
    any purgePluginConfigs()
    any purgeStandardEventFactories()
    any reDeploy([any siteID], [any ID])
    any renderAdminTemplate([any body], [any pageTitle], any jsLib='jquery', any jsLibLoaded='true', [any compactDisplay='false'], [any moduleid='[runtime expression]'])
    any renderAdminToolbar(any jsLib='prototype', any jsLibLoaded='false')
    any renderEvent(any eventToRender='', any currentEventObject='', any rsHandlers='', any moduleID='', any index='0')
    any renderScript([any runat], any siteID='', any event='', any index='1')
    any renderScripts([any runat], any siteID='', any event='', any scripts='', any moduleID='')
    any savePluginXML([any modID])
    any updateSettings([any args])
     
    Methods inherited from class mura.cfobject
    commitTracePoint, convertTimezone, deleteMethod, get, getAsJSON, getAsStruct, getBean, getConfigBean, getCurrentUser, getEventManager, getFeed, getHTTPAttrs, getHTTPService, getJavaTimezone, 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 settingsManager, any utility, any standardEventsHandler, any fileWriter)

    Parameters:
    configBean
    settingsManager
    utility
    standardEventsHandler
    fileWriter

    Method Detail

    addEventHandler

    public any addEventHandler([any component], any siteID, any persist='true', any applyglobal='true')

    Parameters:
    component
    siteID
    persist
    applyglobal

    adjustSiteID

    public any adjustSiteID([any siteID])

    Parameters:
    siteID

    announceEvent

    public any announceEvent(any eventToAnnounce='', any currentEventObject='', any rsHandlers='', any moduleID='', any index='0')

    Parameters:
    eventToAnnounce
    currentEventObject
    rsHandlers
    moduleID
    index

    createAppCFCIncludes

    public any createAppCFCIncludes()


    createBundle

    public any createBundle([any id], [any directory])

    I bundle a plugin and return it's filename

    Parameters:
    id - ModuleID or pluginID or Package
    directory - Server directory to save the bundle

    createLookupTXT

    public any createLookupTXT()


    deleteAssignedSites

    public any deleteAssignedSites([any moduleID])

    Parameters:
    moduleID

    deleteDisplayObjects

    public any deleteDisplayObjects([any moduleID])

    Parameters:
    moduleID

    deletePlugin

    public any deletePlugin([any moduleID])

    Parameters:
    moduleID

    deleteScripts

    public any deleteScripts([any moduleID])

    Parameters:
    moduleID

    deleteSettings

    public any deleteSettings([any moduleID])

    Parameters:
    moduleID

    deploy

    public any deploy(any moduleID='', any id='', any useDefaultSettings='false', [any siteID=''], any pluginFile='', any pluginDir='', any autoDeploy='true')

    This method is primarily used internally by Mura. See deployPlugin.

    Parameters:
    moduleID
    id - Either ModuleID, PluginID or Package. Can be used instead of moduleID argument.
    useDefaultSettings - Deploy default config.xml settings values, not applicable for bundles
    siteID - List of siteIDs to assign the plugin. Only applicable when useDefaultSettings is set to true.
    pluginFile
    pluginDir
    autoDeploy

    deployBundle

    public any deployBundle([any siteID], [any bundleFile])

    I return a struct of any errors that occurred.

    Parameters:
    siteID - List of siteIDs to assign the plugin
    bundleFile - Complete path to bundle zip file

    deployDirectory

    public any deployDirectory([any siteID], [any directory], any useDefaultSettings='true', any autoDeploy='true')

    Parameters:
    siteID - List of siteIDs to assign the plugin. If not defined will defiend to existing assignment.
    directory - Complete path to external plugin directory if external, otherwise the name og the directory in /plugins
    useDefaultSettings
    autoDeploy

    deployPlugin

    public any deployPlugin([any siteID], [any pluginFile], any useDefaultSettings='true', any autoDeploy='true')

    Parameters:
    siteID - List of siteIDs to assign the plugin
    pluginFile - Complete path to plugin zip file
    useDefaultSettings
    autoDeploy

    discover

    public any discover()


    discoverBeans

    public any discoverBeans()


    displayObject

    public any displayObject([any object], any event='', any moduleID='', any params='')

    Parameters:
    object
    event
    moduleID
    params

    executeScript

    public any executeScript([any runat], any siteID='', any event='', any index='1')

    Parameters:
    runat
    siteID
    event
    index

    executeScripts

    public any executeScripts([any runat], any siteID='', any event='', any scripts='', any moduleID='')

    Parameters:
    runat
    siteID
    event
    scripts
    moduleID

    getAllPlugins

    public any getAllPlugins(any orderby='name')

    Parameters:
    orderby

    getAssignedSites

    public any getAssignedSites([any moduleID])

    Parameters:
    moduleID

    getAttributeBean

    public any getAttributeBean([any theXML], [any moduleID])

    Parameters:
    theXML
    moduleID

    getCacheFactory

    public any getCacheFactory(any siteid='')

    Parameters:
    siteid

    getComponent

    public any getComponent([any componentPath], [any pluginID], [any siteID], any cache='true')

    Parameters:
    componentPath
    pluginID
    siteID
    cache

    getConfig

    public any getConfig([any ID], any siteID='', any cache='true')

    Parameters:
    ID
    siteID
    cache

    getDirectoryFromQuery

    public any getDirectoryFromQuery([any rs])

    Parameters:
    rs

    getDisplayObjectBean

    public any getDisplayObjectBean()


    getDisplayObjectsBySiteID

    public any getDisplayObjectsBySiteID(any siteID='', any modulesOnly='false', any moduleID='', any configuratorsOnly='false')

    Parameters:
    siteID
    modulesOnly
    moduleID
    configuratorsOnly

    getEventHandlerFromPath

    public any getEventHandlerFromPath([any component])

    Parameters:
    component

    getEventMappings

    public any getEventMappings([any eventName], any siteID='')

    Parameters:
    eventName
    siteID

    getExecutor

    public any getExecutor()


    getHandlersQuery

    public any getHandlersQuery([any eventToHandle], any siteID='', any moduleID='')

    Parameters:
    eventToHandle
    siteID
    moduleID

    getIDFromPath

    public any getIDFromPath([any path])

    Parameters:
    path

    getLocalFileFromURL

    public any getLocalFileFromURL([any pluginURL])

    Parameters:
    pluginURL

    getLocation

    public any getLocation([any directory])

    Parameters:
    directory

    getPlugin

    public any getPlugin([any ID], any siteID='', any cache='true')

    Overrides:
    getPlugin in class cfobject
    Parameters:
    ID
    siteID
    cache

    getPluginXML

    public xml getPluginXML([any moduleID], [any pluginDir=''])

    Parameters:
    moduleID
    pluginDir

    getScriptBean

    public any getScriptBean()


    getScripts

    public any getScripts([any runat], any siteID='', any moduleID='')

    Parameters:
    runat
    siteID
    moduleID

    getSiteListener

    public any getSiteListener([any siteID], [any runat])

    Parameters:
    siteID
    runat

    getSitePluginGroups

    public struct getSitePluginGroups([query rsplugins])

    Parameters:
    rsplugins

    getSitePlugins

    public any getSitePlugins([any siteID], any orderby='name', any applyPermFilter='false')

    Parameters:
    siteID
    orderby
    applyPermFilter

    getStandardEventFactory

    public any getStandardEventFactory(any siteid='')

    Parameters:
    siteid

    getZipTrim

    public any getZipTrim([any pluginFile])

    Parameters:
    pluginFile

    hasPlugin

    public any hasPlugin([any ID], any siteID='', any cache='true')

    Parameters:
    ID
    siteID
    cache

    loadPlugins

    public any loadPlugins([any safeMode='false'])

    Parameters:
    safeMode

    purgeCacheFactories

    public any purgeCacheFactories()


    purgePluginConfigs

    public any purgePluginConfigs()


    purgeStandardEventFactories

    public any purgeStandardEventFactories()


    reDeploy

    public any reDeploy([any siteID], [any ID])

    Parameters:
    siteID - List of siteIDs to assign the plugin. If not defined will defiend to existing assignment.
    ID - The moduleID, pluginID, package or name of plugin to redeploy

    renderAdminTemplate

    public any renderAdminTemplate([any body], [any pageTitle], any jsLib='jquery', any jsLibLoaded='true', [any compactDisplay='false'], [any moduleid='[runtime expression]'])

    Parameters:
    body
    pageTitle
    jsLib
    jsLibLoaded
    compactDisplay
    moduleid

    renderAdminToolbar

    public any renderAdminToolbar(any jsLib='prototype', any jsLibLoaded='false')

    Parameters:
    jsLib
    jsLibLoaded

    renderEvent

    public any renderEvent(any eventToRender='', any currentEventObject='', any rsHandlers='', any moduleID='', any index='0')

    Parameters:
    eventToRender
    currentEventObject
    rsHandlers
    moduleID
    index

    renderScript

    public any renderScript([any runat], any siteID='', any event='', any index='1')

    Parameters:
    runat
    siteID
    event
    index

    renderScripts

    public any renderScripts([any runat], any siteID='', any event='', any scripts='', any moduleID='')

    Parameters:
    runat
    siteID
    event
    scripts
    moduleID

    savePluginXML

    public any savePluginXML([any modID])

    Parameters:
    modID

    updateSettings

    public any updateSettings([any args])

    Parameters:
    args