public class ImporterComponent extends java.lang.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 |
|---|---|
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 |
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 setAuthenticationContext(AuthenticationContext authenticationContext)
authenticationContext - authenticationContextpublic 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(java.io.Reader viewReader,
Location location,
ImporterBinding binding,
ImporterProgress progress)
ImporterServiceimportView in interface ImporterServiceviewReader - 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
ImporterServiceimportView in interface ImporterServiceimportHandler - custom content importerlocation - the location to import underbinding - property values used for binding property place holders in import streamprogress - progress monitor (optional)ImporterExceptionpublic 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)
nodeRef - node reference to import underchildAssocType - the child association type to import underinputStream - the input stream to import fromstreamHandler - the content property import stream handlerbinding - import configurationprogress - import progresspublic org.xml.sax.ContentHandler handlerImport(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName childAssocType,
ImportContentHandler handler,
ImporterBinding binding,
ImporterProgress progress)
nodeRef - node reference to import underchildAssocType - the child association type to import underhandler - the import content handlerbinding - import configurationprogress - import progressCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.