info.magnolia.dam.providers.jcr
Class JcrAssetMetadataBuilder
java.lang.Object
info.magnolia.dam.providers.jcr.JcrBuilder
info.magnolia.dam.providers.jcr.JcrAssetMetadataBuilder
- All Implemented Interfaces:
- AssetMetadataBuilder<AssetMetadata,javax.jcr.Node>
public class JcrAssetMetadataBuilder
- extends JcrBuilder
- implements AssetMetadataBuilder<AssetMetadata,javax.jcr.Node>
Main implementation of AssetMetadataBuilder
for Internal storage.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JcrAssetMetadataBuilder
@Inject
public JcrAssetMetadataBuilder(AssetMetadataRegistry assetRegistry)
createAssetMetadata
public AssetMetadata createAssetMetadata(javax.jcr.Node source,
String metadataType)
throws AssetMetadataTypeNotSupportedException
- Description copied from interface:
AssetMetadataBuilder
- Create an Asset Metadata based on a source Object and of the desired
metadataType.
- Specified by:
createAssetMetadata
in interface AssetMetadataBuilder<AssetMetadata,javax.jcr.Node>
- Returns:
- null in case of exception.
- Throws:
AssetMetadataTypeNotSupportedException
createSourceMetadata
public javax.jcr.Node createSourceMetadata(AssetMetadata assetMetadata,
String metadata)
throws AssetMetadataTypeNotSupportedException
- Description copied from interface:
AssetMetadataBuilder
- Create an Source Asset Metadata representation based on the assetMetadata
object and desired metadataType.
- Specified by:
createSourceMetadata
in interface AssetMetadataBuilder<AssetMetadata,javax.jcr.Node>
- Returns:
- null in case of exception.
- Throws:
AssetMetadataTypeNotSupportedException
Copyright © 2014 Magnolia International Ltd.. All Rights Reserved.