org.alfresco.repo.blog
Class BlogIntegrationServiceImpl

java.lang.Object
  extended by org.alfresco.repo.blog.BlogIntegrationServiceImpl
All Implemented Interfaces:
BlogIntegrationModel, BlogIntegrationService

public class BlogIntegrationServiceImpl
extends java.lang.Object
implements BlogIntegrationService, BlogIntegrationModel

Blog integration service implementation


Field Summary
static java.util.List supportedMimetypes
          Supported 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
BlogIntegrationServiceImpl()
           
 
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 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

supportedMimetypes

public static java.util.List supportedMimetypes
Supported mimetypes

Constructor Detail

BlogIntegrationServiceImpl

public BlogIntegrationServiceImpl()
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: BlogIntegrationService
Register a new blog integration implementation with the service

Specified by:
register in interface BlogIntegrationService
Parameters:
implementation - the implementation
See Also:
org.alfresco.module.blogIntegration.BlogIntegrationService#register(org.alfresco.module.blogIntegration.BlogIntegrationImplementation)

getBlogIntegrationImplementation

public BlogIntegrationImplementation getBlogIntegrationImplementation(java.lang.String implementationName)
Description copied from interface: BlogIntegrationService
Get the named blog integration implementation, null if name not recognised

Specified by:
getBlogIntegrationImplementation in interface BlogIntegrationService
Parameters:
implementationName - the implementation name
Returns:
BlogIntegrationImplementation the blog integration implementation
See Also:
org.alfresco.module.blogIntegration.BlogIntegrationService#getBlogIntegrationImplementation(java.lang.String)

getBlogIntegrationImplementations

public java.util.List getBlogIntegrationImplementations()
Description copied from interface: BlogIntegrationService
Get a list of the registered integration implementations.

Specified by:
getBlogIntegrationImplementations in interface BlogIntegrationService
Returns:
List list of registered blog integration implementations
See Also:
org.alfresco.module.blogIntegration.BlogIntegrationService#getBlogIntegrationImplementations()

getBlogDetails

public java.util.List getBlogDetails(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Description copied from interface: BlogIntegrationService
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.

Specified by:
getBlogDetails in interface BlogIntegrationService
Parameters:
nodeRef - the node reference
Returns:
List list of the blog details found 'in scope' for the node, empty if none found
See Also:
org.alfresco.module.blogIntegration.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: BlogIntegrationService
Posts the content of a node to the blog specified

Specified by:
newPost in interface BlogIntegrationService
See Also:
org.alfresco.module.blogIntegration.BlogIntegrationService#newPost(org.alfresco.module.blogIntegration.BlogDetails, org.alfresco.service.cmr.repository.NodeRef, org.alfresco.service.namespace.QName, boolean)

updatePost

public void updatePost(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                       org.alfresco.service.namespace.QName contentProperty,
                       boolean publish)
Specified by:
updatePost in interface BlogIntegrationService
See Also:
org.alfresco.module.blogIntegration.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:
deletePost in interface BlogIntegrationService
See Also:
org.alfresco.module.blogIntegration.BlogIntegrationService#deletePost(org.alfresco.service.cmr.repository.NodeRef)


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