|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.blog.BaseBlogIntegrationImplementation
org.alfresco.repo.blog.DefaultBlogIntegrationImplementation
public abstract class DefaultBlogIntegrationImplementation
Default blog integration implementation. Uses various standard XML PRC blogging API to satisfy the blog integration implementation interface. Based on origional contribution by Sudhakar Selvaraj.
| Field Summary | |
|---|---|
protected static java.lang.String |
ACTION_DELETE_POST
|
protected static java.lang.String |
ACTION_EDIT_POST
|
protected static java.lang.String |
ACTION_GET_POST
|
protected static java.lang.String |
ACTION_NEW_POST
Blog actions |
| Constructor Summary | |
|---|---|
DefaultBlogIntegrationImplementation()
|
|
| Method Summary | |
|---|---|
protected java.lang.String |
checkForProtocol(java.lang.String url)
Checks a url for a protocol and adds http if none present |
protected java.lang.String |
checkForTrainlingSlash(java.lang.String url)
Checks the url for a trailing slash and adds one if none present |
boolean |
deletePost(BlogDetails blogDetails,
java.lang.String postId)
Delete an existing blog post |
protected java.lang.Object |
execute(java.lang.String url,
java.lang.String method,
java.util.List params)
Executes an XML RPC method |
protected abstract java.lang.String |
getEndpointURL(BlogDetails blogDetails)
Gets the XML RPC end point URL for the given blog details. |
java.util.Map |
getPost(BlogDetails blogDetails,
java.lang.String postId)
Get the details of an existing blog post |
java.lang.String |
newPost(BlogDetails blogDetails,
java.lang.String title,
java.lang.String body,
boolean publish)
Create a new post on the blog. |
boolean |
updatePost(BlogDetails blogDetails,
java.lang.String postId,
java.lang.String title,
java.lang.String body,
boolean publish)
Update an exisiting blog post |
| Methods inherited from class org.alfresco.repo.blog.BaseBlogIntegrationImplementation |
|---|
getDisplayName, getName, register, setBlogIntegrationService, setDisplayName, setName |
| 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 ACTION_NEW_POST
protected static final java.lang.String ACTION_EDIT_POST
protected static final java.lang.String ACTION_GET_POST
protected static final java.lang.String ACTION_DELETE_POST
| Constructor Detail |
|---|
public DefaultBlogIntegrationImplementation()
| Method Detail |
|---|
protected abstract java.lang.String getEndpointURL(BlogDetails blogDetails)
blogDetails - blog details
public java.lang.String newPost(BlogDetails blogDetails,
java.lang.String title,
java.lang.String body,
boolean publish)
BlogIntegrationImplementation
blogDetails - the blog detailstitle - the title of the postbody - the body of the postpublish - indicates whether the post is published or not
org.alfresco.module.blogIntegration.BlogIntegrationImplementation#newPost(org.alfresco.module.blogIntegration.BlogDetails, java.lang.String, java.lang.String, boolean)
public boolean updatePost(BlogDetails blogDetails,
java.lang.String postId,
java.lang.String title,
java.lang.String body,
boolean publish)
BlogIntegrationImplementation
org.alfresco.module.blogIntegration.BlogIntegrationImplementation#updatePost(org.alfresco.module.blogIntegration.BlogDetails, java.lang.String, java.lang.String, java.lang.String, boolean)
public java.util.Map getPost(BlogDetails blogDetails,
java.lang.String postId)
BlogIntegrationImplementation
org.alfresco.module.blogIntegration.BlogIntegrationImplementation#getPost(org.alfresco.module.blogIntegration.BlogDetails, java.lang.String)
public boolean deletePost(BlogDetails blogDetails,
java.lang.String postId)
BlogIntegrationImplementation
org.alfresco.module.blogIntegration.BlogIntegrationImplementation#deletePost(org.alfresco.module.blogIntegration.BlogDetails, java.lang.String)
protected java.lang.Object execute(java.lang.String url,
java.lang.String method,
java.util.List params)
url - method - params -
protected java.lang.String checkForProtocol(java.lang.String url)
url - the url
protected java.lang.String checkForTrainlingSlash(java.lang.String url)
url - the url
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||