org.chorem.pollen.business.services
Interface ServiceComment

All Known Implementing Classes:
ServiceCommentImpl

public interface ServiceComment

Interface de gestion des commentaires d'un sondage

Version:
$Id: ServiceComment.java 2649 2009-07-15 16:30:23Z nrannou $
Author:
enema

Method Summary
 String createComment(CommentDTO comment)
          Création d'un commentaire
 List<Comment> createComments(List<CommentDTO> comments, String pollId, org.nuiton.topia.TopiaContext transaction)
          Création des commentaires d'un sondage
 boolean deleteComment(String commentId)
          Suppression d'un commentaire
 CommentDTO findCommentById(String commentId)
          Récupération d'un commentaire à partir de son identifiant
 List<CommentDTO> selectComments(Map<String,Object> properties)
          Recherche des commentaires d'un sondage à partir d'un filtre
 boolean updateComment(CommentDTO comment)
          Mise à jour d'un commentaire
 

Method Detail

createComment

String createComment(CommentDTO comment)
Création d'un commentaire

Parameters:
comment - le commentaire
Returns:
identifiant du commentaire créé

createComments

List<Comment> createComments(List<CommentDTO> comments,
                             String pollId,
                             org.nuiton.topia.TopiaContext transaction)
Création des commentaires d'un sondage

Parameters:
comments - les dtos commentaires
pollId - l'identifiant du sondage
transaction - la transaction du sondage
Returns:
les commentaires créés

updateComment

boolean updateComment(CommentDTO comment)
Mise à jour d'un commentaire

Parameters:
comment - le commentaire
Returns:
true si le commentaire a été mise à jours

deleteComment

boolean deleteComment(String commentId)
Suppression d'un commentaire

Parameters:
commentId - identifiant du commentaire
Returns:
true si le commentaire a été supprimé

findCommentById

CommentDTO findCommentById(String commentId)
Récupération d'un commentaire à partir de son identifiant

Parameters:
commentId - identifiant du commentaire
Returns:
le commentaire

selectComments

List<CommentDTO> selectComments(Map<String,Object> properties)
Recherche des commentaires d'un sondage à partir d'un filtre

Parameters:
properties - filtre sur les champs de la table commentaire
Returns:
les commentaires


Copyright © 2009-2010 CodeLutin. All Rights Reserved.