|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ceryle.wiki.plugin.Groovy
public class Groovy
JSPWiki plugin to support both local and linked Groovy scripting on a wiki page.
[{Groovy println("Hello World!") }]
[{Groovy href='http://localhost:9099/wiki/scripts/Console.groovy' }]
There is a compile-time flag
CHECK_AUTHENTICATION (default is true); in this case
the script will fail if the user is not authenticated.
PERMIT_HREF (default true);
permitting remote scripts
when false remote script
references are ignored. Apart from this, installation of this plugin
on a wiki permits any and all user-written Groovy scripts to run on
any wiki page, with no other security restrictions. This obviously
incurs huge security risks, hence it's
NOT RECOMMENDED FOR PUBLIC WIKIS.
| Field Summary | |
|---|---|
protected static boolean |
CHECK_AUTHENTICATION
If true, check to see that user is authenticated. |
static String |
PARAM_HREF
When enabled by PERMIT_HREF, permits remote script invocation. |
protected static boolean |
PERMIT_HREF
If true, permit remote scripts via the href parameter. |
| Fields inherited from interface com.ecyrd.jspwiki.plugin.WikiPlugin |
|---|
CORE_PLUGINS_RESOURCEBUNDLE |
| Constructor Summary | |
|---|---|
Groovy()
|
|
| Method Summary | |
|---|---|
String |
execute(WikiContext context,
Map params)
|
void |
message(String message)
Write the contents of the String message to the output. |
void |
warning(String message)
Write the contents of the String message to the output as a warning message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PARAM_HREF
PERMIT_HREF, permits remote script invocation.
protected static final boolean CHECK_AUTHENTICATION
protected static final boolean PERMIT_HREF
| Constructor Detail |
|---|
public Groovy()
| Method Detail |
|---|
public String execute(WikiContext context, Map params) throws PluginException
execute in interface WikiPluginPluginExceptionpublic void message(String message)
public void warning(String message)
The message is contained within a paragraph with a 'warning' class.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||