org.chorem.pollen.services.impl
Class PollCommentService

java.lang.Object
  extended by org.chorem.pollen.services.PollenServiceSupport
      extended by org.chorem.pollen.services.impl.PollCommentService
All Implemented Interfaces:
PollenService

public class PollCommentService
extends PollenServiceSupport

Manage comments on a poll.

Since:
1.3
Author:
tchemit

Field Summary
 
Fields inherited from class org.chorem.pollen.services.PollenServiceSupport
serviceContext
 
Constructor Summary
PollCommentService()
           
 
Method Summary
 Comment createComment(Poll poll, Comment comment)
           
 void deleteComment(Poll poll, String commentId, String reason)
           
 List<Comment> getAllComments(String pollId)
           
 List<Comment> getComments(org.nuiton.topia.persistence.TopiaFilterPagerUtil.FilterPagerBean pager, String pollId)
           
 Comment getExistingPollComment(String commentId)
           
 Comment getNewComment(PollAccount account, String author, String text)
           
 
Methods inherited from class org.chorem.pollen.services.PollenServiceSupport
commitTransaction, create, createWithProperties, decorateDate, decorateDateTime, delete, flushTransaction, generateId, getConfiguration, getDAO, getDatePattern, getDateTimePattern, getEntities, getEntities, getEntityById, getLocale, getTransaction, newInstance, newService, setServiceContext, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PollCommentService

public PollCommentService()
Method Detail

getExistingPollComment

public Comment getExistingPollComment(String commentId)
                               throws PollCommentNotFound
Throws:
PollCommentNotFound

createComment

public Comment createComment(Poll poll,
                             Comment comment)

deleteComment

public void deleteComment(Poll poll,
                          String commentId,
                          String reason)
                   throws PollCommentNotFound
Throws:
PollCommentNotFound

getNewComment

public Comment getNewComment(PollAccount account,
                             String author,
                             String text)

getComments

public List<Comment> getComments(org.nuiton.topia.persistence.TopiaFilterPagerUtil.FilterPagerBean pager,
                                 String pollId)

getAllComments

public List<Comment> getAllComments(String pollId)


Copyright © 2009-2012 CodeLutin. All Rights Reserved.