public class ImporterComponent extends Object implements ImporterService
Modifier and Type | Class and Description |
---|---|
static interface |
ImporterComponent.NodeImporterStrategy
Encapsulate how a node is imported into the repository
|
Modifier and Type | Field and Description |
---|---|
protected org.alfresco.service.cmr.repository.NodeService |
dbNodeService
The db node service, used when updating the version store.
|
Constructor and Description |
---|
ImporterComponent() |
Modifier and Type | Method and Description |
---|---|
ContentHandler |
handlerImport(org.alfresco.service.cmr.repository.NodeRef nodeRef,
Location location,
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(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,
Location location,
Reader viewReader,
ImportPackageHandler streamHandler,
ImporterBinding binding,
ImporterProgress progress)
Perform Import via Parser
|
void |
setAuthorityService(AuthorityService authorityService) |
void |
setBehaviourFilter(BehaviourFilter behaviourFilter) |
void |
setContentService(ContentService contentService) |
void |
setContentUsageImpl(ContentUsageImpl contentUsageImpl)
When all behaviour is disabled it is necessary to use
ContentUsageImpl
directly to update user usage. |
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 |
setHiddenAspect(HiddenAspect hiddenAspect) |
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) |
protected org.alfresco.service.cmr.repository.NodeService dbNodeService
public void setViewParser(Parser viewParser)
viewParser
- the default parserpublic void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService
- the node servicepublic void setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
searchService
- the service to perform path searchespublic void setContentService(ContentService contentService)
contentService
- the content servicepublic void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
dictionaryService
- the dictionary servicepublic void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
namespaceService
- the namespace servicepublic void setBehaviourFilter(BehaviourFilter behaviourFilter)
behaviourFilter
- policy behaviour filterpublic void setRuleService(RuleService ruleService)
ruleService
- rule servicepublic void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
permissionService
- permissionServicepublic void setAuthorityService(AuthorityService authorityService)
authorityService
- authorityServicepublic void setOwnableService(OwnableService ownableService)
ownableService
- ownableServicepublic void setVersionService(VersionService versionService)
versionService
- versionServicepublic void setDbNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService
- the node servicepublic void setHiddenAspect(HiddenAspect hiddenAspect)
public void setContentUsageImpl(ContentUsageImpl contentUsageImpl)
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.contentUsageImpl
- the contentUsageImpl to setpublic void importView(Reader viewReader, Location location, ImporterBinding binding, ImporterProgress progress)
ImporterService
importView
in interface ImporterService
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)public void importView(ImportPackageHandler importHandler, Location location, ImporterBinding binding, ImporterProgress progress) throws ImporterException
ImporterService
importView
in interface ImporterService
importHandler
- custom content importerlocation
- the location to import underbinding
- property values used for binding property place holders in import streamprogress
- progress monitor (optional)ImporterException
public void parserImport(org.alfresco.service.cmr.repository.NodeRef nodeRef, Location location, Reader viewReader, ImportPackageHandler streamHandler, ImporterBinding binding, ImporterProgress progress)
nodeRef
- node reference to import underlocation
- the location to import underviewReader
- the view ReaderstreamHandler
- the content property import stream handlerbinding
- import configurationprogress
- import progresspublic ContentHandler handlerImport(org.alfresco.service.cmr.repository.NodeRef nodeRef, Location location, ImportContentHandler handler, ImporterBinding binding, ImporterProgress progress)
nodeRef
- node reference to import underlocation
- the location to import underhandler
- the import content handlerbinding
- import configurationprogress
- import progressCopyright © 2005–2017 Alfresco Software. All rights reserved.