Package org.alfresco.repo.blog
Class BlogIntegrationServiceImpl
- java.lang.Object
-
- org.alfresco.repo.blog.BlogIntegrationServiceImpl
-
- All Implemented Interfaces:
BlogIntegrationModel,BlogIntegrationService
public class BlogIntegrationServiceImpl extends Object implements BlogIntegrationService, BlogIntegrationModel
Blog integration service implementation- Author:
- Roy Wetherall
-
-
Field Summary
Fields Modifier and Type Field Description static List<String>supportedMimetypesSupported mimetypes-
Fields inherited from interface org.alfresco.model.BlogIntegrationModel
ASPECT_BLOG_DETAILS, ASPECT_BLOG_POST, ASSOC_BLOG_DETAILS, MODEL_PREFIX, MODEL_URL, PROP_BLOG_IMPLEMENTATION, PROP_DESCRIPTION, PROP_ID, PROP_LAST_UPDATE, PROP_LINK, PROP_NAME, PROP_PASSWORD, PROP_POST_ID, PROP_POSTED, PROP_PUBLISHED, PROP_URL, PROP_USER_NAME
-
-
Constructor Summary
Constructors Constructor Description BlogIntegrationServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete 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 servicevoidsetContentService(ContentService contentService)Set the content servicevoidsetNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)Set the node servicevoidupdatePost(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName contentProperty, boolean publish)
-
-
-
Method Detail
-
setNodeService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Set the node service- Parameters:
nodeService- the node service
-
setContentService
public void setContentService(ContentService contentService)
Set the content service- Parameters:
contentService- the content service
-
register
public void register(BlogIntegrationImplementation implementation)
Description copied from interface:BlogIntegrationServiceRegister a new blog integration implementation with the service- Specified by:
registerin interfaceBlogIntegrationService- Parameters:
implementation- the implementation- See Also:
BlogIntegrationService.register(org.alfresco.repo.blog.BlogIntegrationImplementation)
-
getBlogIntegrationImplementation
public BlogIntegrationImplementation getBlogIntegrationImplementation(String implementationName)
Description copied from interface:BlogIntegrationServiceGet the named blog integration implementation, null if name not recognised- Specified by:
getBlogIntegrationImplementationin interfaceBlogIntegrationService- Parameters:
implementationName- the implementation name- Returns:
- BlogIntegrationImplementation the blog integration implementation
- See Also:
BlogIntegrationService.getBlogIntegrationImplementation(java.lang.String)
-
getBlogIntegrationImplementations
public List<BlogIntegrationImplementation> getBlogIntegrationImplementations()
Description copied from interface:BlogIntegrationServiceGet a list of the registered integration implementations.- Specified by:
getBlogIntegrationImplementationsin interfaceBlogIntegrationService- Returns:
- list of registered blog integration implementations
- See Also:
BlogIntegrationService.getBlogIntegrationImplementations()
-
getBlogDetails
public List<BlogDetails> getBlogDetails(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Description copied from interface:BlogIntegrationServiceGiven 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.- Specified by:
getBlogDetailsin interfaceBlogIntegrationService- Parameters:
nodeRef- the node reference- Returns:
- list of the blog details found 'in scope' for the node, empty if none found
- See Also:
BlogIntegrationService.getBlogDetails(org.alfresco.service.cmr.repository.NodeRef)
-
newPost
public void newPost(BlogDetails blogDetails, org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName contentProperty, boolean publish)
Description copied from interface:BlogIntegrationServicePosts the content of a node to the blog specified- Specified by:
newPostin interfaceBlogIntegrationService- Parameters:
blogDetails- BlogDetailsnodeRef- NodeRefcontentProperty- QNamepublish- boolean- See Also:
BlogIntegrationService.newPost(BlogDetails, NodeRef, QName, boolean)
-
updatePost
public void updatePost(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName contentProperty, boolean publish)- Specified by:
updatePostin interfaceBlogIntegrationService- Parameters:
nodeRef- NodeRefcontentProperty- QNamepublish- boolean- See Also:
BlogIntegrationService.updatePost(org.alfresco.service.cmr.repository.NodeRef, org.alfresco.service.namespace.QName, boolean)
-
deletePost
public void deletePost(org.alfresco.service.cmr.repository.NodeRef nodeRef)
- Specified by:
deletePostin interfaceBlogIntegrationService- Parameters:
nodeRef- NodeRef- See Also:
BlogIntegrationService.deletePost(org.alfresco.service.cmr.repository.NodeRef)
-
-