Package org.alfresco.repo.importer
Class ImporterComponent
java.lang.Object
org.alfresco.repo.importer.ImporterComponent
- All Implemented Interfaces:
ImporterService
Default implementation of the Importer Service
- Author:
- David Caruana
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceEncapsulate how a node is imported into the repository -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected NodeServiceThe db node service, used when updating the version store. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionhandlerImport(NodeRef nodeRef, Location location, ImportContentHandler handler, ImporterBinding binding, ImporterProgress progress) Perform import via Content HandlervoidimportView(Reader viewReader, Location location, ImporterBinding binding, ImporterProgress progress) Import a Repository view into the specified locationvoidimportView(ImportPackageHandler importHandler, Location location, ImporterBinding binding, ImporterProgress progress) Import a Repository view into the specified location This import allows for a custom content importer.voidparserImport(NodeRef nodeRef, Location location, Reader viewReader, ImportPackageHandler streamHandler, ImporterBinding binding, ImporterProgress progress) Perform Import via ParservoidsetAuthorityService(AuthorityService authorityService) voidsetBehaviourFilter(BehaviourFilter behaviourFilter) voidsetContentService(ContentService contentService) voidsetContentUsageImpl(ContentUsageImpl contentUsageImpl) When all behaviour is disabled it is necessary to useContentUsageImpldirectly to update user usage.voidsetDbNodeService(NodeService nodeService) Sets the db node service, used when updating the versioning informationvoidsetDictionaryService(DictionaryService dictionaryService) voidsetHiddenAspect(HiddenAspect hiddenAspect) voidsetNamespaceService(NamespaceService namespaceService) voidsetNodeService(NodeService nodeService) voidsetOwnableService(OwnableService ownableService) voidsetPermissionService(PermissionService permissionService) voidsetRuleService(RuleService ruleService) TODO: Remove this in favour of appropriate rule disablingvoidsetSearchService(SearchService searchService) voidsetVersionService(VersionService versionService) voidsetViewParser(Parser viewParser)
-
Field Details
-
dbNodeService
The db node service, used when updating the version store.
-
-
Constructor Details
-
ImporterComponent
public ImporterComponent()
-
-
Method Details
-
setViewParser
- Parameters:
viewParser- the default parser
-
setNodeService
- Parameters:
nodeService- the node service
-
setSearchService
- Parameters:
searchService- the service to perform path searches
-
setContentService
- Parameters:
contentService- the content service
-
setDictionaryService
- Parameters:
dictionaryService- the dictionary service
-
setNamespaceService
- Parameters:
namespaceService- the namespace service
-
setBehaviourFilter
- Parameters:
behaviourFilter- policy behaviour filter
-
setRuleService
TODO: Remove this in favour of appropriate rule disabling- Parameters:
ruleService- rule service
-
setPermissionService
- Parameters:
permissionService- permissionService
-
setAuthorityService
- Parameters:
authorityService- authorityService
-
setOwnableService
- Parameters:
ownableService- ownableService
-
setVersionService
- Parameters:
versionService- versionService
-
setDbNodeService
Sets the db node service, used when updating the versioning information- Parameters:
nodeService- the node service
-
setHiddenAspect
-
setContentUsageImpl
When all behaviour is disabled it is necessary to useContentUsageImpldirectly to update user usage. An instance of this class (with IDimporterComponentWithBehaviour) that does not disable behaviours is also defined in the system - in that case it should not reference theContentUsageImplcollaborator.- Parameters:
contentUsageImpl- the contentUsageImpl to set
-
importView
public void importView(Reader viewReader, Location location, ImporterBinding binding, ImporterProgress progress) Description copied from interface:ImporterServiceImport a Repository view into the specified location- Specified by:
importViewin interfaceImporterService- Parameters:
viewReader- input stream containing the xml view to parselocation- the location to import underbinding- property values used for binding property place holders in import streamprogress- progress monitor (optional)
-
importView
public void importView(ImportPackageHandler importHandler, Location location, ImporterBinding binding, ImporterProgress progress) throws ImporterException Description copied from interface:ImporterServiceImport a Repository view into the specified location This import allows for a custom content importer.- Specified by:
importViewin interfaceImporterService- Parameters:
importHandler- custom content importerlocation- the location to import underbinding- property values used for binding property place holders in import streamprogress- 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 underlocation- the location to import underviewReader- the view ReaderstreamHandler- the content property import stream handlerbinding- import configurationprogress- 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 underlocation- the location to import underhandler- the import content handlerbinding- import configurationprogress- import progress- Returns:
- content handler to interact with
-