public interface MediaTemplatePolicyFilter extends PolicyFilter
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
REVISION  | 
| Modifier and Type | Method and Description | 
|---|---|
java.lang.String | 
getMediaTemplatePath(java.lang.String mediaTemplatePath,
                    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 mediaTemplatePath,
                    java.lang.String templateName,
                    java.lang.String mediaPath,
                    java.lang.String mediaContentType)
Retrieve the path of the JSP suitable to display the specified media. 
 | 
initstatic final java.lang.String REVISION
java.lang.String getMediaTemplatePath(java.lang.String mediaTemplatePath,
                                      java.lang.String templateName,
                                      java.lang.String mediaPath,
                                      java.lang.String mediaContentType)
FileDocument can be retrieved with mediaPath using:
FileDocument fileDocument = FileDocument.getFileDocumentFromFilename(mediaPath);
mediaTemplatePath - proposed media template pathtemplateName - the name of the template to retrievemediaPath - the path of the media to display, relative to the webapp root (eg. upload/docs/myfile.ext) can also be 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)java.lang.String getMediaTemplatePath(java.lang.String mediaTemplatePath,
                                      java.lang.String templateName,
                                      Data data)
mediaTemplatePath - proposed media template pathtemplateName - the name of the template to retrievedata - the Data to displayCopyright © 2001-2018 Jalios SA. All Rights Reserved.