public abstract class AbstractNodeImporter extends Object implements NodeImporter
Modifier and Type | Field and Description |
---|---|
protected BehaviourFilter |
behaviourFilter |
protected FileFolderService |
fileFolderService |
protected BulkImportStatusImpl |
importStatus |
protected static org.apache.commons.logging.Log |
logger |
protected MetadataLoader |
metadataLoader |
protected org.alfresco.service.cmr.repository.NodeService |
nodeService |
protected VersionService |
versionService |
Constructor and Description |
---|
AbstractNodeImporter() |
Modifier and Type | Method and Description |
---|---|
protected org.alfresco.util.Triple<org.alfresco.service.cmr.repository.NodeRef,Boolean,BulkImportStatusImpl.NodeState> |
createOrFindNode(org.alfresco.service.cmr.repository.NodeRef target,
ImportableItem importableItem,
BulkImportParameters.ExistingFileMode existingFileMode,
MetadataLoader.Metadata metadata) |
protected String |
getFileName(Path file) |
protected String |
getImportableItemName(ImportableItem importableItem,
MetadataLoader.Metadata metadata)
Returns the name of the given importable item.
|
protected abstract void |
importContentAndMetadata(org.alfresco.service.cmr.repository.NodeRef nodeRef,
ImportableItem.ContentAndMetadata contentAndMetadata,
MetadataLoader.Metadata metadata) |
protected int |
importContentVersions(org.alfresco.service.cmr.repository.NodeRef nodeRef,
ImportableItem importableItem,
BulkImportStatusImpl.NodeState nodeState) |
org.alfresco.service.cmr.repository.NodeRef |
importImportableItem(ImportableItem importableItem,
BulkImportParameters.ExistingFileMode existingFileMode) |
protected void |
importImportableItemDirectory(org.alfresco.service.cmr.repository.NodeRef nodeRef,
ImportableItem importableItem,
MetadataLoader.Metadata metadata) |
protected int |
importImportableItemFile(org.alfresco.service.cmr.repository.NodeRef nodeRef,
ImportableItem importableItem,
MetadataLoader.Metadata metadata,
BulkImportStatusImpl.NodeState nodeState,
BulkImportParameters.ExistingFileMode existingFileMode) |
protected abstract org.alfresco.service.cmr.repository.NodeRef |
importImportableItemImpl(ImportableItem importableItem,
BulkImportParameters.ExistingFileMode existingFileMode) |
protected void |
importImportableItemMetadata(org.alfresco.service.cmr.repository.NodeRef nodeRef,
Path parentFile,
MetadataLoader.Metadata metadata) |
protected MetadataLoader.Metadata |
loadMetadata(ImportableItem.ContentAndMetadata contentAndMetadata) |
protected String |
mapToString(Map<?,?> map) |
void |
setBehaviourFilter(BehaviourFilter behaviourFilter) |
void |
setFileFolderService(FileFolderService fileFolderService) |
void |
setImportStatus(BulkImportStatusImpl importStatus) |
void |
setMetadataLoader(MetadataLoader metadataLoader) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setVersionService(VersionService versionService) |
protected void |
skipImportableDirectory(ImportableItem importableItem) |
protected void |
skipImportableFile(ImportableItem importableItem) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSourceFolder
protected static final org.apache.commons.logging.Log logger
protected FileFolderService fileFolderService
protected org.alfresco.service.cmr.repository.NodeService nodeService
protected MetadataLoader metadataLoader
protected BulkImportStatusImpl importStatus
protected VersionService versionService
protected BehaviourFilter behaviourFilter
public void setVersionService(VersionService versionService)
public void setFileFolderService(FileFolderService fileFolderService)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setMetadataLoader(MetadataLoader metadataLoader)
public void setImportStatus(BulkImportStatusImpl importStatus)
public void setBehaviourFilter(BehaviourFilter behaviourFilter)
protected abstract org.alfresco.service.cmr.repository.NodeRef importImportableItemImpl(ImportableItem importableItem, BulkImportParameters.ExistingFileMode existingFileMode)
protected abstract void importContentAndMetadata(org.alfresco.service.cmr.repository.NodeRef nodeRef, ImportableItem.ContentAndMetadata contentAndMetadata, MetadataLoader.Metadata metadata)
protected final String getImportableItemName(ImportableItem importableItem, MetadataLoader.Metadata metadata)
importableItem
- The importableItem with which tometadata
- MetadataLoader.Metadataprotected final int importImportableItemFile(org.alfresco.service.cmr.repository.NodeRef nodeRef, ImportableItem importableItem, MetadataLoader.Metadata metadata, BulkImportStatusImpl.NodeState nodeState, BulkImportParameters.ExistingFileMode existingFileMode)
protected final int importContentVersions(org.alfresco.service.cmr.repository.NodeRef nodeRef, ImportableItem importableItem, BulkImportStatusImpl.NodeState nodeState)
protected final org.alfresco.util.Triple<org.alfresco.service.cmr.repository.NodeRef,Boolean,BulkImportStatusImpl.NodeState> createOrFindNode(org.alfresco.service.cmr.repository.NodeRef target, ImportableItem importableItem, BulkImportParameters.ExistingFileMode existingFileMode, MetadataLoader.Metadata metadata)
protected final void importImportableItemMetadata(org.alfresco.service.cmr.repository.NodeRef nodeRef, Path parentFile, MetadataLoader.Metadata metadata)
protected final void importImportableItemDirectory(org.alfresco.service.cmr.repository.NodeRef nodeRef, ImportableItem importableItem, MetadataLoader.Metadata metadata)
protected final MetadataLoader.Metadata loadMetadata(ImportableItem.ContentAndMetadata contentAndMetadata)
public org.alfresco.service.cmr.repository.NodeRef importImportableItem(ImportableItem importableItem, BulkImportParameters.ExistingFileMode existingFileMode)
importImportableItem
in interface NodeImporter
protected void skipImportableDirectory(ImportableItem importableItem)
protected void skipImportableFile(ImportableItem importableItem)
Copyright © 2005–2017 Alfresco Software. All rights reserved.