public class JcrAsset extends AbstractJcrItem implements info.magnolia.dam.api.Asset
Asset
definition.Constructor and Description |
---|
JcrAsset(JcrAssetProvider assetProvider,
javax.jcr.Node itemNode) |
Modifier and Type | Method and Description |
---|---|
String |
getCaption() |
String |
getComment() |
InputStream |
getContentStream() |
String |
getCopyright() |
Calendar |
getCreated() |
String |
getDescription() |
String |
getFileName() |
long |
getFileSize() |
String |
getLanguage() |
Calendar |
getLastModified() |
String |
getLink() |
<M extends info.magnolia.dam.api.metadata.AssetMetadata> |
getMetadata(Class<M> metaDataType) |
String |
getMimeType() |
Object |
getProperty(String propertyName)
JcrAsset specific implementation that let you access a property value linked to an asset node.
|
String |
getSubject() |
String |
getTitle() |
boolean |
isAsset() |
<M extends info.magnolia.dam.api.metadata.AssetMetadata> |
supports(Class<M> metaDataType) |
getName, getNode, getParent, getPath
getAssetProvider, getItemKey, isFolder
public JcrAsset(JcrAssetProvider assetProvider, javax.jcr.Node itemNode)
public String getLink()
getLink
in interface info.magnolia.dam.api.Asset
public boolean isAsset()
isAsset
in interface info.magnolia.dam.api.Item
isAsset
in class info.magnolia.dam.api.AbstractItem<JcrAssetProvider>
public String getTitle()
getTitle
in interface info.magnolia.dam.api.Asset
public String getSubject()
getSubject
in interface info.magnolia.dam.api.Asset
public String getDescription()
getDescription
in interface info.magnolia.dam.api.Asset
public String getCaption()
getCaption
in interface info.magnolia.dam.api.Asset
public String getLanguage()
getLanguage
in interface info.magnolia.dam.api.Asset
public String getCopyright()
getCopyright
in interface info.magnolia.dam.api.Asset
public String getComment()
getComment
in interface info.magnolia.dam.api.Asset
public Calendar getCreated()
getCreated
in interface info.magnolia.dam.api.Asset
public Calendar getLastModified()
getLastModified
in interface info.magnolia.dam.api.Asset
public <M extends info.magnolia.dam.api.metadata.AssetMetadata> M getMetadata(Class<M> metaDataType)
getMetadata
in interface info.magnolia.dam.api.Asset
public String getMimeType()
getMimeType
in interface info.magnolia.dam.api.Asset
public long getFileSize()
getFileSize
in interface info.magnolia.dam.api.Asset
public InputStream getContentStream()
getContentStream
in interface info.magnolia.dam.api.Asset
public String getFileName()
getFileName
in interface info.magnolia.dam.api.Asset
public Object getProperty(String propertyName)
public <M extends info.magnolia.dam.api.metadata.AssetMetadata> boolean supports(Class<M> metaDataType)
supports
in interface info.magnolia.dam.api.Asset
Copyright © 2017 Magnolia International Ltd.. All rights reserved.