Liferay 7.0-ce-a2

com.liferay.portal.template
Class AbstractTemplate

java.lang.Object
  extended by com.liferay.portal.template.AbstractTemplate
All Implemented Interfaces:
Template, Map<String,Object>

public abstract class AbstractTemplate
extends Object
implements Template


Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
protected  Map<String,Object> context
           
protected  TemplateResource errorTemplateResource
           
protected  TemplateResource templateResource
           
 
Constructor Summary
AbstractTemplate(TemplateResource templateResource, TemplateResource errorTemplateResource, Map<String,Object> context, TemplateContextHelper templateContextHelper, String templateManagerName, long interval)
           
 
Method Summary
 void clear()
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
 void doProcessTemplate(Writer writer)
           
 Set<Map.Entry<String,Object>> entrySet()
           
 Object get(Object key)
           
 Object get(String key)
           
 String[] getKeys()
           
protected  String getTemplateResourceUUID(TemplateResource templateResource)
           
protected abstract  void handleException(Exception exception, Writer writer)
           
 boolean isEmpty()
           
 Set<String> keySet()
           
 void prepare(javax.servlet.http.HttpServletRequest request)
           
protected abstract  void processTemplate(TemplateResource templateResource, Writer writer)
           
 void processTemplate(Writer writer)
           
 Object put(String key, Object value)
           
 void putAll(Map<? extends String,? extends Object> map)
           
 Object remove(Object key)
           
 int size()
           
 Collection<Object> values()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

context

protected Map<String,Object> context

errorTemplateResource

protected TemplateResource errorTemplateResource

templateResource

protected TemplateResource templateResource
Constructor Detail

AbstractTemplate

public AbstractTemplate(TemplateResource templateResource,
                        TemplateResource errorTemplateResource,
                        Map<String,Object> context,
                        TemplateContextHelper templateContextHelper,
                        String templateManagerName,
                        long interval)
Method Detail

clear

public void clear()
Specified by:
clear in interface Map<String,Object>

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map<String,Object>

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface Map<String,Object>

doProcessTemplate

public void doProcessTemplate(Writer writer)
                       throws Exception
Specified by:
doProcessTemplate in interface Template
Throws:
Exception

entrySet

public Set<Map.Entry<String,Object>> entrySet()
Specified by:
entrySet in interface Map<String,Object>

get

public Object get(Object key)
Specified by:
get in interface Map<String,Object>

get

public Object get(String key)
Specified by:
get in interface Template

getKeys

public String[] getKeys()
Specified by:
getKeys in interface Template

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map<String,Object>

keySet

public Set<String> keySet()
Specified by:
keySet in interface Map<String,Object>

prepare

public void prepare(javax.servlet.http.HttpServletRequest request)
Specified by:
prepare in interface Template

processTemplate

public void processTemplate(Writer writer)
                     throws TemplateException
Specified by:
processTemplate in interface Template
Throws:
TemplateException

put

public Object put(String key,
                  Object value)
Specified by:
put in interface Map<String,Object>

putAll

public void putAll(Map<? extends String,? extends Object> map)
Specified by:
putAll in interface Map<String,Object>

remove

public Object remove(Object key)
Specified by:
remove in interface Map<String,Object>

size

public int size()
Specified by:
size in interface Map<String,Object>

values

public Collection<Object> values()
Specified by:
values in interface Map<String,Object>

getTemplateResourceUUID

protected String getTemplateResourceUUID(TemplateResource templateResource)

handleException

protected abstract void handleException(Exception exception,
                                        Writer writer)
                                 throws TemplateException
Throws:
TemplateException

processTemplate

protected abstract void processTemplate(TemplateResource templateResource,
                                        Writer writer)
                                 throws Exception
Throws:
Exception

Liferay 7.0-ce-a2