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 info.magnolia.cms.beans.config.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(info.magnolia.cms.core.Content current, List<info.magnolia.cms.core.Content> dialogNodes)
           
 info.magnolia.cms.gui.dialog.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.
 info.magnolia.cms.core.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(info.magnolia.cms.core.Content node)
           
protected  boolean isDialogNode(info.magnolia.cms.core.Content node)
           
protected  void onClear()
           
protected  void onRegister(info.magnolia.cms.core.Content node)
          register the dialogs from the config.
protected  void registerDialogHandler(String name, Class<? extends DialogMVCHandler> dialogHandler, info.magnolia.cms.core.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(info.magnolia.cms.core.Content node)
register the dialogs from the config.

Specified by:
onRegister in class info.magnolia.cms.beans.config.ObservedManager

onClear

protected void onClear()
Specified by:
onClear in class info.magnolia.cms.beans.config.ObservedManager

registerDialogHandler

protected void registerDialogHandler(String name,
                                     Class<? extends DialogMVCHandler> dialogHandler,
                                     info.magnolia.cms.core.Content configNode)

getDialogConfigNode

public info.magnolia.cms.core.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 info.magnolia.cms.gui.dialog.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(info.magnolia.cms.core.Content current,
                                  List<info.magnolia.cms.core.Content> dialogNodes)
                           throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

isDialogNode

protected boolean isDialogNode(info.magnolia.cms.core.Content node)
                        throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

isDialogControlNode

protected boolean isDialogControlNode(info.magnolia.cms.core.Content node)
                               throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

getInstance

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


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