info.magnolia.module.data.dialogs
Class TypeDialog
java.lang.Object
info.magnolia.cms.servlets.MVCServletHandlerImpl
info.magnolia.module.admininterface.DialogMVCHandler
info.magnolia.module.admininterface.dialogs.ConfiguredDialog
info.magnolia.module.data.dialogs.TypeDialog
- All Implemented Interfaces:
- info.magnolia.cms.servlets.MVCServletHandler
public class TypeDialog
- extends info.magnolia.module.admininterface.dialogs.ConfiguredDialog
Handles the configuration of dialogs/trees/commands belonging to the type that was created or updated.
- Version:
- $Revision$ ($Author$)
- Author:
- Philipp Bracher, Bert Leunis (Neteffect, Amsterdam)
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 |
TypeDialog(String name,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
info.magnolia.cms.core.Content configNode)
|
Method Summary |
protected void |
addCommand(info.magnolia.cms.core.Content commandsNode,
String name,
String clazz)
|
protected void |
configureDialog(info.magnolia.cms.core.Content type)
Creating or updating the dialog for editing instances of the type. |
protected void |
configureTree(info.magnolia.cms.core.Content type)
Creating or updating the trees for presenting the instances of the type. |
protected info.magnolia.cms.gui.dialog.Dialog |
createDialog(info.magnolia.cms.core.Content configNode,
info.magnolia.cms.core.Content storageNode)
|
static String |
getNodeDataValueFromAnyParent(info.magnolia.cms.core.Content parent,
String nodeDataName)
Get a String NodeDataValue from any parent. |
protected boolean |
onPostSave(info.magnolia.module.admininterface.SaveHandler handler)
Manages the creation of dialogs and trees for presenting/editing instances of the new type. |
protected boolean |
onPreSave(info.magnolia.module.admininterface.SaveHandler handler)
Overriden to force creation if the node does not exist. |
protected String |
onSaveFailed()
|
Methods inherited from class info.magnolia.module.admininterface.dialogs.ConfiguredDialog |
getConfigNode, getConfiguredDialog, getConfiguredDialog |
Methods inherited from class info.magnolia.module.admininterface.DialogMVCHandler |
configureDialog, configureSaveHandler, createSaveHandler, getCommand, getDialog, getItemType, getJsExecutedAfterSaving, getRepository, getSaveHandler, getStorageNode, onSave, 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 |
TypeDialog
public TypeDialog(String name,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
info.magnolia.cms.core.Content configNode)
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
getNodeDataValueFromAnyParent
public static String getNodeDataValueFromAnyParent(info.magnolia.cms.core.Content parent,
String nodeDataName)
- Get a String NodeDataValue from any parent.
- Parameters:
parent
-
- Returns:
- value or null
TODO move to utility class
onPreSave
protected boolean onPreSave(info.magnolia.module.admininterface.SaveHandler handler)
- Overriden 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)
- Manages the creation of dialogs and trees for presenting/editing instances of the new type.
- Overrides:
onPostSave
in class info.magnolia.module.admininterface.DialogMVCHandler
- See Also:
info.magnolia.module.admininterface.DialogMVCHandler#onPostSave(info.magnolia.cms.gui.control.Save)
onSaveFailed
protected String onSaveFailed()
- Overrides:
onSaveFailed
in class info.magnolia.module.admininterface.DialogMVCHandler
configureDialog
protected void configureDialog(info.magnolia.cms.core.Content type)
throws javax.jcr.RepositoryException
- Creating or updating the dialog for editing instances of the type.
- Parameters:
type
-
- Throws:
javax.jcr.RepositoryException
configureTree
protected void configureTree(info.magnolia.cms.core.Content type)
throws info.magnolia.cms.security.AccessDeniedException,
javax.jcr.PathNotFoundException,
javax.jcr.RepositoryException
- Creating or updating the trees for presenting the instances of the type.
- Parameters:
type
-
- Throws:
info.magnolia.cms.security.AccessDeniedException
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
addCommand
protected void addCommand(info.magnolia.cms.core.Content commandsNode,
String name,
String clazz)
throws info.magnolia.cms.security.AccessDeniedException,
javax.jcr.PathNotFoundException,
javax.jcr.RepositoryException
- Throws:
info.magnolia.cms.security.AccessDeniedException
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
Copyright © 2012 Magnolia International Ltd.. All Rights Reserved.