info.magnolia.module.templatingkit.dam
Class STKAssetRenderer

java.lang.Object
  extended by info.magnolia.module.templatingkit.dam.STKAssetRenderer
All Implemented Interfaces:
info.magnolia.dam.api.AssetRenderer

public class STKAssetRenderer
extends Object
implements info.magnolia.dam.api.AssetRenderer

Asset renderer for STK using imaging to generate renditions.


Constructor Summary
STKAssetRenderer(STKTemplatingFunctions stkTemplatingFunctions)
           
 
Method Summary
 boolean canRender(info.magnolia.dam.api.Asset asset, com.google.common.net.MediaType to)
           
 info.magnolia.dam.api.AssetRendition render(info.magnolia.dam.api.Asset asset, com.google.common.net.MediaType to, String renditionName)
           
 boolean supports(com.google.common.net.MediaType from, com.google.common.net.MediaType to)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

STKAssetRenderer

@Inject
public STKAssetRenderer(STKTemplatingFunctions stkTemplatingFunctions)
Method Detail

supports

public boolean supports(com.google.common.net.MediaType from,
                        com.google.common.net.MediaType to)
Specified by:
supports in interface info.magnolia.dam.api.AssetRenderer

canRender

public boolean canRender(info.magnolia.dam.api.Asset asset,
                         com.google.common.net.MediaType to)
Specified by:
canRender in interface info.magnolia.dam.api.AssetRenderer

render

public info.magnolia.dam.api.AssetRendition render(info.magnolia.dam.api.Asset asset,
                                                   com.google.common.net.MediaType to,
                                                   String renditionName)
Specified by:
render in interface info.magnolia.dam.api.AssetRenderer


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