|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.beans.config.ObservedManager info.magnolia.module.templating.TemplateManager
public class TemplateManager
Manages the templates of the system.
Field Summary |
---|
Fields inherited from class info.magnolia.cms.beans.config.ObservedManager |
---|
log, registeredUUIDs |
Constructor Summary | |
---|---|
TemplateManager()
|
Method Summary | |
---|---|
Iterator<Template> |
getAvailableTemplates()
Get templates collection. |
Iterator<Template> |
getAvailableTemplates(Content node)
|
Template |
getDefaultTemplate(Content node)
Get the Template that could be used for the provided Content as a default. |
Template |
getInfo(String key)
Deprecated. since 4.0 Use getTemplateDefinition(String) instead |
Template |
getInfo(String key,
String extension)
Returns the cached content of the requested template. |
static TemplateManager |
getInstance()
|
Template |
getTemplateDefinition(String key)
Returns the cached content of the requested template. |
protected void |
onClear()
The implementor should clear everything. |
protected void |
onRegister(Content node)
Called by the ObservedManager. |
Methods inherited from class info.magnolia.cms.beans.config.ObservedManager |
---|
clear, register, reload, reload |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TemplateManager()
Method Detail |
---|
protected void onRegister(Content node)
onRegister
in class ObservedManager
protected void onClear()
ObservedManager
onClear
in class ObservedManager
@Deprecated public Template getInfo(String key)
getTemplateDefinition(String)
instead
public Template getTemplateDefinition(String key)
public Template getInfo(String key, String extension)
public Iterator<Template> getAvailableTemplates(Content node)
public Iterator<Template> getAvailableTemplates()
public Template getDefaultTemplate(Content node)
public static TemplateManager getInstance()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |