|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.importer.ImporterComponent
public class ImporterComponent
Default implementation of the Importer Service
| Nested Class Summary | |
|---|---|
static interface |
ImporterComponent.NodeImporterStrategy
Encapsulate how a node is imported into the repository |
| 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 |
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 |
setViewParser(Parser viewParser)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImporterComponent()
| Method Detail |
|---|
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 - ownableService
public void importView(java.io.Reader viewReader,
Location location,
ImporterBinding binding,
ImporterProgress progress)
ImporterService
importView 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
ImporterService
importView 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)
ImporterException
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)
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 progress
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)
nodeRef - node reference to import underchildAssocType - the child association type to import underhandler - the import content handlerbinding - import configurationprogress - import progress
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||