1 16 17 package org.apache.jetspeed.services; 18 19 import org.apache.jetspeed.services.template.TemplateLocatorService; 20 import org.apache.turbine.services.TurbineServices; 21 import org.apache.turbine.util.RunData; 22 23 import java.util.Locale ; 24 25 36 public class TemplateLocator 37 { 38 42 private static TemplateLocatorService getService() 43 { 44 return (TemplateLocatorService)TurbineServices 45 .getInstance() 46 .getService(TemplateLocatorService.SERVICE_NAME); 47 } 48 49 52 public static String locateScreenTemplate(RunData data, String template) 53 { 54 return getService().locateScreenTemplate(data, template); 55 } 56 57 60 public static String locateLayoutTemplate(RunData data, String template) 61 { 62 return getService().locateLayoutTemplate(data, template); 63 } 64 65 68 public static String locatePortletTemplate(RunData data, String template) 69 { 70 return getService().locatePortletTemplate(data, template); 71 } 72 73 76 public static String locateControlTemplate(RunData data, String template) 77 { 78 return getService().locateControlTemplate(data, template); 79 } 80 81 84 public static String locateControllerTemplate(RunData data, String template) 85 { 86 return getService().locateControllerTemplate(data, template); 87 } 88 89 92 public static String locateNavigationTemplate(RunData data, String template) 93 { 94 return getService().locateNavigationTemplate(data, template); 95 } 96 97 100 public static String locateEmailTemplate(RunData data, String template) 101 { 102 return getService().locateEmailTemplate(data, template); 103 } 104 105 106 109 public static String locateEmailTemplate(RunData data, String template, Locale locale) 110 { 111 return getService().locateEmailTemplate(data, template, locale); 112 } 113 114 117 public static String locateParameterTemplate(RunData data, String template) 118 { 119 return getService().locateParameterTemplate(data, template); 120 } 121 122 } 123 | Popular Tags |