|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.blojsom.extension.xmlrpc.handlers.AbstractBlojsomAPIHandler org.blojsom.extension.xmlrpc.handlers.MovableTypeAPIHandler
MovableType API handler
Field Summary | |
protected org.apache.commons.logging.Log |
_logger
|
protected static java.lang.String |
API_PREFIX
|
protected static java.lang.String |
MEMBER_CATEGORYID
|
protected static java.lang.String |
MEMBER_CATEGORYNAME
|
protected static java.lang.String |
MEMBER_DATECREATED
|
protected static java.lang.String |
MEMBER_ISPRIMARY
|
protected static java.lang.String |
MEMBER_KEY
|
protected static java.lang.String |
MEMBER_LABEL
|
protected static java.lang.String |
MEMBER_PING_IP
|
protected static java.lang.String |
MEMBER_PING_TITLE
|
protected static java.lang.String |
MEMBER_PING_URL
|
protected static java.lang.String |
MEMBER_POSTID
|
protected static java.lang.String |
MEMBER_TITLE
|
protected static java.lang.String |
MEMBER_USERID
|
Fields inherited from class org.blojsom.extension.xmlrpc.handlers.AbstractBlojsomAPIHandler |
_authorizationProvider, _blog, _blogEntryExtension, _blogUser, _configuration, _fetcher, _httpServletRequest, _httpServletResponse, _servletConfig, 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 |
Fields inherited from interface org.blojsom.util.BlojsomMetaDataConstants |
BLOG_ENTRY_METADATA_AUTHOR, BLOG_ENTRY_METADATA_AUTHOR_EXT, BLOG_ENTRY_METADATA_TIMESTAMP, BLOG_METADATA_COMMENTS_DISABLED, BLOG_METADATA_HEADER, BLOG_METADATA_PINGBACKS_DISABLED, BLOG_METADATA_TRACKBACKS_DISABLED, SOURCE_ATTRIBUTE |
Fields inherited from interface org.blojsom.extension.xmlrpc.BlojsomXMLRPCConstants |
BLOG_XMLRPC_CONFIGURATION_IP, BLOG_XMLRPC_ENTRY_EXTENSION_IP, DEFAULT_BLOG_XMLRPC_ENTRY_EXTENSION, DEFAULT_XMLRPC_HANDLER_KEY |
Constructor Summary | |
MovableTypeAPIHandler()
Construct a new MovableType API handler |
Method Summary | |
java.lang.Object |
getCategoryList(java.lang.String blogID,
java.lang.String username,
java.lang.String password)
Returns a list of all categories defined in the weblog. |
java.lang.String |
getName()
Gets the name of API Handler. |
java.lang.Object |
getPostCategories(java.lang.String postID,
java.lang.String username,
java.lang.String password)
Returns a list of all categories to which the post is assigned. |
java.lang.Object |
getRecentPostTitles(java.lang.String blogID,
java.lang.String username,
java.lang.String password,
int numberOfPosts)
Returns a bandwidth-friendly list of the most recent posts in the system. |
java.lang.Object |
getTrackbackPings(java.lang.String postID)
Retrieve the list of TrackBack pings posted to a particular entry |
boolean |
publishPost(java.lang.String postID,
java.lang.String username,
java.lang.String password)
Publish (rebuild) all of the static files related to an entry from your weblog. |
void |
setBlogUser(BlogUser blogUser)
Attach a blog instance to the API Handler so that it can interact with the blog |
boolean |
setPostCategories(java.lang.String postID,
java.lang.String username,
java.lang.String password,
java.util.Vector categories)
Sets the categories for a post. |
java.lang.Object |
supportedMethods()
Retrieve information about the XML-RPC methods supported by the server. |
java.lang.Object |
supportedTextFilters()
Retrieve information about the text formatting plugins supported by the server. |
Methods inherited from class org.blojsom.extension.xmlrpc.handlers.AbstractBlojsomAPIHandler |
checkXMLRPCPermission, getBlogCategoryDirectory, setAuthorizationProvider, setConfiguration, setFetcher, setHttpServletRequest, setHttpServletResponse, setServletConfig |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final java.lang.String MEMBER_DATECREATED
protected static final java.lang.String MEMBER_USERID
protected static final java.lang.String MEMBER_POSTID
protected static final java.lang.String MEMBER_TITLE
protected static final java.lang.String MEMBER_CATEGORYID
protected static final java.lang.String MEMBER_CATEGORYNAME
protected static final java.lang.String MEMBER_ISPRIMARY
protected static final java.lang.String MEMBER_KEY
protected static final java.lang.String MEMBER_LABEL
protected static final java.lang.String MEMBER_PING_TITLE
protected static final java.lang.String MEMBER_PING_URL
protected static final java.lang.String MEMBER_PING_IP
protected static final java.lang.String API_PREFIX
protected org.apache.commons.logging.Log _logger
Constructor Detail |
public MovableTypeAPIHandler()
Method Detail |
public void setBlogUser(BlogUser blogUser) throws BlojsomException
setBlogUser
in class AbstractBlojsomAPIHandler
blogUser
- an instance of BlogUser
BlojsomException
- If there is an error setting the blog user instance or properties for the handlerBlogUser
public java.lang.String getName()
getName
in class AbstractBlojsomAPIHandler
public java.lang.Object getRecentPostTitles(java.lang.String blogID, java.lang.String username, java.lang.String password, int numberOfPosts) throws java.lang.Exception
blogID
- Blog IDusername
- Usernamepassword
- PasswordnumberOfPosts
- Number of titles to retrieve
java.lang.Exception
- If there is an error retrieving post titlespublic java.lang.Object getCategoryList(java.lang.String blogID, java.lang.String username, java.lang.String password) throws java.lang.Exception
blogID
- Blog IDusername
- Usernamepassword
- Password
java.lang.Exception
- If there is an error getting the category listpublic java.lang.Object getPostCategories(java.lang.String postID, java.lang.String username, java.lang.String password) throws java.lang.Exception
postID
- Post IDusername
- Usernamepassword
- Password
java.lang.Exception
public boolean setPostCategories(java.lang.String postID, java.lang.String username, java.lang.String password, java.util.Vector categories) throws java.lang.Exception
postID
- Post IDusername
- Usernamepassword
- Passwordcategories
- Array of structs containing String categoryId and boolean isPrimary
true
if categories set for a post
java.lang.Exception
- If there is an error setting the categories for a postpublic java.lang.Object supportedMethods() throws java.lang.Exception
java.lang.Exception
- If there is an error retrieving the list of supported XML-RPC methods.public java.lang.Object supportedTextFilters() throws java.lang.Exception
java.lang.Exception
- If there is an error retrieving the list of pluginspublic java.lang.Object getTrackbackPings(java.lang.String postID) throws java.lang.Exception
postID
- Post ID
java.lang.Exception
- If there is an error retrieving trackbacks for an entrypublic boolean publishPost(java.lang.String postID, java.lang.String username, java.lang.String password) throws java.lang.Exception
postID
- Post IDusername
- Usernamepassword
- Password
true
if post published
java.lang.Exception
- If there is an error publishing the post
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |