info.magnolia.dam.providers.jcr
Class JcrAsset
java.lang.Object
info.magnolia.dam.asset.AbstractBaseAsset
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.
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 |
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 |
JcrAsset
public JcrAsset(javax.jcr.Node assetNode,
JcrAssetMetadataBuilder assetMetadataBuilder)
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.