Class ImporterComponent

java.lang.Object
org.alfresco.repo.importer.ImporterComponent
All Implemented Interfaces:
ImporterService

public class ImporterComponent extends Object implements ImporterService
Default implementation of the Importer Service
Author:
David Caruana
  • Field Details

    • dbNodeService

      protected NodeService dbNodeService
      The db node service, used when updating the version store.
  • Constructor Details

    • ImporterComponent

      public ImporterComponent()
  • Method Details

    • setViewParser

      public void setViewParser(Parser viewParser)
      Parameters:
      viewParser - the default parser
    • setNodeService

      public void setNodeService(NodeService nodeService)
      Parameters:
      nodeService - the node service
    • setSearchService

      public void setSearchService(SearchService searchService)
      Parameters:
      searchService - the service to perform path searches
    • setContentService

      public void setContentService(ContentService contentService)
      Parameters:
      contentService - the content service
    • setDictionaryService

      public void setDictionaryService(DictionaryService dictionaryService)
      Parameters:
      dictionaryService - the dictionary service
    • setNamespaceService

      public void setNamespaceService(NamespaceService namespaceService)
      Parameters:
      namespaceService - the namespace service
    • setBehaviourFilter

      public void setBehaviourFilter(BehaviourFilter behaviourFilter)
      Parameters:
      behaviourFilter - policy behaviour filter
    • setRuleService

      public void setRuleService(RuleService ruleService)
      TODO: Remove this in favour of appropriate rule disabling
      Parameters:
      ruleService - rule service
    • setPermissionService

      public void setPermissionService(PermissionService permissionService)
      Parameters:
      permissionService - permissionService
    • setAuthorityService

      public void setAuthorityService(AuthorityService authorityService)
      Parameters:
      authorityService - authorityService
    • setOwnableService

      public void setOwnableService(OwnableService ownableService)
      Parameters:
      ownableService - ownableService
    • setVersionService

      public void setVersionService(VersionService versionService)
      Parameters:
      versionService - versionService
    • setDbNodeService

      public void setDbNodeService(NodeService nodeService)
      Sets the db node service, used when updating the versioning information
      Parameters:
      nodeService - the node service
    • setHiddenAspect

      public void setHiddenAspect(HiddenAspect hiddenAspect)
    • setContentUsageImpl

      public void setContentUsageImpl(ContentUsageImpl contentUsageImpl)
      When all behaviour is disabled it is necessary to use ContentUsageImpl directly to update user usage. An instance of this class (with ID importerComponentWithBehaviour) that does not disable behaviours is also defined in the system - in that case it should not reference the ContentUsageImpl collaborator.
      Parameters:
      contentUsageImpl - the contentUsageImpl to set
    • importView

      public void importView(Reader viewReader, Location location, ImporterBinding binding, ImporterProgress progress)
      Description copied from interface: ImporterService
      Import a Repository view into the specified location
      Specified by:
      importView in interface ImporterService
      Parameters:
      viewReader - input stream containing the xml view to parse
      location - the location to import under
      binding - property values used for binding property place holders in import stream
      progress - progress monitor (optional)
    • importView

      public void importView(ImportPackageHandler importHandler, Location location, ImporterBinding binding, ImporterProgress progress) throws ImporterException
      Description copied from interface: ImporterService
      Import a Repository view into the specified location This import allows for a custom content importer.
      Specified by:
      importView in interface ImporterService
      Parameters:
      importHandler - custom content importer
      location - the location to import under
      binding - property values used for binding property place holders in import stream
      progress - progress monitor (optional)
      Throws:
      ImporterException
    • parserImport

      public void parserImport(NodeRef nodeRef, Location location, Reader viewReader, ImportPackageHandler streamHandler, ImporterBinding binding, ImporterProgress progress)
      Perform Import via Parser
      Parameters:
      nodeRef - node reference to import under
      location - the location to import under
      viewReader - the view Reader
      streamHandler - the content property import stream handler
      binding - import configuration
      progress - import progress
    • handlerImport

      public ContentHandler handlerImport(NodeRef nodeRef, Location location, ImportContentHandler handler, ImporterBinding binding, ImporterProgress progress)
      Perform import via Content Handler
      Parameters:
      nodeRef - node reference to import under
      location - the location to import under
      handler - the import content handler
      binding - import configuration
      progress - import progress
      Returns:
      content handler to interact with