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 java.lang.Object
implements ServiceComment

Implémentation du service de gestion des commentaires.

Version:
$Id: ServiceCommentImpl.java 2737 2009-08-20 13:00:52Z nrannou $
Author:
enema, rannou

Constructor Summary
ServiceCommentImpl()
           
 
Method Summary
 java.lang.String createComment(CommentDTO comment)
          Création d'un commentaire
 java.util.List<Comment> createComments(java.util.List<CommentDTO> comments, java.lang.String pollId, org.nuiton.topia.TopiaContext trans)
          Création des commentaires d'un sondage
 boolean deleteComment(java.lang.String commentId)
          Suppression d'un commentaire
 CommentDTO findCommentById(java.lang.String commentId)
          Récupération d'un commentaire à partir de son identifiant
 java.util.List<CommentDTO> selectComments(java.util.Map<java.lang.String,java.lang.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 java.lang.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 java.util.List<Comment> createComments(java.util.List<CommentDTO> comments,
                                              java.lang.String pollId,
                                              org.nuiton.topia.TopiaContext trans)
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
trans - 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(java.lang.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(java.lang.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 java.util.List<CommentDTO> selectComments(java.util.Map<java.lang.String,java.lang.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 CodeLutin. All Rights Reserved.