info.magnolia.module.admininterface
Class DialogHandlerManager

java.lang.Object
  extended by info.magnolia.module.admininterface.DialogHandlerManager

@Singleton
public class DialogHandlerManager
extends Object

Manages all the dialog handlers.


Constructor Summary
DialogHandlerManager()
           
 
Method Summary
 Dialog getDialog(String id)
          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 id)
          Deprecated. since 4.3.2, is obsolete since fix for MAGNOLIA-2907
 DialogMVCHandler getDialogHandler(String id, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
static DialogHandlerManager getInstance()
           
 void register(DialogHandlerProvider provider)
           
 void unregister(String id)
           
 Set<String> unregisterAndRegister(Set<String> registeredIds, List<DialogHandlerProvider> providers)
           
 
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

register

public void register(DialogHandlerProvider provider)

unregister

public void unregister(String id)

unregisterAndRegister

public Set<String> unregisterAndRegister(Set<String> registeredIds,
                                         List<DialogHandlerProvider> providers)

getDialogConfigNode

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


getDialogHandler

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

getDialog

public Dialog getDialog(String id)
                 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

getInstance

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


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.