info.magnolia.module.templatingkit.dam.assets
Class InternalAsset
java.lang.Object
info.magnolia.module.templatingkit.dam.assets.InternalAsset
- All Implemented Interfaces:
- Asset
- Direct Known Subclasses:
- DMSAsset, MetaDataOnlyAsset
public class InternalAsset
- extends Object
- implements Asset
Internal Asset implementation.
- Version:
- $Id$
- Author:
- pbracher
Constructor Summary |
InternalAsset(AbstractInternalContentDAMHandler damHandler,
info.magnolia.cms.core.Content metaDataNode,
String nodeDataPrefix,
info.magnolia.cms.core.NodeData binaryNodeData,
info.magnolia.templating.functions.TemplatingFunctions templatingFunctions)
|
damHandler
protected final AbstractInternalContentDAMHandler damHandler
metaDataNode
protected final info.magnolia.cms.core.Content metaDataNode
nodeDataPrefix
protected final String nodeDataPrefix
InternalAsset
@Inject
public InternalAsset(AbstractInternalContentDAMHandler damHandler,
info.magnolia.cms.core.Content metaDataNode,
String nodeDataPrefix,
info.magnolia.cms.core.NodeData binaryNodeData,
info.magnolia.templating.functions.TemplatingFunctions templatingFunctions)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
getCaption
public String getCaption()
- Specified by:
getCaption
in interface Asset
getTitle
public String getTitle()
- Specified by:
getTitle
in interface Asset
getDescription
public String getDescription()
- Specified by:
getDescription
in interface Asset
getCopyright
public String getCopyright()
- Specified by:
getCopyright
in interface Asset
getLink
public String getLink()
- Specified by:
getLink
in interface Asset
getBinaryNodeData
public info.magnolia.cms.core.NodeData getBinaryNodeData()
getName
public String getName()
- Specified by:
getName
in interface Asset
getMetaDataValue
protected String getMetaDataValue(String name,
String defaultValue)
getVariation
public Asset getVariation(String variationName)
throws NoSuchVariationException,
DAMException
- Specified by:
getVariation
in interface Asset
- Throws:
NoSuchVariationException
DAMException
getHeight
public int getHeight()
- Specified by:
getHeight
in interface Asset
getWidth
public int getWidth()
- Specified by:
getWidth
in interface Asset
toString
public String toString()
- Overrides:
toString
in class Object
getMimeType
public String getMimeType()
- Specified by:
getMimeType
in interface Asset
Copyright © 2008-2012 Magnolia International Ltd.. All Rights Reserved.