info.magnolia.module.admininterface
Class DialogHandlerManager

java.lang.Object
  extended by info.magnolia.cms.beans.config.ObservedManager
      extended by info.magnolia.module.admininterface.DialogHandlerManager

public class DialogHandlerManager
extends ObservedManager

Manages all the dialog handlers.

Author:
philipp

Field Summary
 
Fields inherited from class info.magnolia.cms.beans.config.ObservedManager
log, registeredUUIDs
 
Constructor Summary
DialogHandlerManager()
           
 
Method Summary
protected  void collectDialogNodes(Content current, List<Content> dialogNodes)
           
 Dialog getDialog(String dialogName)
          Caution: use this method with care, as it creates an Dialog instance having ServletRequest and -Response as well as StorageNode being null.
 Content getDialogConfigNode(String dialogName)
          Deprecated. since 4.3.2, is obsolete since fix for MAGNOLIA-2907
 DialogMVCHandler getDialogHandler(String name, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
static DialogHandlerManager getInstance()
           
protected  DialogMVCHandler instantiateHandler(String name, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object[] handlerConfig)
           
protected  boolean isDialogControlNode(Content node)
           
protected  boolean isDialogNode(Content node)
           
protected  void onClear()
          The implementor should clear everything.
protected  void onRegister(Content node)
          register the dialogs from the config.
protected  void registerDialogHandler(String name, Class<? extends DialogMVCHandler> dialogHandler, Content configNode)
           
 
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

DialogHandlerManager

public DialogHandlerManager()
Method Detail

onRegister

protected void onRegister(Content node)
register the dialogs from the config.

Specified by:
onRegister in class ObservedManager

onClear

protected void onClear()
Description copied from class: ObservedManager
The implementor should clear everything. If needed the nodes will get registered.

Specified by:
onClear in class ObservedManager

registerDialogHandler

protected void registerDialogHandler(String name,
                                     Class<? extends DialogMVCHandler> dialogHandler,
                                     Content configNode)

getDialogConfigNode

@Deprecated
public Content getDialogConfigNode(String dialogName)
Deprecated. since 4.3.2, is obsolete since fix for MAGNOLIA-2907


getDialogHandler

public DialogMVCHandler getDialogHandler(String name,
                                         javax.servlet.http.HttpServletRequest request,
                                         javax.servlet.http.HttpServletResponse response)

getDialog

public Dialog getDialog(String dialogName)
                 throws javax.jcr.RepositoryException
Caution: use this method with care, as it creates an Dialog instance having ServletRequest and -Response as well as StorageNode being null.

Throws:
javax.jcr.RepositoryException

instantiateHandler

protected DialogMVCHandler instantiateHandler(String name,
                                              javax.servlet.http.HttpServletRequest request,
                                              javax.servlet.http.HttpServletResponse response,
                                              Object[] handlerConfig)

collectDialogNodes

protected void collectDialogNodes(Content current,
                                  List<Content> dialogNodes)
                           throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

isDialogNode

protected boolean isDialogNode(Content node)
                        throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

isDialogControlNode

protected boolean isDialogControlNode(Content node)
                               throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

getInstance

public static DialogHandlerManager getInstance()
Returns:
Returns the instance.


Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.