com.silverpeas.comment.service
Class MyDefaultCommentService

java.lang.Object
  extended by com.silverpeas.comment.service.CommentActionNotifier
      extended by com.silverpeas.comment.service.DefaultCommentService
          extended by com.silverpeas.comment.service.MyDefaultCommentService
All Implemented Interfaces:
CommentService, SilverpeasComponentService<Comment>

@Named(value="commentServiceForTest")
public class MyDefaultCommentService
extends DefaultCommentService

This a wrapper of the comment service in order to mock some of the inner methods like, for example, the access to the data source.


Constructor Summary
MyDefaultCommentService()
          Constructs a new comment service and mocks some of the underlying resource.
 
Method Summary
protected  CommentDAO getCommentDAO()
           
protected  OrganisationController getOrganisationController()
           
 
Methods inherited from class com.silverpeas.comment.service.DefaultCommentService
createAndIndexComment, createComment, deleteAllCommentsByComponentInstanceId, deleteAllCommentsOnPublication, deleteComment, deleteComment, getAllCommentsOnPublication, getAllMostCommentedPublicationsInfo, getComment, getCommentsCountOnPublication, getComponentMessages, getComponentSettings, getContentById, getLastComments, getMostCommentedPublicationsInfo, getMostCommentedPublicationsInfo, getSocialInformationCommentsListByUserId, getSocialInformationCommentsListOfMyContacts, indexAllCommentsOnPublication, moveAndReindexComments, moveComments, unindexAllCommentsOnPublication, updateAndIndexComment, updateComment
 
Methods inherited from class com.silverpeas.comment.service.CommentActionNotifier
notifyCommentAdding, notifyCommentRemoval
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyDefaultCommentService

public MyDefaultCommentService()
Constructs a new comment service and mocks some of the underlying resource.

Method Detail

getCommentDAO

protected CommentDAO getCommentDAO()
Overrides:
getCommentDAO in class DefaultCommentService

getOrganisationController

protected OrganisationController getOrganisationController()
Overrides:
getOrganisationController in class DefaultCommentService


Copyright © 2016 Silverpeas. All Rights Reserved.