org.chorem.pollen.business
Class ServicePollAccountImpl

java.lang.Object
  extended by org.chorem.pollen.business.ServicePollAccountImpl
All Implemented Interfaces:
ServicePollAccount

public class ServicePollAccountImpl
extends java.lang.Object
implements ServicePollAccount

Implémentation du service de gestion des comptes.

Version:
$Id: ServicePollAccountImpl.java 2621 2009-07-03 15:09:23Z nrannou $
Author:
kmorin, rannou

Constructor Summary
ServicePollAccountImpl()
           
 
Method Summary
 java.lang.String createPollAccount(PollAccountDTO pollAccountDTO)
          Creation d'un compte utilisateur.
 PollAccount createPollAccount(java.lang.String votingId, java.lang.String email, java.lang.String userId)
          Creation d'un compte utilisateur.
 java.util.List<PollAccount> createPollAccounts(java.util.List<PollAccountDTO> pollAccounts, org.nuiton.topia.TopiaContext trans)
          Creation des comptes utilisateur.
 boolean deletePollAccount(java.lang.String pollAccountId)
          Suppression d'un compte.
 PollAccountDTO findPollAccountById(java.lang.String pollAccountId)
          Récupération du compte à partir de son identifiant.
 java.util.List<PollAccountDTO> findPollAccountsByUser(java.lang.String userId)
          Récupération des comptes d'un utilisateur.
 java.util.List<PollAccountDTO> selectPollAccounts(java.util.Map<java.lang.String,java.lang.Object> properties)
          Recherche des comptes à partir d'un filtre.
 boolean updatePollAccount(PollAccountDTO pollAccountDTO)
          Modification d'un compte.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServicePollAccountImpl

public ServicePollAccountImpl()
Method Detail

createPollAccount

public java.lang.String createPollAccount(PollAccountDTO pollAccountDTO)
Description copied from interface: ServicePollAccount
Creation d'un compte utilisateur.

Specified by:
createPollAccount in interface ServicePollAccount
Parameters:
pollAccountDTO - le compte à creer
Returns:
le topiaId du compte créé

createPollAccount

public PollAccount createPollAccount(java.lang.String votingId,
                                     java.lang.String email,
                                     java.lang.String userId)
Description copied from interface: ServicePollAccount
Creation d'un compte utilisateur.

Specified by:
createPollAccount in interface ServicePollAccount
Parameters:
votingId - l'identifiant du votant
email - l'email du votant
userId - l'identifiant de l'utilisateur
Returns:
le topiaId du compte créé

createPollAccounts

public java.util.List<PollAccount> createPollAccounts(java.util.List<PollAccountDTO> pollAccounts,
                                                      org.nuiton.topia.TopiaContext trans)
Description copied from interface: ServicePollAccount
Creation des comptes utilisateur.

Specified by:
createPollAccounts in interface ServicePollAccount
Parameters:
pollAccounts - les comptes à creer
trans - la transaction
Returns:
les comptes créés

deletePollAccount

public boolean deletePollAccount(java.lang.String pollAccountId)
Description copied from interface: ServicePollAccount
Suppression d'un compte.

Specified by:
deletePollAccount in interface ServicePollAccount
Parameters:
pollAccountId - le compte a creer
Returns:
true si le compte a été supprimer

updatePollAccount

public boolean updatePollAccount(PollAccountDTO pollAccountDTO)
Description copied from interface: ServicePollAccount
Modification d'un compte.

Specified by:
updatePollAccount in interface ServicePollAccount
Parameters:
pollAccountDTO - le compte a modifier
Returns:
true si le compte à été modifier

findPollAccountById

public PollAccountDTO findPollAccountById(java.lang.String pollAccountId)
Description copied from interface: ServicePollAccount
Récupération du compte à partir de son identifiant.

Specified by:
findPollAccountById in interface ServicePollAccount
Parameters:
pollAccountId - l'identifiant du compte à rechercher
Returns:
un compte

findPollAccountsByUser

public java.util.List<PollAccountDTO> findPollAccountsByUser(java.lang.String userId)
Description copied from interface: ServicePollAccount
Récupération des comptes d'un utilisateur.

Specified by:
findPollAccountsByUser in interface ServicePollAccount
Parameters:
userId - l'identifiant de l'utilisateur
Returns:
la liste des comptes de l'utilisateur

selectPollAccounts

public java.util.List<PollAccountDTO> selectPollAccounts(java.util.Map<java.lang.String,java.lang.Object> properties)
Description copied from interface: ServicePollAccount
Recherche des comptes à partir d'un filtre.

Specified by:
selectPollAccounts in interface ServicePollAccount
Parameters:
properties - filtre sur les champs de la table pollAccount
Returns:
les comptes


Copyright © 2009 CodeLutin. All Rights Reserved.