| java.lang.Object com.ecyrd.jspwiki.xmlrpc.MetaWeblogHandler
MetaWeblogHandler | public class MetaWeblogHandler implements WikiRPCHandler(Code) | | Provides handlers for all RPC routines of the MetaWeblog API.
JSPWiki does not support categories, and therefore we always return
an empty list for getCategories(). Note also that this API is not
suitable for general Wiki editing, since JSPWiki formats the entries
in a wiki-compatible manner. And you cannot choose your page names
either. Since 2.1.94 the entire MetaWeblog API is supported.
author: Janne Jalkanen since: 2.1.7 |
Method Summary | |
boolean | editPost(String postid, String username, String password, Hashtable content, boolean publish) Allows the user to edit a post. | public Hashtable | getCategories(String blogid, String username, String password) JSPWiki does not support categories, therefore JSPWiki
always returns an empty list for categories. | Hashtable | getPost(String postid, String username, String password) Gets the text of any page. | public Hashtable | getRecentPosts(String blogid, String username, String password, int numberOfPosts) Returns a list of the recent posts to this weblog. | public void | initialize(WikiContext context) | public Hashtable | newMediaObject(String blogid, String username, String password, Hashtable content) Creates an attachment and adds it to the blog. | public String | newPost(String blogid, String username, String password, Hashtable content, boolean publish) Adds a new post to the blog. |
editPost | boolean editPost(String postid, String username, String password, Hashtable content, boolean publish) throws XmlRpcException(Code) | | Allows the user to edit a post. It does not allow general
editability of wiki pages, because of the limitations of the
metaWeblog API.
|
getCategories | public Hashtable getCategories(String blogid, String username, String password) throws XmlRpcException(Code) | | JSPWiki does not support categories, therefore JSPWiki
always returns an empty list for categories.
|
getPost | Hashtable getPost(String postid, String username, String password) throws XmlRpcException(Code) | | Gets the text of any page. The title of the page is parsed
(if any is provided).
|
getRecentPosts | public Hashtable getRecentPosts(String blogid, String username, String password, int numberOfPosts) throws XmlRpcException(Code) | | Returns a list of the recent posts to this weblog.
|
newMediaObject | public Hashtable newMediaObject(String blogid, String username, String password, Hashtable content) throws XmlRpcException(Code) | | Creates an attachment and adds it to the blog. The attachment
is created into the main blog page, not the actual post page,
because we do not know it at this point.
|
newPost | public String newPost(String blogid, String username, String password, Hashtable content, boolean publish) throws XmlRpcException(Code) | | Adds a new post to the blog.
Parameters: publish - This parameter is ignored for JSPWiki. |
|
|