|
||||||||||
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.ParagraphManager
public class ParagraphManager
Manages the paragraphs on the system. Modules can register the nodes where the paragraphs are defined.
Field Summary |
---|
Fields inherited from class info.magnolia.cms.beans.config.ObservedManager |
---|
log, registeredUUIDs |
Constructor Summary | |
---|---|
ParagraphManager()
|
Method Summary | |
---|---|
protected void |
addParagraphToCache(info.magnolia.cms.core.Content c)
Adds paragraph definition to ParagraphInfo cache. |
void |
addParagraphToCache(Paragraph paragraph)
|
Paragraph |
getInfo(String key)
Deprecated. since 4.0 Use getParagraphDefinition(String) instead |
static ParagraphManager |
getInstance()
Gets the current singleton instance. |
Paragraph |
getParagraphDefinition(String key)
Returns the cached content of the requested template. |
Map<String,Paragraph> |
getParagraphs()
Get a map of all registered paragraphs. |
void |
onClear()
|
protected void |
onRegister(info.magnolia.cms.core.Content node)
Register all the paragraphs under this and subnodes. |
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 ParagraphManager()
Method Detail |
---|
public static ParagraphManager getInstance()
public Paragraph getInfo(String key)
getParagraphDefinition(String)
instead
public Paragraph getParagraphDefinition(String key)
public Map<String,Paragraph> getParagraphs()
protected void onRegister(info.magnolia.cms.core.Content node)
onRegister
in class info.magnolia.cms.beans.config.ObservedManager
protected void addParagraphToCache(info.magnolia.cms.core.Content c)
public void addParagraphToCache(Paragraph paragraph)
paragraph
- public void onClear()
onClear
in class info.magnolia.cms.beans.config.ObservedManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |