Class ImporterComponent

  • All Implemented Interfaces:
    ImporterService

    public class ImporterComponent
    extends java.lang.Object
    implements ImporterService
    Default implementation of the Importer Service
    Author:
    David Caruana
    • Field Detail

      • dbNodeService

        protected org.alfresco.service.cmr.repository.NodeService dbNodeService
        The db node service, used when updating the version store.
    • Constructor Detail

      • ImporterComponent

        public ImporterComponent()
    • Method Detail

      • setViewParser

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

        public void setNodeService​(org.alfresco.service.cmr.repository.NodeService nodeService)
        Parameters:
        nodeService - the node service
      • setSearchService

        public void setSearchService​(org.alfresco.service.cmr.search.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​(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
        Parameters:
        dictionaryService - the dictionary service
      • setNamespaceService

        public void setNamespaceService​(org.alfresco.service.namespace.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​(org.alfresco.service.cmr.security.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​(org.alfresco.service.cmr.repository.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​(java.io.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)
      • parserImport

        public void parserImport​(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                                 Location location,
                                 java.io.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 org.xml.sax.ContentHandler handlerImport​(org.alfresco.service.cmr.repository.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