|
||||||||||
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 | |
---|---|
java.util.Iterator<Template> |
getAvailableTemplates()
Get templates collection. |
java.util.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(java.lang.String key)
Deprecated. since 4.0 Use getTemplateDefinition(String) instead |
Template |
getInfo(java.lang.String key,
java.lang.String extension)
Returns the cached content of the requested template. |
static TemplateManager |
getInstance()
|
Template |
getTemplateDefinition(java.lang.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(java.lang.String key)
getTemplateDefinition(String)
instead
public Template getTemplateDefinition(java.lang.String key)
public Template getInfo(java.lang.String key, java.lang.String extension)
public java.util.Iterator<Template> getAvailableTemplates(Content node)
public java.util.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 |