public class MediaManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REVISION |
Modifier and Type | Method and Description |
---|---|
static MediaManager |
getInstance()
Get the manager.
|
java.lang.String |
getMediaTemplatePath(java.lang.String templateName,
Data data)
Retrieve the path of the JSP suitable to display the specified Data.
|
java.lang.String |
getMediaTemplatePath(java.lang.String templateName,
java.lang.String mediaSource,
java.lang.String mediaContentType)
Retrieve the path of the JSP suitable to display the specified media.
|
public static final java.lang.String REVISION
public static MediaManager getInstance()
public java.lang.String getMediaTemplatePath(java.lang.String templateName, java.lang.String mediaSource, java.lang.String mediaContentType)
templateName
- the name of the template to retrievemediaSource
- the source of the media to display, can be a Data id, a path relative to the webapp root (eg. upload/docs/myfile.ext) or an URL such as
https://www.youtube.com/watch?v=abc (if supported in template declarations)mediaContentType
- the content type of the media to display (eg. image/jpeg). This value is ignored if a Data id was specifiedgetMediaTemplatePath(String, Data)
public java.lang.String getMediaTemplatePath(java.lang.String templateName, Data data)
templateName
- the name of the template to retrievedata
- the Data to displaygetMediaTemplatePath(String, String, String)
Copyright © 2001-2017 Jalios SA. All Rights Reserved.