contentbox.model.importers

Class ContentBoxImporter

railo-context.Component
        extended by contentbox.model.importers.ContentBoxImporter
Class Attributes:
  • 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. Import a .cbox package into contentbox

    Property Summary
    type property default serializable required
    any authorService


    • inject = id:authorService@cb
    true false
    any categoryService


    • inject = id:categoryService@cb
    true false
    any ContentBoxPackagePath


    true false
    any contentStoreService


    • inject = id:contentStoreService@cb
    true false
    any entryService


    • inject = id:entryService@cb
    true false
    array fileNames


    true false
    any fileUtils


    • inject = coldbox:plugin:FileUtils
    true false
    any layoutService


    • inject = id:layoutService@cb
    true false
    any log


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


    • inject = id:menuService@cb
    true false
    any moduleService


    • inject = id:moduleService@cb
    true false
    any moduleSettings


    • inject = coldbox:setting:modules
    true false
    any pageService


    • inject = id:pageService@cb
    true false
    any permissionService


    • inject = id:permissionService@cb
    true false
    any roleService


    • inject = id:roleService@cb
    true false
    any securityRuleService


    • inject = id:securityRuleService@cb
    true false
    any securityService


    • inject = id:securityService@cb
    true false
    any settingService


    • inject = id:settingService@cb
    true false
    any templateService


    • inject = id:emailtemplateService@cb
    true false
    any widgetService


    • inject = id:widgetService@cb
    true false
    any zipUtil


    • inject = zipUtil@cb
    true false
    Constructor Summary
    init()
          Constructor.
    Method Summary
    string execute(boolean overrideContent='false')
         Main method for processing import.
    string getAuthorService()
    string getCategoryService()
    string getContentBoxPackagePath()
    string getContentStoreService()
    any getDescriptorContents(boolean asObject='false')
         Retrieves contents of descriptor file.
    string getEntryService()
    string getFileNames()
    string getFileUtils()
    string getLayoutService()
    string getLog()
    string getMenuService()
    string getModuleService()
    string getModuleSettings()
    string getPageService()
    string getPermissionService()
    string getRoleService()
    string getSecurityRuleService()
    string getSecurityService()
    string getSettingService()
    string getTemplateService()
    string getWidgetService()
    string getZipUtil()
    private boolean hasFile(string fileName)
         Determines if passed file name exists in zip collection.
    boolean isValid()
         Method which analyzes the uploaded package and determines whether or not the descriptor file documents what is being uploaded.
    any setAuthorService(any authorService)
    any setCategoryService(any categoryService)
    any setContentBoxPackagePath(any ContentBoxPackagePath)
    any setContentStoreService(any contentStoreService)
    any setEntryService(any entryService)
    any setFileNames(array fileNames)
    any setFileUtils(any fileUtils)
    any setLayoutService(any layoutService)
    any setLog(any log)
    any setMenuService(any menuService)
    any setModuleService(any moduleService)
    any setModuleSettings(any moduleSettings)
    any setPageService(any pageService)
    any setPermissionService(any permissionService)
    any setRoleService(any roleService)
    any setSecurityRuleService(any securityRuleService)
    any setSecurityService(any securityService)
    any setSettingService(any settingService)
    any setTemplateService(any templateService)
    void setup(any importFile)
         Setup method to configure service.
    any setWidgetService(any widgetService)
    any setZipUtil(any zipUtil)
     
    Methods inherited from class railo-context.Component
    None

    Constructor Detail

    init

    public init()

    Constructor


    Property Detail

    authorService

    property any authorService

    Attributes:
    required - false
    inject - id:authorService@cb
    serializable - true

    categoryService

    property any categoryService

    Attributes:
    required - false
    inject - id:categoryService@cb
    serializable - true

    ContentBoxPackagePath

    property any ContentBoxPackagePath

    Attributes:
    required - false
    serializable - true

    contentStoreService

    property any contentStoreService

    Attributes:
    required - false
    inject - id:contentStoreService@cb
    serializable - true

    entryService

    property any entryService

    Attributes:
    required - false
    inject - id:entryService@cb
    serializable - true

    fileNames

    property array fileNames

    Attributes:
    required - false
    serializable - true

    fileUtils

    property any fileUtils

    Attributes:
    required - false
    inject - coldbox:plugin:FileUtils
    serializable - true

    layoutService

    property any layoutService

    Attributes:
    required - false
    inject - id:layoutService@cb
    serializable - true

    log

    property any log

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

    menuService

    property any menuService

    Attributes:
    required - false
    inject - id:menuService@cb
    serializable - true

    moduleService

    property any moduleService

    Attributes:
    required - false
    inject - id:moduleService@cb
    serializable - true

    moduleSettings

    property any moduleSettings

    Attributes:
    required - false
    inject - coldbox:setting:modules
    serializable - true

    pageService

    property any pageService

    Attributes:
    required - false
    inject - id:pageService@cb
    serializable - true

    permissionService

    property any permissionService

    Attributes:
    required - false
    inject - id:permissionService@cb
    serializable - true

    roleService

    property any roleService

    Attributes:
    required - false
    inject - id:roleService@cb
    serializable - true

    securityRuleService

    property any securityRuleService

    Attributes:
    required - false
    inject - id:securityRuleService@cb
    serializable - true

    securityService

    property any securityService

    Attributes:
    required - false
    inject - id:securityService@cb
    serializable - true

    settingService

    property any settingService

    Attributes:
    required - false
    inject - id:settingService@cb
    serializable - true

    templateService

    property any templateService

    Attributes:
    required - false
    inject - id:emailtemplateService@cb
    serializable - true

    widgetService

    property any widgetService

    Attributes:
    required - false
    inject - id:widgetService@cb
    serializable - true

    zipUtil

    property any zipUtil

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

    Method Detail

    execute

    public string execute(boolean overrideContent='false')

    Main method for processing import

    Parameters:
    overrideContent - Whether or not to override existing content with uploaded data (default=false)

    getAuthorService

    public string getAuthorService()


    getCategoryService

    public string getCategoryService()


    getContentBoxPackagePath

    public string getContentBoxPackagePath()


    getContentStoreService

    public string getContentStoreService()


    getDescriptorContents

    public any getDescriptorContents(boolean asObject='false')

    Retrieves contents of descriptor file

    Parameters:
    asObject

    getEntryService

    public string getEntryService()


    getFileNames

    public string getFileNames()


    getFileUtils

    public string getFileUtils()


    getLayoutService

    public string getLayoutService()


    getLog

    public string getLog()


    getMenuService

    public string getMenuService()


    getModuleService

    public string getModuleService()


    getModuleSettings

    public string getModuleSettings()


    getPageService

    public string getPageService()


    getPermissionService

    public string getPermissionService()


    getRoleService

    public string getRoleService()


    getSecurityRuleService

    public string getSecurityRuleService()


    getSecurityService

    public string getSecurityService()


    getSettingService

    public string getSettingService()


    getTemplateService

    public string getTemplateService()


    getWidgetService

    public string getWidgetService()


    getZipUtil

    public string getZipUtil()


    hasFile

    private boolean hasFile(string fileName)

    Determines if passed file name exists in zip collection

    Parameters:
    fileName - The file name to validate

    isValid

    public boolean isValid()

    Method which analyzes the uploaded package and determines whether or not the descriptor file documents what is being uploaded


    setAuthorService

    public any setAuthorService(any authorService)

    Parameters:
    authorService

    setCategoryService

    public any setCategoryService(any categoryService)

    Parameters:
    categoryService

    setContentBoxPackagePath

    public any setContentBoxPackagePath(any ContentBoxPackagePath)

    Parameters:
    ContentBoxPackagePath

    setContentStoreService

    public any setContentStoreService(any contentStoreService)

    Parameters:
    contentStoreService

    setEntryService

    public any setEntryService(any entryService)

    Parameters:
    entryService

    setFileNames

    public any setFileNames(array fileNames)

    Parameters:
    fileNames

    setFileUtils

    public any setFileUtils(any fileUtils)

    Parameters:
    fileUtils

    setLayoutService

    public any setLayoutService(any layoutService)

    Parameters:
    layoutService

    setLog

    public any setLog(any log)

    Parameters:
    log

    setMenuService

    public any setMenuService(any menuService)

    Parameters:
    menuService

    setModuleService

    public any setModuleService(any moduleService)

    Parameters:
    moduleService

    setModuleSettings

    public any setModuleSettings(any moduleSettings)

    Parameters:
    moduleSettings

    setPageService

    public any setPageService(any pageService)

    Parameters:
    pageService

    setPermissionService

    public any setPermissionService(any permissionService)

    Parameters:
    permissionService

    setRoleService

    public any setRoleService(any roleService)

    Parameters:
    roleService

    setSecurityRuleService

    public any setSecurityRuleService(any securityRuleService)

    Parameters:
    securityRuleService

    setSecurityService

    public any setSecurityService(any securityService)

    Parameters:
    securityService

    setSettingService

    public any setSettingService(any settingService)

    Parameters:
    settingService

    setTemplateService

    public any setTemplateService(any templateService)

    Parameters:
    templateService

    setup

    public void setup(any importFile)

    Setup method to configure service

    Parameters:
    importFile - The uploaded .cbox package

    setWidgetService

    public any setWidgetService(any widgetService)

    Parameters:
    widgetService

    setZipUtil

    public any setZipUtil(any zipUtil)

    Parameters:
    zipUtil