public class BasicChannelPolicyFilter extends AbstractPolicyFilter implements ChannelPolicyFilter, PluginComponent
ChannelPolicyFilter| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
REVISION |
order| Constructor and Description |
|---|
BasicChannelPolicyFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkJAVAMetaTemplates(java.util.Map templateMap,
java.lang.String className,
org.jdom.Element typeElt,
boolean isExtension)
This method is a Hook to generate custom JAVA templates for a given type or extension
The templateMap contains the template file to generate.
|
void |
checkJSPMetaTemplates(java.util.Map templateMap,
java.lang.String className,
org.jdom.Element typeElt,
boolean isExtension)
This method is a Hook to generate custom JSP templates for a given type or extension
The templateMap contains the template file to generate.
|
Data |
getData(java.lang.String id)
Retrieve a Data from its id.
|
boolean |
init(Plugin plugin)
Initialize the component with the given plugin configuration
|
boolean |
isCompatibleWorkflow(Workflow workflow,
java.lang.Class typeClass)
This method is a Hook to indicate if a
Workflow is compatible with a type class |
compareTo, equals, getOrder, setOrderpublic static final java.lang.String REVISION
public boolean init(Plugin plugin)
PluginComponentinit in interface PluginComponentplugin - the calling pluginPluginComponent.init(Plugin)public void checkJSPMetaTemplates(java.util.Map templateMap,
java.lang.String className,
org.jdom.Element typeElt,
boolean isExtension)
ChannelPolicyFilterThis method is a Hook to generate custom JSP templates for a given type or extension
The templateMap contains the template file to generate.
checkJSPMetaTemplates in interface ChannelPolicyFiltertemplateMap - The map of key/value = file/templateclassName - The classname of the processing typetypeElt - The XML Element of the processing typeisExtension - boolean true if the type is an Extension
Called in private method com.jalios.jcms.TypeProcessor#generateTypeJSP(String, Element)ChannelPolicyFilter.checkJSPMetaTemplates(Map, String, Element, boolean)public void checkJAVAMetaTemplates(java.util.Map templateMap,
java.lang.String className,
org.jdom.Element typeElt,
boolean isExtension)
ChannelPolicyFilterThis method is a Hook to generate custom JAVA templates for a given type or extension
The templateMap contains the template file to generate.
checkJAVAMetaTemplates in interface ChannelPolicyFiltertemplateMap - The map of key/value = file/templateclassName - The classname of the processing typetypeElt - The XML Element of the processing typeisExtension - boolean true if the type is an Extension
Called in private method com.jalios.jcms.TypeProcessor#processTypes()ChannelPolicyFilter.checkJAVAMetaTemplates(Map, String, Element, boolean)public Data getData(java.lang.String id)
ChannelPolicyFilter
This method is invoked only when JCMS internal method could not find any
data associated with the specified id (and if no other ChannelPolicyFilter did return a Data).
May be invoked frequently !! Ensure high performance.
This hook can be implemented by plugins creating transient Data (e.g through QueryFilter).
Example :
public Data getData(String id) {
if (!id.startsWith("someprefix_") {
return null;
}
// perform data retrieval (preferably using a internal cache on your side)
// ...
}
getData in interface ChannelPolicyFilterid - the id to look for (never null)ChannelPolicyFilter.getData(String)public boolean isCompatibleWorkflow(Workflow workflow, java.lang.Class typeClass)
ChannelPolicyFilterThis method is a Hook to indicate if a Workflow is compatible with a type class
isCompatibleWorkflow in interface ChannelPolicyFilterworkflow - the Workflow to testtypeClass - the type ClassChannelPolicyFilter.isCompatibleWorkflow(Workflow, Class)Copyright © 2001-2010 Jalios SA. All Rights Reserved.