Class ExporterComponent

  • All Implemented Interfaces:
    ExporterService

    public class ExporterComponent
    extends java.lang.Object
    implements ExporterService
    Default implementation of the Exporter Service.
    Author:
    David Caruana
    • Constructor Detail

      • ExporterComponent

        public ExporterComponent()
    • Method Detail

      • 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
      • setDescriptorService

        public void setDescriptorService​(DescriptorService descriptorService)
        Parameters:
        descriptorService - the descriptor service
      • setAuthenticationService

        public void setAuthenticationService​(AuthenticationService authenticationService)
        Parameters:
        authenticationService - the authentication service
      • setPermissionService

        public void setPermissionService​(org.alfresco.service.cmr.security.PermissionService permissionService)
        Parameters:
        permissionService - the permission service
      • setExportSecondaryNodes

        public void setExportSecondaryNodes​(boolean exportSecondaryNodes)
        Parameters:
        exportSecondaryNodes - whether children that do dot have a primary association with their parent are exported as nodes If false, these nodes will be exported as secondary links.
      • exportView

        public void exportView​(java.io.OutputStream viewWriter,
                               ExporterCrawlerParameters parameters,
                               Exporter progress)
        Description copied from interface: ExporterService
        Export a view of the Repository using the default xml view schema. All repository information is exported to the single output stream. This means that any content properties are base64 encoded.
        Specified by:
        exportView in interface ExporterService
        Parameters:
        viewWriter - the output stream to export to
        parameters - export parameters
        progress - exporter callback for tracking progress of export
      • exportView

        public void exportView​(ExportPackageHandler exportHandler,
                               ExporterCrawlerParameters parameters,
                               Exporter progress)
        Description copied from interface: ExporterService
        Export a view of the Repository using the default xml view schema. This export supports the custom handling of content properties.
        Specified by:
        exportView in interface ExporterService
        Parameters:
        exportHandler - the custom export handler for content properties
        parameters - export parameters
        progress - exporter callback for tracking progress of export
      • exportView

        public void exportView​(Exporter exporter,
                               ExporterCrawlerParameters parameters,
                               Exporter progress)
        Description copied from interface: ExporterService
        Export a view of the Repository using a custom crawler and exporter.
        Specified by:
        exportView in interface ExporterService
        Parameters:
        exporter - custom exporter
        parameters - export parameters
        progress - exporter callback for tracking progress of export