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(String commentId)
           
 List<Comment> getAllComments(String pollId)
           
 List<Comment> getComments(org.nuiton.topia.persistence.TopiaFilterPagerUtil.FilterPagerBean pager, String pollId)
           
 Comment getNewComment(PollAccount account, String author, String text)
           
 boolean isCanDeleteComment(Comment comment, PollAccount pollAccount, UserAccount userAccount)
           
 
Methods inherited from class org.chorem.pollen.services.PollenServiceSupport
commitTransaction, create, delete, flushTransaction, getConfiguration, getDAO, 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

createComment

public Comment createComment(Poll poll,
                             Comment comment)

deleteComment

public void deleteComment(String commentId)
                   throws PollCommentNotFound
Throws:
PollCommentNotFound

getNewComment

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

isCanDeleteComment

public boolean isCanDeleteComment(Comment comment,
                                  PollAccount pollAccount,
                                  UserAccount userAccount)

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.