org.chorem.pollen.business.services
Class ServicePollAccountImpl

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

public class ServicePollAccountImpl
extends Object
implements ServicePollAccount

Implémentation du service de gestion des comptes.

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

Constructor Summary
ServicePollAccountImpl()
           
 
Method Summary
 String createPollAccount(PollAccountDTO pollAccountDTO)
          Creation d'un compte utilisateur.
 PollAccount createPollAccount(String votingId, String email, String userId)
          Creation d'un compte utilisateur.
 List<PollAccount> createPollAccounts(List<PollAccountDTO> pollAccounts, org.nuiton.topia.TopiaContext transaction)
          Creation des comptes utilisateur.
 boolean deletePollAccount(String pollAccountId)
          Suppression d'un compte.
 PollAccountDTO findPollAccountByAccountId(String pollAccountId)
          Récupération du compte à partir de son identifiant.
 PollAccountDTO findPollAccountById(String pollAccountId)
          Récupération du compte à partir de son identifiant ToPIA.
 List<PollAccountDTO> findPollAccountsByUser(String userId)
          Récupération des comptes d'un utilisateur.
 List<PollAccountDTO> selectPollAccounts(Map<String,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 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(String votingId,
                                     String email,
                                     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 List<PollAccount> createPollAccounts(List<PollAccountDTO> pollAccounts,
                                            org.nuiton.topia.TopiaContext transaction)
Description copied from interface: ServicePollAccount
Creation des comptes utilisateur.

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

deletePollAccount

public boolean deletePollAccount(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(String pollAccountId)
Description copied from interface: ServicePollAccount
Récupération du compte à partir de son identifiant ToPIA.

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

findPollAccountByAccountId

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

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

findPollAccountsByUser

public List<PollAccountDTO> findPollAccountsByUser(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 List<PollAccountDTO> selectPollAccounts(Map<String,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-2010 CodeLutin. All Rights Reserved.