info.magnolia.module.blossom.paragraph
Class DefaultBlossomParagraphRegistry

java.lang.Object
  extended by info.magnolia.module.blossom.paragraph.DefaultBlossomParagraphRegistry
All Implemented Interfaces:
BlossomParagraphRegistry, org.springframework.beans.factory.InitializingBean

public class DefaultBlossomParagraphRegistry
extends Object
implements BlossomParagraphRegistry, org.springframework.beans.factory.InitializingBean

Default implementation of BlossomParagraphRegistry.

Since:
0.5

Constructor Summary
DefaultBlossomParagraphRegistry()
           
 
Method Summary
protected  void addParagraph(BlossomParagraphDescription description)
           
 void afterPropertiesSet()
           
 String getHandlerPathNodeDataName()
           
 BlossomParagraphDescription getParagraph(info.magnolia.cms.core.Content content)
           
 BlossomParagraphDescription getParagraph(info.magnolia.cms.core.Content content, String paragraphName)
           
 BlossomParagraphDescription getParagraph(String name)
           
 ConcurrentMap<String,BlossomParagraphDescription> getParagraphs()
           
 String getPlaceholderParagraphName()
           
protected  void registerAnonymousDialog(Object handler, BlossomParagraphDescription description)
           
 void registerParagraph(BlossomDispatcher dispatcher, Object handler, String handlerPath)
           
 void setDescriptionBuilder(ParagraphDescriptionBuilder descriptionBuilder)
           
 void setHandlerPathNodeDataName(String handlerPathNodeDataName)
           
 void setPlaceholderParagraphName(String placeholderParagraphName)
           
protected  void writeParagraphDefinition(BlossomParagraphDescription description)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultBlossomParagraphRegistry

public DefaultBlossomParagraphRegistry()
Method Detail

setDescriptionBuilder

public void setDescriptionBuilder(ParagraphDescriptionBuilder descriptionBuilder)

getHandlerPathNodeDataName

public String getHandlerPathNodeDataName()

setHandlerPathNodeDataName

public void setHandlerPathNodeDataName(String handlerPathNodeDataName)

getPlaceholderParagraphName

public String getPlaceholderParagraphName()

setPlaceholderParagraphName

public void setPlaceholderParagraphName(String placeholderParagraphName)

getParagraph

public BlossomParagraphDescription getParagraph(String name)
Specified by:
getParagraph in interface BlossomParagraphRegistry

getParagraph

public BlossomParagraphDescription getParagraph(info.magnolia.cms.core.Content content)
                                         throws javax.jcr.RepositoryException
Specified by:
getParagraph in interface BlossomParagraphRegistry
Throws:
javax.jcr.RepositoryException

getParagraph

public BlossomParagraphDescription getParagraph(info.magnolia.cms.core.Content content,
                                                String paragraphName)
                                         throws javax.jcr.RepositoryException
Specified by:
getParagraph in interface BlossomParagraphRegistry
Throws:
javax.jcr.RepositoryException

getParagraphs

public ConcurrentMap<String,BlossomParagraphDescription> getParagraphs()
Specified by:
getParagraphs in interface BlossomParagraphRegistry

registerParagraph

public void registerParagraph(BlossomDispatcher dispatcher,
                              Object handler,
                              String handlerPath)
                       throws javax.jcr.RepositoryException
Specified by:
registerParagraph in interface BlossomParagraphRegistry
Throws:
javax.jcr.RepositoryException

registerAnonymousDialog

protected void registerAnonymousDialog(Object handler,
                                       BlossomParagraphDescription description)
                                throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

addParagraph

protected void addParagraph(BlossomParagraphDescription description)
                     throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

writeParagraphDefinition

protected void writeParagraphDefinition(BlossomParagraphDescription description)
                                 throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception


Copyright © 2009-2011 Magnolia International Ltd.. All Rights Reserved.