org.alfresco.repo.blog
Interface BlogIntegrationService

All Known Implementing Classes:
BlogIntegrationServiceImpl

public interface BlogIntegrationService

Blog integration service.


Method Summary
 void deletePost(org.alfresco.service.cmr.repository.NodeRef nodeRef)
           
 java.util.List getBlogDetails(org.alfresco.service.cmr.repository.NodeRef nodeRef)
          Given a node reference, gets a list of 'in scope' BlogDetails.
 BlogIntegrationImplementation getBlogIntegrationImplementation(java.lang.String implementationName)
          Get the named blog integration implementation, null if name not recognised
 java.util.List 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 updatePost(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(java.lang.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

java.util.List getBlogIntegrationImplementations()
Get a list of the registered integration implementations.

Returns:
List list of registered blog integration implementations

getBlogDetails

java.util.List 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 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 -
nodeRef -
contentProperty -
publish -

updatePost

void updatePost(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                org.alfresco.service.namespace.QName contentProperty,
                boolean publish)
Parameters:
postId -
nodeRef -
contentProperty -
publish -

deletePost

void deletePost(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Parameters:
postId -
nodeRef -


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.