Package org.alfresco.repo.blog
Interface BlogIntegrationService
-
- All Known Implementing Classes:
BlogIntegrationServiceImpl
public interface BlogIntegrationServiceBlog integration service.- Author:
- Roy Wetherall
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeletePost(org.alfresco.service.cmr.repository.NodeRef nodeRef)List<BlogDetails>getBlogDetails(org.alfresco.service.cmr.repository.NodeRef nodeRef)Given a node reference, gets a list of 'in scope' BlogDetails.BlogIntegrationImplementationgetBlogIntegrationImplementation(String implementationName)Get the named blog integration implementation, null if name not recognisedList<BlogIntegrationImplementation>getBlogIntegrationImplementations()Get a list of the registered integration implementations.voidnewPost(BlogDetails blogDetails, org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName contentProperty, boolean publish)Posts the content of a node to the blog specifiedvoidregister(BlogIntegrationImplementation implementation)Register a new blog integration implementation with the servicevoidupdatePost(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName contentProperty, boolean publish)
-
-
-
Method Detail
-
register
void register(BlogIntegrationImplementation implementation)
Register a new blog integration implementation with the service- Parameters:
implementation- the implementation
-
getBlogIntegrationImplementation
BlogIntegrationImplementation getBlogIntegrationImplementation(String implementationName)
Get the named blog integration implementation, null if name not recognised- Parameters:
implementationName- the implementation name- Returns:
- BlogIntegrationImplementation the blog integration implementation
-
getBlogIntegrationImplementations
List<BlogIntegrationImplementation> getBlogIntegrationImplementations()
Get a list of the registered integration implementations.- Returns:
- list of registered blog integration implementations
-
getBlogDetails
List<BlogDetails> getBlogDetails(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Given a node reference, gets a list of 'in scope' BlogDetails. The node itself and then the primary parent hierarchy is searched and any blog details found returned in a list, with the 'nearest' first.- Parameters:
nodeRef- the node reference- Returns:
- list of the blog details found 'in scope' for the node, empty if none found
-
newPost
void newPost(BlogDetails blogDetails, org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName contentProperty, boolean publish)
Posts the content of a node to the blog specified- Parameters:
blogDetails- BlogDetailsnodeRef- NodeRefcontentProperty- QNamepublish- boolean
-
updatePost
void updatePost(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName contentProperty, boolean publish)- Parameters:
nodeRef- NodeRefcontentProperty- QNamepublish- boolean
-
deletePost
void deletePost(org.alfresco.service.cmr.repository.NodeRef nodeRef)
- Parameters:
nodeRef- NodeRef
-
-