com.anwrt.anycontent.plugins.web.repository.impl
Class AutomaticTemplatesHandler

java.lang.Object
  extended bycom.anwrt.anycontent.plugins.web.repository.impl.AutomaticTemplatesHandler
All Implemented Interfaces:
TemplatesHandler

public class AutomaticTemplatesHandler
extends java.lang.Object
implements TemplatesHandler

This implementation read the list of all existing templates


Field Summary
 
Fields inherited from interface com.anwrt.anycontent.plugins.web.repository.action.TemplatesHandler
ROLE
 
Constructor Summary
AutomaticTemplatesHandler()
           
 
Method Summary
 void contextualize(org.apache.avalon.framework.context.Context avalonContext)
           
 java.lang.String[] getTemplates(Page page)
          Returns the list of available templates for a given Page.
 java.lang.String[] getTemplatesForChildren(Page page, java.lang.String childPageTitle)
          Returns the list of available templates for the child with a given title of a given Page.
 java.lang.String[] getTemplatesForChildren(Sitemap sitemap, java.lang.String childPageTitle)
          Returns the list of available templates for a root Page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutomaticTemplatesHandler

public AutomaticTemplatesHandler()
Method Detail

getTemplates

public java.lang.String[] getTemplates(Page page)
Description copied from interface: TemplatesHandler
Returns the list of available templates for a given Page.

Specified by:
getTemplates in interface TemplatesHandler
Parameters:
page - the Page to consider
Returns:
the list of available templates for a given Page

getTemplatesForChildren

public java.lang.String[] getTemplatesForChildren(Page page,
                                                  java.lang.String childPageTitle)
Description copied from interface: TemplatesHandler
Returns the list of available templates for the child with a given title of a given Page.

Specified by:
getTemplatesForChildren in interface TemplatesHandler
Parameters:
page - the Page to consider
childPageTitle - the child page title
Returns:
the list of available templates for a given Page

getTemplatesForChildren

public java.lang.String[] getTemplatesForChildren(Sitemap sitemap,
                                                  java.lang.String childPageTitle)
Description copied from interface: TemplatesHandler
Returns the list of available templates for a root Page.

Specified by:
getTemplatesForChildren in interface TemplatesHandler
Parameters:
sitemap - the sitemap to consider
childPageTitle - the page title
Returns:
the list of available templates for a root Page

contextualize

public void contextualize(org.apache.avalon.framework.context.Context avalonContext)
                   throws ContextException
Throws:
ContextException


Copyright © 2006 Anyware Technologies. All Rights Reserved.