public final class PropertiesFileMetadataLoader
extends java.lang.Object
type=cm:content
aspects=cm:versionable, custom:myAspect
cm\:title=This is the value of the cm:title field.
cm\:description=This is the value of the cm:description field.
cm\:taggable=workspace://SpacesStore/3da6c395-3a4b-4a57-836d-8e5
custom\:myProperty=This is the value of the custom:myProperty field.
custom\:aDateProperty=2001-01-01T12:00:00.000+01:00
Notes:
XmlPropertiesFileMetadataLoader
instead.MetadataLoaderMetadataLoader.Metadata| Modifier and Type | Field and Description |
|---|---|
protected org.alfresco.service.cmr.dictionary.DictionaryService |
dictionaryService |
protected java.lang.String |
metadataFileExtension |
protected java.lang.String |
multiValuedSeparator |
protected org.alfresco.service.namespace.NamespaceService |
namespaceService |
METADATA_SUFFIX| Constructor and Description |
|---|
PropertiesFileMetadataLoader(ServiceRegistry serviceRegistry) |
PropertiesFileMetadataLoader(ServiceRegistry serviceRegistry,
java.lang.String multiValuedSeparator) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getMetadataFileExtension() |
void |
loadMetadata(ImportableItem.ContentAndMetadata contentAndMetadata,
MetadataLoader.Metadata metadata)
Method that populates the type, aspects and properties to attach to a given file or space.
|
protected java.util.Map |
loadMetadataFromFile(java.io.File metadataFile)
Method that actually loads the properties from the file.
|
protected final org.alfresco.service.namespace.NamespaceService namespaceService
protected final org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService
protected final java.lang.String multiValuedSeparator
protected final java.lang.String metadataFileExtension
public PropertiesFileMetadataLoader(ServiceRegistry serviceRegistry)
public PropertiesFileMetadataLoader(ServiceRegistry serviceRegistry, java.lang.String multiValuedSeparator)
protected java.util.Map loadMetadataFromFile(java.io.File metadataFile)
metadataFile - The file to load the properties from (must not be null).Properties object loaded from that file.org.alfresco.extension.bulkfilesystemimport.metadataloaders.AbstractMapBasedMetadataLoader#loadMetadataFromFile(java.io.File)public final java.lang.String getMetadataFileExtension()
getMetadataFileExtension in interface MetadataLoaderorg.alfresco.extension.bulkfilesystemimport.MetadataLoader#getMetadataFileExtension()public final void loadMetadata(ImportableItem.ContentAndMetadata contentAndMetadata, MetadataLoader.Metadata metadata)
MetadataLoaderloadMetadata in interface MetadataLoadercontentAndMetadata - The contentAndMetadata from which to obtain the metadata (will not be null).metadata - The metadata object to populate (will not be null, and may already be partially populated).org.alfresco.extension.bulkfilesystemimport.MetadataLoader#loadMetadata(org.alfresco.extension.bulkfilesystemimport.ImportableItem.ContentAndMetadata, org.alfresco.extension.bulkfilesystemimport.MetadataLoader.Metadata)Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.