contentbox.model.media

Class MediaService

railo-context.Component
        extended by contentbox.model.media.MediaService
Class Attributes:
  • singleton
  •  
  • synchronized : false
  •  
  • accessors : true
  •  
  • persistent : false
  •  

    ContentBox - A Modular Content Platform Copyright 2012 by Luis Majano and Ortus Solutions, Corp 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. Manage's the system's media files

    Property Summary
    type property default serializable required
    any log


    • inject = logbox:logger:{this}
    true false
    any moduleSettings


    • inject = coldbox:modulesettings:contentbox-ui
    true false
    any providers


    true false
    any settingService


    • inject = settingservice@cb
    true false
    Constructor Summary
    init(any wirebox)
          Constructor.
    Method Summary
    any getCoreMediaRoot(boolean absolute='false')
         Get the path to the core media root.
    any getDefaultProvider()
         Get the default system media provider object.
    any getDefaultProviderName()
         Get the default system media provider name.
    string getLog()
    string getModuleSettings()
    any getProvider(any name)
         Get a named provider object.
    string getProviders()
    array getRegisteredProviders()
         Get an array of registered providers in alphabetical order.
    array getRegisteredProvidersMap()
         Get an array of registered provider names in alphabetical order with their display names.
    string getSettingService()
    MediaService registerProvider(IMediaProvider provider)
         Register a new media provider in ContentBox.
    any setLog(any log)
    any setModuleSettings(any moduleSettings)
    any setProviders(any providers)
    any setSettingService(any settingService)
    MediaService unRegisterProvider(any name)
         UnRegister a provider in ContentBox.
     
    Methods inherited from class railo-context.Component
    None

    Constructor Detail

    init

    public init(any wirebox)

    Constructor

    Parameters:
    wirebox

    Property Detail

    log

    property any log

    Attributes:
    required - false
    inject - logbox:logger:{this}
    serializable - true

    moduleSettings

    property any moduleSettings

    Attributes:
    required - false
    inject - coldbox:modulesettings:contentbox-ui
    serializable - true

    providers

    property any providers

    Attributes:
    required - false
    serializable - true

    settingService

    property any settingService

    Attributes:
    required - false
    inject - settingservice@cb
    serializable - true

    Method Detail

    getCoreMediaRoot

    public any getCoreMediaRoot(boolean absolute='false')

    Get the path to the core media root

    Parameters:
    absolute

    getDefaultProvider

    public any getDefaultProvider()

    Get the default system media provider object


    getDefaultProviderName

    public any getDefaultProviderName()

    Get the default system media provider name


    getLog

    public string getLog()


    getModuleSettings

    public string getModuleSettings()


    getProvider

    public any getProvider(any name)

    Get a named provider object

    Parameters:
    name

    getProviders

    public string getProviders()


    getRegisteredProviders

    public array getRegisteredProviders()

    Get an array of registered providers in alphabetical order


    getRegisteredProvidersMap

    public array getRegisteredProvidersMap()

    Get an array of registered provider names in alphabetical order with their display names


    getSettingService

    public string getSettingService()


    registerProvider

    public MediaService registerProvider(IMediaProvider provider)

    Register a new media provider in ContentBox

    Parameters:
    provider

    setLog

    public any setLog(any log)

    Parameters:
    log

    setModuleSettings

    public any setModuleSettings(any moduleSettings)

    Parameters:
    moduleSettings

    setProviders

    public any setProviders(any providers)

    Parameters:
    providers

    setSettingService

    public any setSettingService(any settingService)

    Parameters:
    settingService

    unRegisterProvider

    public MediaService unRegisterProvider(any name)

    UnRegister a provider in ContentBox

    Parameters:
    name