public interface TemplatePolicyFilter extends PolicyFilter
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REVISION |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getConditionLabels(java.lang.String[] labels,
java.lang.Class<? extends PortalElement> clazz,
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> clazz)
Hook called by doEditCommonPortlet to update values to Condition's combo box
|
void |
getCssFiles(java.util.List<java.lang.String> 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.
|
init
static final java.lang.String REVISION
TypeTemplateEntry getTemplateEntry(java.lang.String usage, Data data, TypeTemplateEntry tte)
usage
- the template usagedata
- the working publicationChannel.getCurrentJcmsContext()
TypeTemplateEntry getTemplateEntry(java.lang.String usage, java.lang.Class<? extends Data> dataClass, Workspace ws, TypeTemplateEntry tte)
usage
- the template usagedataClass
- the working Classws
- the working WorkspaceChannel.getCurrentJcmsContext()
java.lang.String getTemplateUsage(Data data, java.lang.String usage)
data
- the working datausage
- is the current usagejava.lang.String getTemplateUsage(java.lang.Class<?> pubClass, java.lang.String usage)
pubClass
- the class of the publicationusage
- is the current usagejava.lang.String getSkinTemplateUsage(Data data, java.lang.String usage)
data
- the working datausage
- is the current usagejava.lang.String getInnerClasses(PortalElement portlet)
portlet
- the working PortalElementPortalManager.getInnerClasses(PortalElement)
java.lang.String getOutterClasses(PortalElement portlet)
portlet
- the working PortalElementPortalManager.getOutterClasses(PortalElement)
java.lang.String getInnerStyles(PortalElement portlet)
portlet
- the working PortalElementPortalManager.getInnerStyles(PortalElement)
java.lang.String getOutterStyles(PortalElement portlet)
portlet
- the working PortalElementPortalManager.getOutterStyles(PortalElement)
void getCssFiles(java.util.List<java.lang.String> jcmsChoice)
jcmsChoice
- files selected by JCMSPortalManager.getCssFiles()
java.lang.String[] getConditionLabels(java.lang.String[] labels, java.lang.Class<? extends PortalElement> clazz, java.lang.String userLang)
labels
- String[] I18N array of labelsclazz
- the portlet classuserLang
- the lang of the userjava.lang.String[] getConditionValues(java.lang.String[] values, java.lang.Class<? extends PortalElement> clazz)
values
- String[] of valuesclazz
- he portlet classvoid handleCondition(java.lang.String[] conditions)
conditions
- String array of codition for the given portletCopyright © 2001-2010 Jalios SA. All Rights Reserved.