org.chorem.pollen.business.services
Class ServiceCommentImpl

java.lang.Object
  extended by org.chorem.pollen.business.services.ServiceCommentImpl
All Implemented Interfaces:
ServiceComment

public class ServiceCommentImpl
extends Object
implements ServiceComment

Implémentation du service de gestion des commentaires.

Version:
$Id: ServiceCommentImpl.java 2862 2010-02-09 15:31:45Z jruchaud $
Author:
enema, rannou

Constructor Summary
ServiceCommentImpl()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceCommentImpl

public ServiceCommentImpl()
Method Detail

createComment

public String createComment(CommentDTO comment)
Description copied from interface: ServiceComment
Création d'un commentaire

Specified by:
createComment in interface ServiceComment
Parameters:
comment - le commentaire
Returns:
identifiant du commentaire créé

createComments

public List<Comment> createComments(List<CommentDTO> comments,
                                    String pollId,
                                    org.nuiton.topia.TopiaContext transaction)
Description copied from interface: ServiceComment
Création des commentaires d'un sondage

Specified by:
createComments in interface ServiceComment
Parameters:
comments - les dtos commentaires
pollId - l'identifiant du sondage
transaction - la transaction du sondage
Returns:
les commentaires créés

updateComment

public boolean updateComment(CommentDTO comment)
Description copied from interface: ServiceComment
Mise à jour d'un commentaire

Specified by:
updateComment in interface ServiceComment
Parameters:
comment - le commentaire
Returns:
true si le commentaire a été mise à jours

deleteComment

public boolean deleteComment(String commentId)
Description copied from interface: ServiceComment
Suppression d'un commentaire

Specified by:
deleteComment in interface ServiceComment
Parameters:
commentId - identifiant du commentaire
Returns:
true si le commentaire a été supprimé

findCommentById

public CommentDTO findCommentById(String commentId)
Description copied from interface: ServiceComment
Récupération d'un commentaire à partir de son identifiant

Specified by:
findCommentById in interface ServiceComment
Parameters:
commentId - identifiant du commentaire
Returns:
le commentaire

selectComments

public List<CommentDTO> selectComments(Map<String,Object> properties)
Description copied from interface: ServiceComment
Recherche des commentaires d'un sondage à partir d'un filtre

Specified by:
selectComments in interface ServiceComment
Parameters:
properties - filtre sur les champs de la table commentaire
Returns:
les commentaires


Copyright © 2009-2010 CodeLutin. All Rights Reserved.