Package org.alfresco.repo.blog
Interface BlogIntegrationImplementation
-
- All Known Implementing Classes:
BaseBlogIntegrationImplementation,DefaultBlogIntegrationImplementation,TypepadIntegration,WordPressIntegration
public interface BlogIntegrationImplementationBlog integration implementation interface- Author:
- Roy Wetherall
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleandeletePost(BlogDetails blogDetails, String postId)Delete an existing blog postStringgetDisplayName()Gets the display name of the blog integrationStringgetName()Gets the name of the blog integrationMap<String,Object>getPost(BlogDetails blogDetails, String postId)Get the details of an existing blog postStringnewPost(BlogDetails blogDetails, String title, String body, boolean publish)Create a new post on the blog.booleanupdatePost(BlogDetails blogDetails, String postId, String title, String body, boolean publish)Update an exisiting blog post
-
-
-
Method Detail
-
getName
String getName()
Gets the name of the blog integration- Returns:
- String the name of the blog integration
-
getDisplayName
String getDisplayName()
Gets the display name of the blog integration- Returns:
- String the display name of the blog integration
-
newPost
String newPost(BlogDetails blogDetails, String title, String body, boolean publish)
Create a new post on the blog.- Parameters:
blogDetails- the blog detailstitle- the title of the postbody- the body of the postpublish- indicates whether the post is published or not- Returns:
- String the newly created post id
-
updatePost
boolean updatePost(BlogDetails blogDetails, String postId, String title, String body, boolean publish)
Update an exisiting blog post- Parameters:
blogDetails- BlogDetailspostId- Stringtitle- Stringbody- Stringpublish- boolean- Returns:
- boolean
-
getPost
Map<String,Object> getPost(BlogDetails blogDetails, String postId)
Get the details of an existing blog post- Parameters:
blogDetails- BlogDetailspostId- String- Returns:
- Map
-
deletePost
boolean deletePost(BlogDetails blogDetails, String postId)
Delete an existing blog post- Parameters:
blogDetails- BlogDetailspostId- String- Returns:
- boolean
-
-