@Singleton public class ImagingTemplatingFunctions extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_IMAGE_VARIATION |
Constructor and Description |
---|
ImagingTemplatingFunctions(info.magnolia.imaging.ImagingSupport imagingSupport) |
Modifier and Type | Method and Description |
---|---|
String |
getImageVariationLinkFromBinary(info.magnolia.jcr.util.ContentMap binaryContent,
String variation) |
String |
getImageVariationLinkFromBinary(info.magnolia.jcr.util.ContentMap binaryContent,
info.magnolia.rendering.template.TemplateDefinition definition) |
String |
getImageVariationLinkFromBinary(javax.jcr.Node binaryContent,
String variation) |
String |
getImageVariationLinkFromBinary(javax.jcr.Node binaryContent,
info.magnolia.rendering.template.TemplateDefinition definition) |
String |
resolveImageVariationName(info.magnolia.rendering.template.TemplateDefinition definition)
Resolves an image variation name based on parameter values found in the template definition.
|
public static final String PROPERTY_IMAGE_VARIATION
@Inject public ImagingTemplatingFunctions(info.magnolia.imaging.ImagingSupport imagingSupport)
public String resolveImageVariationName(info.magnolia.rendering.template.TemplateDefinition definition)
ImagingSupport.VARIATION_ORIGINAL
.public String getImageVariationLinkFromBinary(info.magnolia.jcr.util.ContentMap binaryContent, info.magnolia.rendering.template.TemplateDefinition definition)
public String getImageVariationLinkFromBinary(javax.jcr.Node binaryContent, info.magnolia.rendering.template.TemplateDefinition definition)
public String getImageVariationLinkFromBinary(info.magnolia.jcr.util.ContentMap binaryContent, String variation)
Copyright © 2016 Magnolia International Ltd.. All rights reserved.