1 28 29 30 package com.opencms.template; 31 32 import org.opencms.file.CmsObject; 33 import org.opencms.main.CmsException; 34 35 import com.opencms.template.cache.A_CmsElement; 36 37 import java.util.Hashtable ; 38 39 49 public interface I_CmsTemplate { 50 51 69 public byte[] getContent(CmsObject cms, String templateFile, String elementName, Hashtable parameters) throws CmsException; 70 71 84 public byte[] getContent(CmsObject cms, String templateFile, String elementName, Hashtable parameters, String templateSelector) throws CmsException; 85 86 99 public Object getKey(CmsObject cms, String templateFile, Hashtable parameters, String templateSelector); 100 113 public boolean isCacheable(CmsObject cms, String templateFile, String elementName, Hashtable parameters, String templateSelector); 114 115 128 public boolean isProxyPrivateCacheable(CmsObject cms, String templateFile, String elementName, Hashtable parameters, String templateSelector); 129 130 143 public boolean isProxyPublicCacheable(CmsObject cms, String templateFile, String elementName, Hashtable parameters, String templateSelector); 144 145 165 public boolean isExportable(CmsObject cms, String templateFile, String elementName, Hashtable parameters, String templateSelector); 166 167 191 public boolean isStreamable(CmsObject cms, String templateFile, String elementName, Hashtable parameters, String templateSelector); 192 193 206 public CmsCacheDirectives collectCacheDirectives(CmsObject cms, String templateFile, String elementName, Hashtable parameters, String templateSelector); 207 208 212 public boolean isTemplateCacheSet(); 213 214 220 public void setTemplateCache(com.opencms.template.I_CmsTemplateCache c); 221 222 232 public boolean shouldReload(CmsObject cms, String templateFile, String elementName, Hashtable parameters, String templateSelector); 233 234 246 public A_CmsElement createElement(CmsObject cms, String templateFile, Hashtable parameters); 247 } 248 | Popular Tags |