Package org.alfresco.repo.importer
Class ImporterComponent
- java.lang.Object
-
- org.alfresco.repo.importer.ImporterComponent
-
- All Implemented Interfaces:
ImporterService
public class ImporterComponent extends java.lang.Object implements ImporterService
Default implementation of the Importer Service- Author:
- David Caruana
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceImporterComponent.NodeImporterStrategyEncapsulate how a node is imported into the repository
-
Field Summary
Fields Modifier and Type Field Description protected org.alfresco.service.cmr.repository.NodeServicedbNodeServiceThe db node service, used when updating the version store.
-
Constructor Summary
Constructors Constructor Description ImporterComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.xml.sax.ContentHandlerhandlerImport(org.alfresco.service.cmr.repository.NodeRef nodeRef, Location location, ImportContentHandler handler, ImporterBinding binding, ImporterProgress progress)Perform import via Content HandlervoidimportView(java.io.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(org.alfresco.service.cmr.repository.NodeRef nodeRef, Location location, java.io.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(org.alfresco.service.cmr.repository.NodeService nodeService)Sets the db node service, used when updating the versioning informationvoidsetDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)voidsetHiddenAspect(HiddenAspect hiddenAspect)voidsetNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)voidsetNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)voidsetOwnableService(OwnableService ownableService)voidsetPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)voidsetRuleService(RuleService ruleService)TODO: Remove this in favour of appropriate rule disablingvoidsetSearchService(org.alfresco.service.cmr.search.SearchService searchService)voidsetVersionService(VersionService versionService)voidsetViewParser(Parser viewParser)
-
-
-
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 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(java.io.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(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 underlocation- the location to import underviewReader- the view ReaderstreamHandler- the content property import stream handlerbinding- import configurationprogress- 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 underlocation- the location to import underhandler- the import content handlerbinding- import configurationprogress- import progress- Returns:
- content handler to interact with
-
-