com.silverpeas.scheduleevent.test.stub
Class CommentServiceStub

java.lang.Object
  extended by com.silverpeas.scheduleevent.test.stub.CommentServiceStub
All Implemented Interfaces:
com.silverpeas.comment.service.CommentService, com.silverpeas.SilverpeasComponentService<com.silverpeas.comment.model.Comment>

@Named(value="commentService")
public class CommentServiceStub
extends Object
implements com.silverpeas.comment.service.CommentService

Implements the CommentServiceStub interface to play the role of a such object in tests.


Constructor Summary
CommentServiceStub()
           
 
Method Summary
 void createAndIndexComment(com.silverpeas.comment.model.Comment cmt)
           
 void createComment(com.silverpeas.comment.model.Comment cmt)
           
 void deleteAllCommentsByComponentInstanceId(String instanceId)
           
 void deleteAllCommentsOnPublication(String resourceType, com.stratelia.webactiv.util.WAPrimaryKey pk)
           
 void deleteComment(com.silverpeas.comment.model.Comment comment)
           
 void deleteComment(com.silverpeas.comment.model.CommentPK pk)
           
 List<com.silverpeas.comment.model.Comment> getAllCommentsOnPublication(String resourceType, com.stratelia.webactiv.util.WAPrimaryKey pk)
           
 List<com.silverpeas.comment.model.CommentedPublicationInfo> getAllMostCommentedPublicationsInfo()
           
 com.silverpeas.comment.model.Comment getComment(com.silverpeas.comment.model.CommentPK pk)
           
 int getCommentsCountOnPublication(String resourceType, com.stratelia.webactiv.util.WAPrimaryKey pk)
           
 com.stratelia.webactiv.util.ResourceLocator getComponentMessages(String language)
           
 com.stratelia.webactiv.util.ResourceLocator getComponentSettings()
           
 com.silverpeas.comment.model.Comment getContentById(String contentId)
           
 List<com.silverpeas.comment.model.Comment> getLastComments(String resourceType, int count)
           
 List<com.silverpeas.comment.model.CommentedPublicationInfo> getMostCommentedPublicationsInfo(String resourceType)
           
 List<com.silverpeas.comment.model.CommentedPublicationInfo> getMostCommentedPublicationsInfo(String resourceType, List<? extends com.stratelia.webactiv.util.WAPrimaryKey> pks)
           
 List<com.silverpeas.comment.socialnetwork.SocialInformationComment> getSocialInformationCommentsListByUserId(List<String> listResourceType, String userId, org.silverpeas.date.Period period)
           
 List<com.silverpeas.comment.socialnetwork.SocialInformationComment> getSocialInformationCommentsListOfMyContacts(List<String> listResourceType, List<String> myContactsIds, List<String> listInstanceId, org.silverpeas.date.Period period)
           
 void indexAllCommentsOnPublication(String resourceType, com.stratelia.webactiv.util.WAPrimaryKey pk)
           
 void moveAndReindexComments(String resourceType, com.stratelia.webactiv.util.WAPrimaryKey fromPK, com.stratelia.webactiv.util.WAPrimaryKey toPK)
           
 void moveComments(String resourceType, com.stratelia.webactiv.util.WAPrimaryKey fromPK, com.stratelia.webactiv.util.WAPrimaryKey toPK)
           
 void unindexAllCommentsOnPublication(String resourceType, com.stratelia.webactiv.util.WAPrimaryKey pk)
           
 void updateAndIndexComment(com.silverpeas.comment.model.Comment cmt)
           
 void updateComment(com.silverpeas.comment.model.Comment cmt)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommentServiceStub

public CommentServiceStub()
Method Detail

createComment

public void createComment(com.silverpeas.comment.model.Comment cmt)
Specified by:
createComment in interface com.silverpeas.comment.service.CommentService

createAndIndexComment

public void createAndIndexComment(com.silverpeas.comment.model.Comment cmt)
Specified by:
createAndIndexComment in interface com.silverpeas.comment.service.CommentService

deleteComment

public void deleteComment(com.silverpeas.comment.model.CommentPK pk)
Specified by:
deleteComment in interface com.silverpeas.comment.service.CommentService

deleteAllCommentsOnPublication

public void deleteAllCommentsOnPublication(String resourceType,
                                           com.stratelia.webactiv.util.WAPrimaryKey pk)
Specified by:
deleteAllCommentsOnPublication in interface com.silverpeas.comment.service.CommentService

deleteAllCommentsByComponentInstanceId

public void deleteAllCommentsByComponentInstanceId(String instanceId)
Specified by:
deleteAllCommentsByComponentInstanceId in interface com.silverpeas.comment.service.CommentService

deleteComment

public void deleteComment(com.silverpeas.comment.model.Comment comment)
Specified by:
deleteComment in interface com.silverpeas.comment.service.CommentService

moveComments

