public class BlogIntegrationServiceImpl extends Object implements BlogIntegrationService, BlogIntegrationModel
Modifier and Type | Field and Description |
---|---|
static List<String> |
supportedMimetypes
Supported mimetypes
|
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 and Description |
---|
BlogIntegrationServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
deletePost(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.
|
BlogIntegrationImplementation |
getBlogIntegrationImplementation(String implementationName)
Get the named blog integration implementation, null if name not recognised
|
List<BlogIntegrationImplementation> |
getBlogIntegrationImplementations()
Get a list of the registered integration implementations.
|
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
|
void |
register(BlogIntegrationImplementation implementation)
Register a new blog integration implementation with the service
|
void |
setContentService(ContentService contentService)
Set the content service
|
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Set the node service
|
void |
updatePost(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName contentProperty,
boolean publish) |
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService
- the node servicepublic void setContentService(ContentService contentService)
contentService
- the content servicepublic void register(BlogIntegrationImplementation implementation)
BlogIntegrationService
register
in interface BlogIntegrationService
implementation
- the implementationBlogIntegrationService.register(org.alfresco.repo.blog.BlogIntegrationImplementation)
public BlogIntegrationImplementation getBlogIntegrationImplementation(String implementationName)
BlogIntegrationService
getBlogIntegrationImplementation
in interface BlogIntegrationService
implementationName
- the implementation nameBlogIntegrationService.getBlogIntegrationImplementation(java.lang.String)
public List<BlogIntegrationImplementation> getBlogIntegrationImplementations()
BlogIntegrationService
getBlogIntegrationImplementations
in interface BlogIntegrationService
BlogIntegrationService.getBlogIntegrationImplementations()
public List<BlogDetails> getBlogDetails(org.alfresco.service.cmr.repository.NodeRef nodeRef)
BlogIntegrationService
getBlogDetails
in interface BlogIntegrationService
nodeRef
- the node referenceBlogIntegrationService.getBlogDetails(org.alfresco.service.cmr.repository.NodeRef)
public void newPost(BlogDetails blogDetails, org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName contentProperty, boolean publish)
BlogIntegrationService
newPost
in interface BlogIntegrationService
blogDetails
- BlogDetailsnodeRef
- NodeRefcontentProperty
- QNamepublish
- booleanBlogIntegrationService.newPost(BlogDetails, NodeRef, QName, boolean)
public void updatePost(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName contentProperty, boolean publish)
updatePost
in interface BlogIntegrationService
nodeRef
- NodeRefcontentProperty
- QNamepublish
- booleanBlogIntegrationService.updatePost(org.alfresco.service.cmr.repository.NodeRef, org.alfresco.service.namespace.QName, boolean)
public void deletePost(org.alfresco.service.cmr.repository.NodeRef nodeRef)
deletePost
in interface BlogIntegrationService
nodeRef
- NodeRefBlogIntegrationService.deletePost(org.alfresco.service.cmr.repository.NodeRef)
Copyright © 2005–2017 Alfresco Software. All rights reserved.