public class BasicMediaTemplatePolicyFilter extends AbstractPolicyFilter implements MediaTemplatePolicyFilter, PluginComponent
MediaTemplatePolicyFilter
This implementation does nothing.
MediaTemplatePolicyFilter
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REVISION |
order
Constructor and Description |
---|
BasicMediaTemplatePolicyFilter() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMediaTemplatePath(java.lang.String mediaTemplatePath,
java.lang.String templateName,
Data data)
Returns proposed mediaTemplatepath.
|
java.lang.String |
getMediaTemplatePath(java.lang.String mediaTemplatePath,
java.lang.String templateName,
java.lang.String mediaPath,
java.lang.String mediaContentType)
Returns proposed mediaTemplatepath.
|
boolean |
init(Plugin plugin)
Initialize the component with the given plugin configuration
|
compareTo, equals, getOrder, setOrder
public static final java.lang.String REVISION
public boolean init(Plugin plugin)
PluginComponent
init
in interface PluginComponent
plugin
- the calling pluginPluginComponent.init(Plugin)
public java.lang.String getMediaTemplatePath(java.lang.String mediaTemplatePath, java.lang.String templateName, java.lang.String mediaPath, java.lang.String mediaContentType)
getMediaTemplatePath
in interface MediaTemplatePolicyFilter
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)MediaTemplatePolicyFilter.getMediaTemplatePath(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
public java.lang.String getMediaTemplatePath(java.lang.String mediaTemplatePath, java.lang.String templateName, Data data)
getMediaTemplatePath
in interface MediaTemplatePolicyFilter
mediaTemplatePath
- proposed media template pathtemplateName
- the name of the template to retrievedata
- the Data to displayMediaTemplatePolicyFilter.getMediaTemplatePath(java.lang.String, java.lang.String, com.jalios.jcms.Data)
Copyright © 2001-2017 Jalios SA. All Rights Reserved.