public class BasicTemplatePolicyFilter extends AbstractPolicyFilter implements TemplatePolicyFilter, PluginComponent
TemplatePolicyFilter
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REVISION |
order
Constructor and Description |
---|
BasicTemplatePolicyFilter() |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getConditionLabels(java.lang.String[] labels,
java.lang.Class<? extends PortalElement> portlet,
java.lang.String userLang)
Hook called by doEditCommonPortlet to update labels to Condition's combo box
|
java.lang.String[] |
getConditionValues(java.lang.String[] values,
java.lang.Class<? extends PortalElement> portlet)
Hook called by doEditCommonPortlet to update values to Condition's combo box
|
void |
getCssFiles(java.util.List<java.io.File> jcmsChoice)
Hook called by PortalManager to change available css files in the portal editor.
|
java.lang.String |
getInnerClasses(PortalElement portlet)
Hook called by PortalManager to add more
classes for the given PortalElement's inside
|
java.lang.String |
getInnerStyles(PortalElement portlet)
Hook called by PortalManager to add more
styles for the given PortalElement's inside
|
java.lang.String |
getOutterClasses(PortalElement portlet)
Hook called by PortalManager to add more
classes for the given PortalElement's outside
|
java.lang.String |
getOutterStyles(PortalElement portlet)
Hook called by PortalManager to add more
styles for the given PortalElement's outside
|
java.lang.String |
getSkinTemplateUsage(Data data,
java.lang.String usage)
Overrides the skin usage decided by JCMS and previous plugins
|
TypeTemplateEntry |
getTemplateEntry(java.lang.String usage,
java.lang.Class<? extends Data> dataClass,
Workspace ws,
TypeTemplateEntry tte)
This method is a hook to display a custom template, different from
the default selected one.
|
TypeTemplateEntry |
getTemplateEntry(java.lang.String usage,
Data data,
TypeTemplateEntry tte)
This method is a hook to display a custom template, different from
the default selected one.
|
java.lang.String |
getTemplateUsage(java.lang.Class<?> pubClass,
java.lang.String usage)
Overrides the usage decided by JCMS and previous plugins
|
java.lang.String |
getTemplateUsage(Data data,
java.lang.String usage)
Overrides the usage decided by JCMS and previous plugins
|
void |
handleCondition(java.lang.String[] conditions)
Hook called by doInitPortlet.jsp to handle custom portlet condition.
|
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 TypeTemplateEntry getTemplateEntry(java.lang.String usage, Data data, TypeTemplateEntry tte)
TemplatePolicyFilter
getTemplateEntry
in interface TemplatePolicyFilter
usage
- the template usagedata
- the working publicationTemplatePolicyFilter.getTemplateEntry(String, Data, TypeTemplateEntry)
public TypeTemplateEntry getTemplateEntry(java.lang.String usage, java.lang.Class<? extends Data> dataClass, Workspace ws, TypeTemplateEntry tte)
TemplatePolicyFilter
getTemplateEntry
in interface TemplatePolicyFilter
usage
- the template usagedataClass
- the working Classws
- the working WorkspaceTemplatePolicyFilter.getTemplateEntry(String, Class, Workspace, TypeTemplateEntry)
public java.lang.String getTemplateUsage(Data data, java.lang.String usage)
TemplatePolicyFilter
getTemplateUsage
in interface TemplatePolicyFilter
data
- the working datausage
- is the current usageTemplatePolicyFilter.getTemplateUsage(Data, String)
public java.lang.String getTemplateUsage(java.lang.Class<?> pubClass, java.lang.String usage)
TemplatePolicyFilter
getTemplateUsage
in interface TemplatePolicyFilter
pubClass
- the class of the publicationusage
- is the current usageTemplatePolicyFilter.getTemplateUsage(Class, String)
public java.lang.String getSkinTemplateUsage(Data data, java.lang.String usage)
TemplatePolicyFilter
getSkinTemplateUsage
in interface TemplatePolicyFilter
data
- the working datausage
- is the current usageTemplatePolicyFilter.getSkinTemplateUsage(Data, String)
public java.lang.String getInnerClasses(PortalElement portlet)
TemplatePolicyFilter
getInnerClasses
in interface TemplatePolicyFilter
portlet
- the working PortalElementTemplatePolicyFilter.getInnerClasses(PortalElement)
public java.lang.String getOutterClasses(PortalElement portlet)
TemplatePolicyFilter
getOutterClasses
in interface TemplatePolicyFilter
portlet
- the working PortalElementTemplatePolicyFilter.getOutterClasses(PortalElement)
public java.lang.String getInnerStyles(PortalElement portlet)
TemplatePolicyFilter
getInnerStyles
in interface TemplatePolicyFilter
portlet
- the working PortalElementTemplatePolicyFilter.getInnerStyles(PortalElement)
public java.lang.String getOutterStyles(PortalElement portlet)
TemplatePolicyFilter
getOutterStyles
in interface TemplatePolicyFilter
portlet
- the working PortalElementTemplatePolicyFilter.getOutterStyles(PortalElement)
public void getCssFiles(java.util.List<java.io.File> jcmsChoice)
TemplatePolicyFilter
getCssFiles
in interface TemplatePolicyFilter
jcmsChoice
- files selected by JCMSTemplatePolicyFilter.getCssFiles(List)
public java.lang.String[] getConditionLabels(java.lang.String[] labels, java.lang.Class<? extends PortalElement> portlet, java.lang.String userLang)
TemplatePolicyFilter
getConditionLabels
in interface TemplatePolicyFilter
labels
- String[] I18N array of labelsportlet
- the portlet classuserLang
- the lang of the userTemplatePolicyFilter.getConditionLabels(String[], Class, String)
public java.lang.String[] getConditionValues(java.lang.String[] values, java.lang.Class<? extends PortalElement> portlet)
TemplatePolicyFilter
getConditionValues
in interface TemplatePolicyFilter
values
- String[] of valuesportlet
- he portlet classTemplatePolicyFilter.getConditionValues(String[], Class)
public void handleCondition(java.lang.String[] conditions)
TemplatePolicyFilter
handleCondition
in interface TemplatePolicyFilter
conditions
- String array of codition for the given portletTemplatePolicyFilter.handleCondition(String[])
Copyright © 2001-2017 Jalios SA. All Rights Reserved.