info.magnolia.dam.providers.jcr
Class JcrAsset

java.lang.Object
  extended by info.magnolia.dam.asset.AbstractBaseAsset
      extended by info.magnolia.dam.providers.jcr.JcrAsset
All Implemented Interfaces:
Asset

public class JcrAsset
extends AbstractBaseAsset

Default Asset implementation. Assumes that asset node contains jcr:content child node containing the binary data.


Field Summary
 
Fields inherited from class info.magnolia.dam.asset.AbstractBaseAsset
assetProviderIdentifier, caption, comment, contentStream, copyright, customPropertyMap, description, fileExtension, fileName, fileSize, identifier, language, lastModified, link, mediaType, mimeType, name, path, subject, title
 
Constructor Summary
JcrAsset(javax.jcr.Node assetNode, JcrAssetMetadataBuilder assetMetadataBuilder)
           
 
Method Summary
 javax.jcr.Node getContentNode()
           
 String getLink()
           
 AssetMetadata getMetadata(String metadataType)
           
 
Methods inherited from class info.magnolia.dam.asset.AbstractBaseAsset
getAssetProviderIdentifier, getCaption, getComment, getContentStream, getCopyright, getCustomProperty, getDescription, getFileExtension, getFileName, getFileSize, getIdentifier, getLanguage, getLastModified, getMediaType, getMimeType, getName, getPath, getSubject, getTitle, setAssetProviderIdentifier, setCaption, setComment, setContentStream, setCopyright, setCustomPropertyMap, setDescription, setFileExtension, setFileName, setFileSize, setIdentifier, setLanguage, setLastModified, setLink, setMediaType, setMimeType, setName, setPath, setSubject, setTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JcrAsset

public JcrAsset(javax.jcr.Node assetNode,
                JcrAssetMetadataBuilder assetMetadataBuilder)
Method Detail

getMetadata

public AssetMetadata getMetadata(String metadataType)
                          throws AssetMetadataTypeNotSupportedException
Returns:
The specific implementation of the requested Metadata. Null if the specified implementation was not found.
Throws:
AssetMetadataTypeNotSupportedException

getLink

public String getLink()
               throws DamException
Specified by:
getLink in interface Asset
Overrides:
getLink in class AbstractBaseAsset
Returns:
Return the Link to the default rendition.
Throws:
DamException

getContentNode

public javax.jcr.Node getContentNode()


Copyright © 2014 Magnolia International Ltd.. All Rights Reserved.