|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.turbine.services.BaseInitable
org.apache.turbine.services.BaseService
org.apache.turbine.services.TurbineBaseService
org.apache.jetspeed.services.template.JetspeedTemplateLocatorService
Implements all template location related operations. Template location algorithms are different from the Velocity template location, since Jetspeed has a specialized template directory structure. This is a fix to get us through unti the TurbineTemplateService can locate resources by NLS and mediatype. Then it can be removed
The directory structure is currently layout out in the following order: /templateType/mediaType/LanguageCode/CountryCode
Example: /screens/html/en/US/resource.vm
| Field Summary |
| Fields inherited from class org.apache.turbine.services.BaseService |
configuration, name, properties, serviceBroker |
| Fields inherited from class org.apache.turbine.services.BaseInitable |
initableBroker, isInitialized |
| Fields inherited from interface org.apache.jetspeed.services.template.TemplateLocatorService |
SERVICE_NAME |
| Constructor Summary | |
JetspeedTemplateLocatorService()
|
|
| Method Summary | |
void |
init()
|
void |
init(javax.servlet.ServletConfig conf)
This is the early initialization method called by the Turbine Service framework |
java.lang.String |
locateControllerTemplate(org.apache.turbine.util.RunData data,
java.lang.String template)
Locate a controller template using Jetspeed template location algorithm, searching by mediatype and language criteria extracted from the request state in rundata. |
java.lang.String |
locateControlTemplate(org.apache.turbine.util.RunData data,
java.lang.String template)
Locate a control template using Jetspeed template location algorithm, searching by mediatype and language criteria extracted from the request state in rundata. |
java.lang.String |
locateEmailTemplate(org.apache.turbine.util.RunData data,
java.lang.String template)
Locate an email template using Jetspeed template location algorithm, searching by mediatype and language criteria extracted from the request state in rundata. |
java.lang.String |
locateEmailTemplate(org.apache.turbine.util.RunData data,
java.lang.String template,
java.util.Locale locale)
Locate an email template using Jetspeed template location algorithm, searching by mediatype and language. |
java.lang.String |
locateLayoutTemplate(org.apache.turbine.util.RunData data,
java.lang.String template)
Locate a layout template using Jetspeed template location algorithm, searching by mediatype and language criteria extracted from the request state in rundata. |
java.lang.String |
locateNavigationTemplate(org.apache.turbine.util.RunData data,
java.lang.String template)
Locate a controller template using Jetspeed template location algorithm, searching by mediatype and language criteria extracted from the request state in rundata. |
java.lang.String |
locateParameterTemplate(org.apache.turbine.util.RunData data,
java.lang.String template)
Locate a parameter style template using Jetspeed template location algorithm, searching by mediatype and language criteria extracted from the request state in rundata. |
java.lang.String |
locatePortletTemplate(org.apache.turbine.util.RunData data,
java.lang.String template)
Locate a portlet template using Jetspeed template location algorithm, searching by mediatype and language criteria extracted from the request state in rundata. |
java.lang.String |
locateScreenTemplate(org.apache.turbine.util.RunData data,
java.lang.String template)
Locate a screen template using Jetspeed template location algorithm, searching by mediatype and language criteria extracted from the request state in rundata. |
void |
shutdown()
This is the shutdown method called by the Turbine Service framework |
boolean |
templateExists(java.lang.String templateKey,
boolean useNameCache)
Checks for the existence of a template resource given a key. |
| Methods inherited from class org.apache.turbine.services.TurbineBaseService |
init, init |
| Methods inherited from class org.apache.turbine.services.BaseService |
getConfiguration, getName, getProperties, getServiceBroker, setName, setServiceBroker |
| Methods inherited from class org.apache.turbine.services.BaseInitable |
getInit, getInitableBroker, setInit, setInitableBroker |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.turbine.services.Service |
getConfiguration, getName, getProperties, setName, setServiceBroker |
| Methods inherited from interface org.apache.turbine.services.Initable |
getInit, init, setInitableBroker |
| Constructor Detail |
public JetspeedTemplateLocatorService()
| Method Detail |
public void init(javax.servlet.ServletConfig conf)
throws org.apache.turbine.services.InitializationException
Service framework
conf - The ServletConfig
throws - a InitializationException if the service
fails to initialize
org.apache.turbine.services.InitializationException
public void init()
throws org.apache.turbine.services.InitializationException
init in interface org.apache.turbine.services.Initableorg.apache.turbine.services.InitializationExceptionpublic void shutdown()
Service framework
shutdown in interface org.apache.turbine.services.Initable
public java.lang.String locateScreenTemplate(org.apache.turbine.util.RunData data,
java.lang.String template)
locateScreenTemplate in interface TemplateLocatorServicedata - The rundata for the request.template - The name of the template.
public java.lang.String locateLayoutTemplate(org.apache.turbine.util.RunData data,
java.lang.String template)
locateLayoutTemplate in interface TemplateLocatorServicedata - The rundata for the request.template - The name of the template.
public java.lang.String locateNavigationTemplate(org.apache.turbine.util.RunData data,
java.lang.String template)
locateNavigationTemplate in interface TemplateLocatorServicedata - The rundata for the request.template - The name of the template.
public java.lang.String locatePortletTemplate(org.apache.turbine.util.RunData data,
java.lang.String template)
locatePortletTemplate in interface TemplateLocatorServicedata - The rundata for the request.template - The name of the template.
public java.lang.String locateControlTemplate(org.apache.turbine.util.RunData data,
java.lang.String template)
locateControlTemplate in interface TemplateLocatorServicedata - The rundata for the request.template - The name of the template.
public java.lang.String locateControllerTemplate(org.apache.turbine.util.RunData data,
java.lang.String template)
locateControllerTemplate in interface TemplateLocatorServicedata - The rundata for the request.template - The name of the template.
public java.lang.String locateEmailTemplate(org.apache.turbine.util.RunData data,
java.lang.String template)
locateEmailTemplate in interface TemplateLocatorServicedata - The rundata for the request.template - The name of the template.
public java.lang.String locateEmailTemplate(org.apache.turbine.util.RunData data,
java.lang.String template,
java.util.Locale locale)
locateEmailTemplate in interface TemplateLocatorServicedata - The rundata for the request.template - The name of the template.locale - The name of the language.
public java.lang.String locateParameterTemplate(org.apache.turbine.util.RunData data,
java.lang.String template)
locateParameterTemplate in interface TemplateLocatorServicedata - The rundata for the request.template - The name of the template.
public boolean templateExists(java.lang.String templateKey,
boolean useNameCache)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||