info.magnolia.module.templatingkit.dam
Class DAMSupport

java.lang.Object
  extended by info.magnolia.module.templatingkit.dam.DAMSupport

public class DAMSupport
extends Object

Author:
tmiyar

Field Summary
static String VARIATION_ORIGINAL
           
 
Constructor Summary
DAMSupport()
           
 
Method Summary
 void addHandler(String name, DAMHandler damHandler)
           
 Asset getAsset(info.magnolia.cms.core.Content node, String nodeDataPrefix)
          Gets the descriptor of your asset (video/image + attributes) after using the right handler
 DAMHandler getHandler(String name)
           
 Map<String,DAMHandler> getHandlers()
          Gets only the handlers with parameter enabled set to true
 ImagingSupport getImaging()
           
static DAMSupport getInstance()
           
 void setHandlers(Map<String,DAMHandler> handlers)
           
 void setImaging(ImagingSupport imaging)
           
 void setTheme(Theme theme)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VARIATION_ORIGINAL

public static String VARIATION_ORIGINAL
Constructor Detail

DAMSupport

public DAMSupport()
Method Detail

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)

getImaging

public ImagingSupport getImaging()

setImaging

public void setImaging(ImagingSupport imaging)

getHandler

public DAMHandler getHandler(String name)

setTheme

public void setTheme(Theme theme)


Copyright © 2008-2011 Magnolia International Ltd.. All Rights Reserved.