org.ceryle.wiki.handler
Class NewPageHandler
java.lang.Object
org.ceryle.wiki.handler.NewPageHandler
- All Implemented Interfaces:
- FormHandler, WikiPlugin
- Direct Known Subclasses:
- UniqueIdHandler
public class NewPageHandler
- extends Object
- implements FormHandler, WikiPlugin
Creates a new page using the information provided by a form.
Required parameters are:
- newPageName
- _body (the body of the plugin following attribute specifications)
Optional parameters are:
- newPageNamePrefix if you want a prefix automatically applied
- autoIncrement if you want suffix numbers generated to make a unique
page name (must be numeric, used as the start at value and the leading zero
padding format, e.g. '0010' means start at 10, format as 4 digits)
- Author:
- John Volkar (john.volkar at gmail.com)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PARAM_NEW_PAGE_NAME
public static final String PARAM_NEW_PAGE_NAME
- See Also:
- Constant Field Values
PARAM_NEW_PAGE_NAME_PREFIX
public static final String PARAM_NEW_PAGE_NAME_PREFIX
- See Also:
- Constant Field Values
PARAM_AUTO_INCREMENT
public static final String PARAM_AUTO_INCREMENT
- See Also:
- Constant Field Values
PARAM_OVERWRITE
public static final String PARAM_OVERWRITE
- See Also:
- Constant Field Values
NewPageHandler
public NewPageHandler()
execute
public String execute(WikiContext context,
Map params)
throws PluginException
- Specified by:
execute in interface WikiPlugin
- Throws:
PluginException
The Ceryle Project. Copyright ©2001-2007 Murray Altheim, All Rights Reserved. See LICENSE included with distribution.