info.magnolia.module.groovy.dialogs
Class MgnlGroovyDialog

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.groovy.dialogs.MgnlGroovyDialog
All Implemented Interfaces:
info.magnolia.cms.servlets.MVCServletHandler

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

Subclass of ConfiguredDialog to add some javascript (e.g. jQuery)

Version:
$Id$
Author:
fgrilli

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
MgnlGroovyDialog(String name, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, info.magnolia.cms.core.Content configNode)
           
 
Method Summary
protected  info.magnolia.cms.gui.dialog.Dialog createDialog(info.magnolia.cms.core.Content configNode, info.magnolia.cms.core.Content storageNode)
           
protected  boolean validate()
          Before saving groovy source code, make sure it is valid i.e.
If it is to be a model class a package declaration must be enforced the package declaration must match the path to the source in the scripts repository
 
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, onPostSave, onPreSave, onSave, onSaveFailed, removeSessionAttributes, renderHtml, save, setDialog, setItemType, setJsExecutedAfterSaving, showDialog
 
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

MgnlGroovyDialog

public MgnlGroovyDialog(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

validate

protected boolean validate()
Before saving groovy source code, make sure it is valid i.e.
If it is to be a model class
  1. a package declaration must be enforced
  2. the package declaration must match the path to the source in the scripts repository

Overrides:
validate in class info.magnolia.module.admininterface.DialogMVCHandler
See Also:
MgnlGroovyClassLoader#MgnlGroovyClassLoader(HierarchyManagerProvider)))}


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