public interface TemplateService extends Service(Code)
This service provides a method for mapping templates to their
appropriate Screens or Navigations. It also allows templates to
define a layout/navigations/screen modularization within the
template structure. It also performs caching if turned on in the
properties file.
author: John D. McNally author: Jason van Zyl author: Daniel Rall author: Ilkka Priha version: $Id: TemplateService.java 534527 2007-05-02 16:10:59Z tv $
getDefaultLayoutName(String template) Get the default layout module name of the template engine
service corresponding to the template name extension of
the named template.
Parameters: template - The template name.
getDefaultLayoutName(RunData data) Find the default layout module name for the given request.
Parameters: data - The encapsulation of the request to retrieve thedefault layout for.
getDefaultLayoutTemplateName(String template) Get the default layout template name of the template engine
service corresponding to the template name extension of
the named template.
Parameters: template - The template name.
getDefaultNavigationName(String template) Get the default navigation module name of the template engine
service corresponding to the template name extension of
the named template.
Parameters: template - The template name.
getDefaultPageName(String template) Get the default page module name of the template engine
service corresponding to the template name extension of
the named template.
Parameters: template - The template name.
getDefaultPageName(RunData data) Find the default page module name for the given request.
Parameters: data - The encapsulation of the request to retrieve thedefault page for.
getDefaultScreenName(String template) Get the default screen module name of the template engine
service corresponding to the template name extension of
the named template.
Parameters: template - The template name.
getLayoutName(String template) Locate and return the name of the layout module to be used
with the named layout template.
Parameters: template - The layout template name.
getLayoutTemplateName(String template) Locate and return the name of the layout template corresponding
to the given screen template name parameter.
Parameters: template - The template name parameter.
getNavigationName(String name) Locate and return the name of the navigation module to be used
with the named navigation template.
Parameters: template - The navigation template name.
getNavigationTemplateName(String template) Locate and return the name of the navigation template corresponding
to the given template name parameter.
Parameters: template - The template name parameter.
getScreenName(String template) Locate and return the name of the screen module to be used
with the named screen template.
Parameters: template - The screen template name.
getScreenTemplateName(String template) Locate and return the name of the screen template corresponding
to the given template name parameter.
Parameters: template - The template name parameter.
translateTemplatePaths(String[] templatePaths) Translates the supplied template paths into their Turbine-canonical
equivalent (probably absolute paths).
Parameters: templatePaths - An array of template paths.
Get the default layout module name of the template engine
service corresponding to the default template name extension.
The default layout module name.
Get the default layout module name of the template engine
service corresponding to the template name extension of
the named template.
Parameters: template - The template name. The default layout module name.
Find the default layout module name for the given request.
Parameters: data - The encapsulation of the request to retrieve thedefault layout for. The default layout module name.
Get the default layout template name of the template engine
service corresponding to the default template name extension.
The default layout template name.
Get the default layout template name of the template engine
service corresponding to the template name extension of
the named template.
Parameters: template - The template name. The default layout template name.
Get the default navigation module name of the template engine
service corresponding to the default template name extension.
The default navigation module name.
Get the default navigation module name of the template engine
service corresponding to the template name extension of
the named template.
Parameters: template - The template name. The default navigation module name.
Get the default page module name of the template engine
service corresponding to the template name extension of
the named template.
Parameters: template - The template name. The default page module name.
Find the default page module name for the given request.
Parameters: data - The encapsulation of the request to retrieve thedefault page for. The default page module name.
Get the default screen module name of the template engine
service corresponding to the default template name extension.
The default screen module name.
Get the default screen module name of the template engine
service corresponding to the template name extension of
the named template.
Parameters: template - The template name. The default screen module name.
Locate and return the name of the layout module to be used
with the named layout template.
Parameters: template - The layout template name. The found layout module name. exception: Exception - , a generic exception.
Locate and return the name of the layout template corresponding
to the given screen template name parameter.
Parameters: template - The template name parameter. The found screen template name. exception: Exception - , a generic exception.
Locate and return the name of the navigation module to be used
with the named navigation template.
Parameters: template - The navigation template name. The found navigation module name. exception: Exception - , a generic exception.
Locate and return the name of the navigation template corresponding
to the given template name parameter.
Parameters: template - The template name parameter. The found navigation template name. exception: Exception - , a generic exception.
Locate and return the name of the screen module to be used
with the named screen template.
Parameters: template - The screen template name. The found screen module name. exception: Exception - , a generic exception.
Locate and return the name of the screen template corresponding
to the given template name parameter.
Parameters: template - The template name parameter. The found screen template name. exception: Exception - , a generic exception.
Delegates to the appropriate
org.apache.turbine.services.template.TemplateEngineService to
check the existance of the specified template.
Parameters: template - The template to check for the existance of. Parameters: templatePaths - The paths to check for the template.
Translates the supplied template paths into their Turbine-canonical
equivalent (probably absolute paths).
Parameters: templatePaths - An array of template paths. An array of translated template paths.