|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jalios.jcms.policy.AbstractPolicyFilter com.jalios.jcms.policy.BasicTemplatePolicyFilter
public class BasicTemplatePolicyFilter
This class is a hook to allow developer to select custom templates and css for a given publication
TemplatePolicyFilter
Field Summary | |
---|---|
static String |
REVISION
|
Fields inherited from class com.jalios.jcms.policy.AbstractPolicyFilter |
---|
order |
Constructor Summary | |
---|---|
BasicTemplatePolicyFilter()
|
Method Summary | |
---|---|
String[] |
getConditionLabels(String[] labels,
Class<? extends PortalElement> portlet,
String userLang)
Hook called by doEditCommonPortlet to update labels to Condition's combo box |
String[] |
getConditionValues(String[] values,
Class<? extends PortalElement> portlet)
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. |
boolean |
init(Plugin plugin)
Initialize the component with the given plugin configuration |
Methods inherited from class com.jalios.jcms.policy.AbstractPolicyFilter |
---|
compareTo, equals, getOrder, setOrder |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Field Detail |
---|
public static final String REVISION
Constructor Detail |
---|
public BasicTemplatePolicyFilter()
Method Detail |
---|
public boolean init(Plugin plugin)
PluginComponent
init
in interface PluginComponent
plugin
- the calling plugin
PluginComponent.init(Plugin)
public TypeTemplateEntry getTemplateEntry(String usage, Data data, TypeTemplateEntry tte)
TemplatePolicyFilter
getTemplateEntry
in interface TemplatePolicyFilter
usage
- the template usagedata
- the working publication
TemplatePolicyFilter.getTemplateEntry(String, Data, TypeTemplateEntry)
public TypeTemplateEntry getTemplateEntry(String usage, Class<? extends Data> dataClass, Workspace ws, TypeTemplateEntry tte)
TemplatePolicyFilter
getTemplateEntry
in interface TemplatePolicyFilter
usage
- the template usagedataClass
- the working Classws
- the working Workspace
TemplatePolicyFilter.getTemplateEntry(String, Class, Workspace, TypeTemplateEntry)
public String getTemplateUsage(Data data, String usage)
TemplatePolicyFilter
getTemplateUsage
in interface TemplatePolicyFilter
data
- the working datausage
- is the current usage
TemplatePolicyFilter.getTemplateUsage(Data, String)
public String getTemplateUsage(Class<?> pubClass, String usage)
TemplatePolicyFilter
getTemplateUsage
in interface TemplatePolicyFilter
pubClass
- the class of the publicationusage
- is the current usage
TemplatePolicyFilter.getTemplateUsage(Class, String)
public String getSkinTemplateUsage(Data data, String usage)
TemplatePolicyFilter
getSkinTemplateUsage
in interface TemplatePolicyFilter
data
- the working datausage
- is the current usage
TemplatePolicyFilter.getSkinTemplateUsage(Data, String)
public String getInnerClasses(PortalElement portlet)
TemplatePolicyFilter
getInnerClasses
in interface TemplatePolicyFilter
portlet
- the working PortalElement
TemplatePolicyFilter.getInnerClasses(PortalElement)
public String getOutterClasses(PortalElement portlet)
TemplatePolicyFilter
getOutterClasses
in interface TemplatePolicyFilter
portlet
- the working PortalElement
TemplatePolicyFilter.getOutterClasses(PortalElement)
public String getInnerStyles(PortalElement portlet)
TemplatePolicyFilter
getInnerStyles
in interface TemplatePolicyFilter
portlet
- the working PortalElement
TemplatePolicyFilter.getInnerStyles(PortalElement)
public String getOutterStyles(PortalElement portlet)
TemplatePolicyFilter
getOutterStyles
in interface TemplatePolicyFilter
portlet
- the working PortalElement
TemplatePolicyFilter.getOutterStyles(PortalElement)
public void getCssFiles(List<String> jcmsChoice)
TemplatePolicyFilter
getCssFiles
in interface TemplatePolicyFilter
jcmsChoice
- files selected by JCMSTemplatePolicyFilter.getCssFiles(List)
public String[] getConditionLabels(String[] labels, Class<? extends PortalElement> portlet, String userLang)
TemplatePolicyFilter
getConditionLabels
in interface TemplatePolicyFilter
labels
- String[] I18N array of labelsportlet
- the portlet classuserLang
- the lang of the user
TemplatePolicyFilter.getConditionLabels(String[], Class, String)
public String[] getConditionValues(String[] values, Class<? extends PortalElement> portlet)
TemplatePolicyFilter
getConditionValues
in interface TemplatePolicyFilter
values
- String[] of valuesportlet
- he portlet class
TemplatePolicyFilter.getConditionValues(String[], Class)
public void handleCondition(String[] conditions)
TemplatePolicyFilter
handleCondition
in interface TemplatePolicyFilter
conditions
- String array of codition for the given portletTemplatePolicyFilter.handleCondition(String[])
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |