public class PollAccountDAOImpl<E extends PollAccount> extends PollAccountDAOAbstract<E>
| Constructor and Description |
|---|
PollAccountDAOImpl() |
| Modifier and Type | Method and Description |
|---|---|
List<E> |
findFavoriteListUsers(PersonList favoriteList,
org.nuiton.topia.persistence.pager.TopiaPagerBean pager) |
E |
findRestrictedPollAccount(String pollId,
String accountId,
UserAccount user)
Get a restricted poll account for a given poll (by his
Poll.getPollId())
using the PollAccount.getAccountId() of the pollAccount
and/or the PollAccount.getEmail(). |
E |
findVoterPollAccount(String pollId,
String accountId,
UserAccount user)
Get the pollAccount of a voter for a given
pollId using his
accountId or user. |
boolean |
isPollAccountExists(PersonList personListToUpdate,
PollAccount pollAccount) |
delete, findAllByAccountId, findAllByEmail, findAllByPersonList, findAllByUserAccount, findAllByVotingId, findAllContainsVote, findAllUsages, findByAccountId, findByEmail, findByPersonList, findByUserAccount, findByVotingId, findContainsVote, findUsages, getEntityClass, getTopiaEntityEnumaddTopiaEntityListener, addTopiaEntityVetoable, computeAndAddRecordsToPager, count, countByQuery, countByQuery, create, create, create, createQuery, createQuery, createSimpleQuery, deleteAll, existByProperties, existByQuery, existByTopiaId, existsByQuery, findAll, findAllByProperties, findAllByProperties, findAllByProperty, findAllByQuery, findAllByQuery, findAllByQuery, findAllByQueryAndPager, findAllByQueryAndPager, findAllByQueryWithBound, findAllByQueryWithBound, findAllContains, findAllIds, findAllLazyByQuery, findAllLazyByQuery, findAllLazyByQuery, findAllLazyByQuery, findAllMappedByQuery, findAllMappedByQuery, findAllWithOrder, findByPrimaryKey, findByPrimaryKey, findByProperties, findByProperties, findByProperty, findByQuery, findByQuery, findByQuery, findByTopiaId, findContains, getBatchSize, getContext, getId, getId, getRequestPermission, init, iterator, newInstance, removeTopiaEntityListener, removeTopiaEntityVetoable, setBatchSize, updatepublic E findRestrictedPollAccount(String pollId, String accountId, UserAccount user) throws org.nuiton.topia.TopiaException
Poll.getPollId())
using the PollAccount.getAccountId() of the pollAccount
and/or the PollAccount.getEmail().
Note: accountId and user can not
be null at the same time.pollId - pollId of the pollaccountId - the accountId of the pollAccount to finduser - the connected user account to testnull if not foudorg.nuiton.topia.TopiaException - if any db pbpublic E findVoterPollAccount(String pollId, String accountId, UserAccount user) throws org.nuiton.topia.TopiaException
pollId using his
accountId or user.
Note: accountId and user can not
be null at the same time.pollId - the poll where to seekaccountId - the account id to testuser - the connected user account to testnull if not foundorg.nuiton.topia.TopiaException - if any db pbpublic List<E> findFavoriteListUsers(PersonList favoriteList, org.nuiton.topia.persistence.pager.TopiaPagerBean pager) throws org.nuiton.topia.TopiaException
org.nuiton.topia.TopiaExceptionpublic boolean isPollAccountExists(PersonList personListToUpdate, PollAccount pollAccount) throws org.nuiton.topia.TopiaException
org.nuiton.topia.TopiaExceptionCopyright © 2009-2012 CodeLutin. All Rights Reserved.