public void moveComments(String resourceType,
                         com.stratelia.webactiv.util.WAPrimaryKey fromPK,
                         com.stratelia.webactiv.util.WAPrimaryKey toPK)
Specified by:
moveComments in interface com.silverpeas.comment.service.CommentService

moveAndReindexComments

public void moveAndReindexComments(String resourceType,
                                   com.stratelia.webactiv.util.WAPrimaryKey fromPK,
                                   com.stratelia.webactiv.util.WAPrimaryKey toPK)
Specified by:
moveAndReindexComments in interface com.silverpeas.comment.service.CommentService

updateComment

public void updateComment(com.silverpeas.comment.model.Comment cmt)
Specified by:
updateComment in interface com.silverpeas.comment.service.CommentService

updateAndIndexComment

public void updateAndIndexComment(com.silverpeas.comment.model.Comment cmt)
Specified by:
updateAndIndexComment in interface com.silverpeas.comment.service.CommentService

getComment

public com.silverpeas.comment.model.Comment getComment(com.silverpeas.comment.model.CommentPK pk)
Specified by:
getComment in interface com.silverpeas.comment.service.CommentService

getAllCommentsOnPublication

public List<com.silverpeas.comment.model.Comment> getAllCommentsOnPublication(String resourceType,
                                                                              com.stratelia.webactiv.util.WAPrimaryKey pk)
Specified by:
getAllCommentsOnPublication in interface com.silverpeas.comment.service.CommentService

getMostCommentedPublicationsInfo

public List<com.silverpeas.comment.model.CommentedPublicationInfo> getMostCommentedPublicationsInfo(String resourceType,
                                                                                                    List<? extends com.stratelia.webactiv.util.WAPrimaryKey> pks)
Specified by:
getMostCommentedPublicationsInfo in interface com.silverpeas.comment.service.CommentService

getAllMostCommentedPublicationsInfo

public List<com.silverpeas.comment.model.CommentedPublicationInfo> getAllMostCommentedPublicationsInfo()
Specified by:
getAllMostCommentedPublicationsInfo in interface com.silverpeas.comment.service.CommentService

getCommentsCountOnPublication

public int getCommentsCountOnPublication(String resourceType,
                                         com.stratelia.webactiv.util.WAPrimaryKey pk)
Specified by:
getCommentsCountOnPublication in interface com.silverpeas.comment.service.CommentService

indexAllCommentsOnPublication

public void indexAllCommentsOnPublication(String resourceType,
                                          com.stratelia.webactiv.util.WAPrimaryKey pk)
Specified by:
indexAllCommentsOnPublication in interface com.silverpeas.comment.service.CommentService

unindexAllCommentsOnPublication

public void unindexAllCommentsOnPublication(String resourceType,
                                            com.stratelia.webactiv.util.WAPrimaryKey pk)
Specified by:
unindexAllCommentsOnPublication in interface com.silverpeas.comment.service.CommentService

getContentById

public com.silverpeas.comment.model.Comment getContentById(String contentId)
Specified by:
getContentById in interface com.silverpeas.SilverpeasComponentService<com.silverpeas.comment.model.Comment>

getComponentSettings

public com.stratelia.webactiv.util.ResourceLocator getComponentSettings()
Specified by:
getComponentSettings in interface com.silverpeas.SilverpeasComponentService<com.silverpeas.comment.model.Comment>

getComponentMessages

public com.stratelia.webactiv.util.ResourceLocator getComponentMessages(String language)
Specified by:
getComponentMessages in interface com.silverpeas.SilverpeasComponentService<com.silverpeas.comment.model.Comment>

getMostCommentedPublicationsInfo

public List<com.silverpeas.comment.model.CommentedPublicationInfo> getMostCommentedPublicationsInfo(String resourceType)
Specified by:
getMostCommentedPublicationsInfo in interface com.silverpeas.comment.service.CommentService

getLastComments

public List<com.silverpeas.comment.model.Comment> getLastComments(String resourceType,
                                                                  int count)
Specified by:
getLastComments in interface com.silverpeas.comment.service.CommentService

getSocialInformationCommentsListByUserId

public List<com.silverpeas.comment.socialnetwork.SocialInformationComment> getSocialInformationCommentsListByUserId(List<String> listResourceType,
                                                                                                                    String userId,
                                                                                                                    org.silverpeas.date.Period period)
Specified by:
getSocialInformationCommentsListByUserId in interface com.silverpeas.comment.service.CommentService

getSocialInformationCommentsListOfMyContacts

public List<com.silverpeas.comment.socialnetwork.SocialInformationComment> getSocialInformationCommentsListOfMyContacts(List<String> listResourceType,
                                                                                                                        List<String> myContactsIds,
                                                                                                                        List<String> listInstanceId,
                                                                                                                        org.silverpeas.date.Period period)
Specified by:
getSocialInformationCommentsListOfMyContacts in interface com.silverpeas.comment.service.CommentService


Copyright © 2016 Silverpeas. All Rights Reserved.