info.magnolia.module.groovy.console
Class MgnlGroovyInteractiveConsole

java.lang.Object
  extended by info.magnolia.cms.servlets.MVCServletHandlerImpl
      extended by info.magnolia.cms.servlets.CommandBasedMVCServletHandler
          extended by info.magnolia.module.admininterface.PageMVCHandler
              extended by info.magnolia.module.admininterface.TemplatedMVCHandler
                  extended by info.magnolia.module.groovy.console.MgnlGroovyInteractiveConsole
All Implemented Interfaces:
info.magnolia.cms.servlets.MVCServletHandler

public class MgnlGroovyInteractiveConsole
extends info.magnolia.module.admininterface.TemplatedMVCHandler

The server-side implementation of the *nix-like Magnolia Groovy console.

Version:
$Id$
Author:
fgrilli

Field Summary
 
Fields inherited from class info.magnolia.module.admininterface.PageMVCHandler
COMMAND_PARAMETER_NAME, COMMAND_SHOW, VIEW_SHOW
 
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
MgnlGroovyInteractiveConsole(String name, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Method Summary
 String clean()
           
 String evaluateGroovy()
           
 String getGroovyVersion()
           
protected  boolean isAuthorized(info.magnolia.cms.security.User currentUser)
           
 
Methods inherited from class info.magnolia.module.admininterface.TemplatedMVCHandler
getTemplateName, renderHtml
 
Methods inherited from class info.magnolia.module.admininterface.PageMVCHandler
getForm, getI18nBasename, getMsgs, getParams, init, setForm, setI18nBasename, setMsgs, setParams, show
 
Methods inherited from class info.magnolia.cms.servlets.CommandBasedMVCServletHandler
execute, findCommand, getCatalogueName, getCommandContext, getViewNameAfterExecution, setCatalogueName
 
Methods inherited from class info.magnolia.cms.servlets.MVCServletHandlerImpl
getCommand, getException, getExceptionStackTrace, getName, getRequest, getResponse, populateFromRequest, setCommand, setRequest, setResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MgnlGroovyInteractiveConsole

public MgnlGroovyInteractiveConsole(String name,
                                    javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response)
Method Detail

clean

public String clean()
             throws Exception
Throws:
Exception

evaluateGroovy

public String evaluateGroovy()
                      throws Exception
Throws:
Exception

getGroovyVersion

public String getGroovyVersion()

isAuthorized

protected boolean isAuthorized(info.magnolia.cms.security.User currentUser)


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