|
||||||||||
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(info.magnolia.cms.core.Content node)
|
Template |
getDefaultTemplate(info.magnolia.cms.core.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()
|
protected void |
onRegister(info.magnolia.cms.core.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(info.magnolia.cms.core.Content node)
onRegister
in class info.magnolia.cms.beans.config.ObservedManager
protected void onClear()
onClear
in class info.magnolia.cms.beans.config.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(info.magnolia.cms.core.Content node)
public Iterator<Template> getAvailableTemplates()
public Template getDefaultTemplate(info.magnolia.cms.core.Content node)
public static TemplateManager getInstance()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |