|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.blojsom.extension.xmlrpc.handler.APIHandler
org.blojsom.extension.xmlrpc.handler.BloggerAPIHandler
Blogger API handler
| Field Summary |
| Fields inherited from class org.blojsom.extension.xmlrpc.handler.APIHandler |
_authorizationProvider, _blog, _eventBroadcaster, _fetcher, _httpServletRequest, _httpServletResponse, _properties, _servletConfig, ALL_XMLRPC_EDIT_PERMISSION, AUTHORIZATION_EXCEPTION, AUTHORIZATION_EXCEPTION_MSG, INVALID_POSTID, INVALID_POSTID_MSG, NOBLOGS_EXCEPTION, NOBLOGS_EXCEPTION_MSG, PERMISSION_EXCEPTION, PERMISSION_EXCEPTION_MSG, UNKNOWN_EXCEPTION, UNKNOWN_EXCEPTION_MSG, UNSUPPORTED_EXCEPTION, UNSUPPORTED_EXCEPTION_MSG |
| Constructor Summary | |
BloggerAPIHandler()
Create a new instance of the Blogger API handler |
|
| Method Summary | |
boolean |
deletePost(java.lang.String appkey,
java.lang.String postid,
java.lang.String userid,
java.lang.String password,
boolean publish)
Delete a Post |
boolean |
editPost(java.lang.String appkey,
java.lang.String postid,
java.lang.String userid,
java.lang.String password,
java.lang.String content,
boolean publish)
Edits a given post. |
java.lang.String |
getName()
Retrieve the API handler name |
java.lang.Object |
getPost(java.lang.String appkey,
java.lang.String postid,
java.lang.String userid,
java.lang.String password)
Get a particular post for a blojsom category |
java.lang.Object |
getRecentPosts(java.lang.String appkey,
java.lang.String blogid,
java.lang.String userid,
java.lang.String password,
int numposts)
Get a list of recent posts for a blojsom category |
java.lang.String |
getTemplate(java.lang.String appkey,
java.lang.String blogid,
java.lang.String userid,
java.lang.String password,
java.lang.String templateType)
Returns the main or archive index template of a given blog (NOT IMPLEMENTED) |
java.lang.Object |
getUserInfo(java.lang.String appkey,
java.lang.String userid,
java.lang.String password)
Authenticates a user and returns basic user info (name, email, userid, etc.). |
java.lang.Object |
getUsersBlogs(java.lang.String appkey,
java.lang.String userid,
java.lang.String password)
Returns information on all the blogs a given user is a member of |
java.lang.String |
newPost(java.lang.String appkey,
java.lang.String blogid,
java.lang.String userid,
java.lang.String password,
java.lang.String content,
boolean publish)
Makes a new post to a designated blog. |
boolean |
setTemplate(java.lang.String appkey,
java.lang.String blogid,
java.lang.String userid,
java.lang.String password,
java.lang.String template,
java.lang.String templateType)
Edits the main or archive index template of a given blog (NOT IMPLEMENTED) |
| Methods inherited from class org.blojsom.extension.xmlrpc.handler.APIHandler |
checkXMLRPCPermission, setAuthorizationProvider, setBlog, setEventBroadcaster, setFetcher, setHttpServletRequest, setHttpServletResponse, setProperties, setServletConfig |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BloggerAPIHandler()
| Method Detail |
public java.lang.String getName()
getName in class APIHandler
public java.lang.Object getUserInfo(java.lang.String appkey,
java.lang.String userid,
java.lang.String password)
throws java.lang.Exception
appkey - Unique identifier/passcode of the application sending the postuserid - Login for a Blogger user who has permission to post to the blogpassword - Password for said username
org.apache.xmlrpc.XmlRpcException - If there is an error
java.lang.Exception
public java.lang.Object getUsersBlogs(java.lang.String appkey,
java.lang.String userid,
java.lang.String password)
throws java.lang.Exception
appkey - Unique identifier/passcode of the application sending the postuserid - Login for a Blogger user who has permission to post to the blogpassword - Password for said username
org.apache.xmlrpc.XmlRpcException - If there are no categories or the user was not authenticated correctly
java.lang.Exception
public java.lang.String newPost(java.lang.String appkey,
java.lang.String blogid,
java.lang.String userid,
java.lang.String password,
java.lang.String content,
boolean publish)
throws java.lang.Exception
appkey - Unique identifier/passcode of the application sending the postblogid - Unique identifier of the blog the post will be added touserid - Login for a Blogger user who has permission to post to the blogpassword - Password for said usernamecontent - Contents of the postpublish - If true, the blog will be published immediately after the post is made
org.apache.xmlrpc.XmlRpcException - If the user was not authenticated correctly or if there was an I/O exception
java.lang.Exception
public boolean editPost(java.lang.String appkey,
java.lang.String postid,
java.lang.String userid,
java.lang.String password,
java.lang.String content,
boolean publish)
throws java.lang.Exception
appkey - Unique identifier/passcode of the application sending the postpostid - Unique identifier of the post to be changeduserid - Login for a Blogger user who has permission to post to the blogpassword - Password for said usernamecontent - Contents of the postpublish - If true, the blog will be published immediately after the post is made
true if the entry was edited, false otherwise
org.apache.xmlrpc.XmlRpcException - If the user was not authenticated correctly, if there was an I/O exception,
or if the entry permalink ID is invalid
java.lang.Exception
public java.lang.Object getPost(java.lang.String appkey,
java.lang.String postid,
java.lang.String userid,
java.lang.String password)
throws java.lang.Exception
appkey - Unique identifier/passcode of the application sending the postpostid - Unique identifier of the blog postuserid - Login for a Blogger user who has permission to post to the blogpassword - Password for said username
org.apache.xmlrpc.XmlRpcException - If the user was not authenticated correctly
java.lang.Exception
public boolean deletePost(java.lang.String appkey,
java.lang.String postid,
java.lang.String userid,
java.lang.String password,
boolean publish)
throws java.lang.Exception
appkey - Unique identifier/passcode of the application sending the postpostid - Unique identifier of the post to be changeduserid - Login for a Blogger user who has permission to post to the blogpassword - Password for said usernamepublish - Ignored
true if the entry was delete, false otherwise
org.apache.xmlrpc.XmlRpcException - If there is an error deleting the post
java.lang.Exception
public java.lang.Object getRecentPosts(java.lang.String appkey,
java.lang.String blogid,
java.lang.String userid,
java.lang.String password,
int numposts)
throws java.lang.Exception
appkey - Unique identifier/passcode of the application sending the postblogid - Unique identifier of the blog the post will be added touserid - Login for a Blogger user who has permission to post to the blogpassword - Password for said usernamenumposts - Number of Posts to Retrieve
org.apache.xmlrpc.XmlRpcException - If the user was not authenticated correctly
java.lang.Exception
public boolean setTemplate(java.lang.String appkey,
java.lang.String blogid,
java.lang.String userid,
java.lang.String password,
java.lang.String template,
java.lang.String templateType)
throws java.lang.Exception
appkey - Unique identifier/passcode of the application sending the postblogid - Unique identifier of the blog the post will be added touserid - Login for a Blogger user who has permission to post to the blogpassword - Password for said usernametemplate - The text for the new template (usually mostly HTML). Must contain opening and closing templateType - Determines which of the blog's templates will be returned. Currently, either "main" or "archiveIndex"
org.apache.xmlrpc.XmlRpcException - Not supported
java.lang.Exception
public java.lang.String getTemplate(java.lang.String appkey,
java.lang.String blogid,
java.lang.String userid,
java.lang.String password,
java.lang.String templateType)
throws java.lang.Exception
appkey - Unique identifier/passcode of the application sending the postblogid - Unique identifier of the blog the post will be added touserid - Login for a Blogger user who has permission to post to the blogpassword - Password for said usernametemplateType - Determines which of the blog's templates will be returned. Currently, either "main" or "archiveIndex"
org.apache.xmlrpc.XmlRpcException - Not supported
java.lang.Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||