info.magnolia.module.templatingkit.dam.assets
Class InternalAsset

java.lang.Object
  extended by 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: InternalAsset.java 53081 2012-01-03 08:01:22Z ehechinger $
Author:
pbracher

Field Summary
protected  AbstractInternalContentDAMHandler damHandler
           
protected  info.magnolia.cms.core.Content metaDataNode
           
protected  String nodeDataPrefix
           
 
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)
           
 
Method Summary
 info.magnolia.cms.core.NodeData getBinaryNodeData()
           
 String getCaption()
           
 String getCopyright()
           
 String getDescription()
           
 int getHeight()
           
 String getLink()
           
protected  String getMetaDataValue(String name, String defaultValue)
           
 String getMimeType()
           
 String getName()
           
 String getTitle()
           
 Asset getVariation(String variationName)
           
 int getWidth()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

damHandler

protected final AbstractInternalContentDAMHandler damHandler

metaDataNode

protected final info.magnolia.cms.core.Content metaDataNode

nodeDataPrefix

protected final String nodeDataPrefix
Constructor Detail

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
Method Detail

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.