info.magnolia.module.data.dialogs
Class DataDialog

java.lang.Object
  extended by info.magnolia.cms.servlets.MVCServletHandlerImpl
      extended by info.magnolia.module.admininterface.DialogMVCHandler
          extended by info.magnolia.module.admininterface.dialogs.ConfiguredDialog
              extended by info.magnolia.module.data.dialogs.DataDialog
All Implemented Interfaces:
info.magnolia.cms.servlets.MVCServletHandler
Direct Known Subclasses:
TypeSelectDataDialog

public class DataDialog
extends info.magnolia.module.admininterface.dialogs.ConfiguredDialog

This dialog manages the unique naming of the new item. Also defines the nodetype of the new content.

Version:
$Revision$ ($Author$)
Author:
Philipp Bracher, Bert Leunis (Neteffect, Amsterdam)

Field Summary
 
Fields inherited from class info.magnolia.module.admininterface.DialogMVCHandler
COMMAND_SAVE, COMMAND_SELECT_PARAGRAPH, COMMAND_SHOW_DIALOG, form, hm, locale, msgs, nodeName, params, path, repository, richE, richEPaste, storageNode, VIEW_CLOSE_WINDOW, VIEW_SHOW_DIALOG
 
Fields inherited from class info.magnolia.cms.servlets.MVCServletHandlerImpl
exception, request, response, VIEW_ERROR, VIEW_SUCCESS
 
Fields inherited from interface info.magnolia.cms.servlets.MVCServletHandler
VIEW_NOTHING
 
Constructor Summary
DataDialog(String name, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, info.magnolia.cms.core.Content configNode)
           
 
Method Summary
protected  void configureDialog(info.magnolia.cms.gui.dialog.Dialog dialog)
           
protected  info.magnolia.cms.gui.dialog.Dialog createDialog(info.magnolia.cms.core.Content configNode, info.magnolia.cms.core.Content storageNode)
           
 String getJsExecutedAfterSaving()
           
protected  String getNameField()
          the field to used to set the node name.
protected  String getNewNodeName()
          Return the name of the node.
protected  info.magnolia.cms.gui.dialog.Dialog internalCreateDialog(info.magnolia.cms.core.Content configNode, info.magnolia.cms.core.Content storageNode)
          Extension hook for allowing subclasses to customize how the dialog is created and initialized.
protected  boolean onPostSave(info.magnolia.module.admininterface.SaveHandler handler)
           
protected  boolean onPreSave(info.magnolia.module.admininterface.SaveHandler handler)
          Overridden to force creation if the node does not exist.
 
Methods inherited from class info.magnolia.module.admininterface.dialogs.ConfiguredDialog
getConfigNode, getConfiguredDialog, getConfiguredDialog
 
Methods inherited from class info.magnolia.module.admininterface.DialogMVCHandler
configureSaveHandler, createSaveHandler, getCommand, getDialog, getItemType, getRepository, getSaveHandler, getStorageNode, onSave, onSaveFailed, removeSessionAttributes, renderHtml, save, setDialog, setItemType, setJsExecutedAfterSaving, showDialog, validate
 
Methods inherited from class info.magnolia.cms.servlets.MVCServletHandlerImpl
execute, getException, getExceptionStackTrace, getName, getRequest, getResponse, init, populateFromRequest, setCommand, setRequest, setResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataDialog

public DataDialog(String name,
                  javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response,
                  info.magnolia.cms.core.Content configNode)
Method Detail

createDialog

protected info.magnolia.cms.gui.dialog.Dialog createDialog(info.magnolia.cms.core.Content configNode,
                                                           info.magnolia.cms.core.Content storageNode)
                                                    throws javax.jcr.RepositoryException
Overrides:
createDialog in class info.magnolia.module.admininterface.DialogMVCHandler
Throws:
javax.jcr.RepositoryException

internalCreateDialog

protected info.magnolia.cms.gui.dialog.Dialog internalCreateDialog(info.magnolia.cms.core.Content configNode,
                                                                   info.magnolia.cms.core.Content storageNode)
                                                            throws javax.jcr.RepositoryException
Extension hook for allowing subclasses to customize how the dialog is created and initialized.

Throws:
javax.jcr.RepositoryException

onPreSave

protected boolean onPreSave(info.magnolia.module.admininterface.SaveHandler handler)
Overridden to force creation if the node does not exist.

Overrides:
onPreSave in class info.magnolia.module.admininterface.DialogMVCHandler

onPostSave

protected boolean onPostSave(info.magnolia.module.admininterface.SaveHandler handler)
Overrides:
onPostSave in class info.magnolia.module.admininterface.DialogMVCHandler

getNewNodeName

protected String getNewNodeName()
Return the name of the node.


getNameField

protected String getNameField()
the field to used to set the node name.


getJsExecutedAfterSaving

public String getJsExecutedAfterSaving()
Overrides:
getJsExecutedAfterSaving in class info.magnolia.module.admininterface.DialogMVCHandler

configureDialog

protected void configureDialog(info.magnolia.cms.gui.dialog.Dialog dialog)
Overrides:
configureDialog in class info.magnolia.module.admininterface.DialogMVCHandler


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