|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TemplatePolicyFilter
This class is a hook to allow developer to select custom templates for a given publication
Field Summary | |
---|---|
static String |
REVISION
|
Method Summary | |
---|---|
String[] |
getConditionLabels(String[] labels,
Class<? extends PortalElement> clazz,
String userLang)
Hook called by doEditCommonPortlet to update labels to Condition's combo box |
String[] |
getConditionValues(String[] values,
Class<? extends PortalElement> clazz)
Hook called by doEditCommonPortlet to update values to Condition's combo box |
void |
getCssFiles(List<String> jcmsChoice)
Hook called by PortalManager to change available css files in the portal editor. |
String |
getInnerClasses(PortalElement portlet)
Hook called by PortalManager to add more classes for the given PortalElement's inside |
String |
getInnerStyles(PortalElement portlet)
Hook called by PortalManager to add more styles for the given PortalElement's inside |
String |
getOutterClasses(PortalElement portlet)
Hook called by PortalManager to add more classes for the given PortalElement's outside |
String |
getOutterStyles(PortalElement portlet)
Hook called by PortalManager to add more styles for the given PortalElement's outside |
String |
getSkinTemplateUsage(Data data,
String usage)
Overrides the skin usage decided by JCMS and previous plugins |
TypeTemplateEntry |
getTemplateEntry(String usage,
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(String usage,
Data data,
TypeTemplateEntry tte)
This method is a hook to display a custom template, different from the default selected one. |
String |
getTemplateUsage(Class<?> pubClass,
String usage)
Overrides the usage decided by JCMS and previous plugins |
String |
getTemplateUsage(Data data,
String usage)
Overrides the usage decided by JCMS and previous plugins |
void |
handleCondition(String[] conditions)
Hook called by doInitPortlet.jsp to handle custom portlet condition. |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface com.jalios.jcms.plugin.PluginComponent |
---|
init |
Field Detail |
---|
static final String REVISION
Method Detail |
---|
TypeTemplateEntry getTemplateEntry(String usage, Data data, TypeTemplateEntry tte)
usage
- the template usagedata
- the working publication
Channel.getCurrentJcmsContext()
TypeTemplateEntry getTemplateEntry(String usage, Class<? extends Data> dataClass, Workspace ws, TypeTemplateEntry tte)
usage
- the template usagedataClass
- the working Classws
- the working Workspace
Channel.getCurrentJcmsContext()
String getTemplateUsage(Data data, String usage)
data
- the working datausage
- is the current usage
String getTemplateUsage(Class<?> pubClass, String usage)
pubClass
- the class of the publicationusage
- is the current usage
String getSkinTemplateUsage(Data data, String usage)
data
- the working datausage
- is the current usage
String getInnerClasses(PortalElement portlet)
portlet
- the working PortalElement
PortalManager.getInnerClasses(PortalElement)
String getOutterClasses(PortalElement portlet)
portlet
- the working PortalElement
PortalManager.getOutterClasses(PortalElement)
String getInnerStyles(PortalElement portlet)
portlet
- the working PortalElement
PortalManager.getInnerStyles(PortalElement)
String getOutterStyles(PortalElement portlet)
portlet
- the working PortalElement
PortalManager.getOutterStyles(PortalElement)
void getCssFiles(List<String> jcmsChoice)
jcmsChoice
- files selected by JCMSPortalManager.getCssFiles()
String[] getConditionLabels(String[] labels, Class<? extends PortalElement> clazz, String userLang)
labels
- String[] I18N array of labelsclazz
- the portlet classuserLang
- the lang of the user
String[] getConditionValues(String[] values, Class<? extends PortalElement> clazz)
values
- String[] of valuesclazz
- he portlet class
void handleCondition(String[] conditions)
conditions
- String array of codition for the given portlet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |