info.magnolia.module.templatingkit.dam
Class DAMSupport
java.lang.Object
info.magnolia.module.templatingkit.dam.DAMSupport
public class DAMSupport
- extends Object
DAM support class.
- Version:
- $Id$
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VARIATION_ORIGINAL
public static String VARIATION_ORIGINAL
DAMSupport
public DAMSupport()
getInstance
public static DAMSupport getInstance()
getAsset
public Asset getAsset(info.magnolia.cms.core.Content node,
String nodeDataPrefix)
throws DAMException
- Gets the descriptor of your asset (video/image + attributes) after using the right
handler.
- Parameters:
nodeDataPrefix
- prefix of the node data that holds the asset value i.e.
imageDmsUUID the prefix would be image
- Throws:
DAMException
getHandlers
public Map<String,DAMHandler> getHandlers()
- Gets only the handlers with parameter enabled set to true.
setHandlers
public void setHandlers(Map<String,DAMHandler> handlers)
addHandler
public void addHandler(String name,
DAMHandler damHandler)
getHandler
public DAMHandler getHandler(String name)
Copyright © 2008-2012 Magnolia International Ltd.. All Rights Reserved.