info.magnolia.dam.providers.jcr
Class JcrAssetMetadataBuilder

java.lang.Object
  extended by info.magnolia.dam.providers.jcr.JcrBuilder
      extended by 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.


Constructor Summary
JcrAssetMetadataBuilder(AssetMetadataRegistry assetRegistry)
           
 
Method Summary
 AssetMetadata createAssetMetadata(javax.jcr.Node source, String metadataType)
          Create an Asset Metadata based on a source Object and of the desired metadataType.
 javax.jcr.Node createSourceMetadata(AssetMetadata assetMetadata, String metadata)
          Create an Source Asset Metadata representation based on the assetMetadata object and desired metadataType.
 
Methods inherited from class info.magnolia.dam.providers.jcr.JcrBuilder
getAssetNodeProperties, getAssetNodePropertyString, getContentNode, getContentNodePropertyLong, getContentNodePropertyString, getLastModified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JcrAssetMetadataBuilder

@Inject
public JcrAssetMetadataBuilder(AssetMetadataRegistry assetRegistry)
Method Detail

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.