org.alfresco.repo.importer
Class ImporterComponent

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

public class ImporterComponent
extends java.lang.Object
implements ImporterService

Default implementation of the Importer Service


Nested Class Summary
static interface ImporterComponent.NodeImporterStrategy
          Encapsulate how a node is imported into the repository
 
Field Summary
protected  org.alfresco.service.cmr.repository.NodeService dbNodeService
          The db node service, used when updating the version store.
 
Constructor Summary
ImporterComponent()
           
 
Method Summary
 org.xml.sax.ContentHandler handlerImport(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName childAssocType, ImportContentHandler handler, ImporterBinding binding, ImporterProgress progress)
          Perform import via Content Handler
 void importView(ImportPackageHandler importHandler, Location location, ImporterBinding binding, ImporterProgress progress)
          Import a Repository view into the specified location This import allows for a custom content importer.
 void importView(java.io.Reader viewReader, Location location, ImporterBinding binding, ImporterProgress progress)
          Import a Repository view into the specified location
 void parserImport(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName childAssocType, java.io.Reader viewReader, ImportPackageHandler streamHandler, ImporterBinding binding, ImporterProgress progress)
          Perform Import via Parser
 void setAuthenticationContext(AuthenticationContext authenticationContext)
           
 void setAuthorityService(AuthorityService authorityService)
           
 void setBehaviourFilter(BehaviourFilter behaviourFilter)
           
 void setContentService(ContentService contentService)
           
 void setDbNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
          Sets the db node service, used when updating the versioning information
 void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
           
 void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
           
 void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
           
 void setOwnableService(OwnableService ownableService)
           
 void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
           
 void setRuleService(RuleService ruleService)
          TODO: Remove this in favour of appropriate rule disabling
 void setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
           
 void setVersionService(VersionService versionService)
           
 void setViewParser(Parser viewParser)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

setAuthenticationContext

public void setAuthenticationContext(AuthenticationContext authenticationContext)
Parameters:
authenticationContext - authenticationContext

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

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)

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(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                         org.alfresco.service.namespace.QName childAssocType,
                         java.io.Reader viewReader,
                         ImportPackageHandler streamHandler,
                         ImporterBinding binding,
                         ImporterProgress progress)
Perform Import via Parser

Parameters:
nodeRef - node reference to import under
childAssocType - the child association type to import under
inputStream - the input stream to import from
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,
                                                org.alfresco.service.namespace.QName childAssocType,
                                                ImportContentHandler handler,
                                                ImporterBinding binding,
                                                ImporterProgress progress)
Perform import via Content Handler

Parameters:
nodeRef - node reference to import under
childAssocType - the child association type to import under
handler - the import content handler
binding - import configuration
progress - import progress
Returns:
content handler to interact with


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.