org.chorem.pollen.services.impl
Class FavoriteService

java.lang.Object
  extended by org.chorem.pollen.services.PollenServiceSupport
      extended by org.chorem.pollen.services.impl.FavoriteService
All Implemented Interfaces:
PollenService

public class FavoriteService
extends PollenServiceSupport


Field Summary
 
Fields inherited from class org.chorem.pollen.services.PollenServiceSupport
serviceContext
 
Constructor Summary
FavoriteService()
           
 
Method Summary
 void addPollAccountToFavoriteList(PersonList favoriteList, PollAccount pollAccount)
           
 PersonList createFavoriteList(UserAccount user, String name)
           
 PersonList deleteFavoriteList(UserAccount user, PersonList favoriteList)
           
 void editPollAccountToFavoriteList(PersonList favoriteList, PollAccount pollAccount)
           
 PersonList getFavoriteList(UserAccount user, String favoriteListId)
           
 List<PersonList> getFavoriteLists(UserAccount user)
           
 List<PersonList> getFavoriteLists(UserAccount user, org.nuiton.topia.persistence.TopiaFilterPagerUtil.FilterPagerBean pager)
           
 List<PollAccount> getFavoriteListUsers(PersonList favoriteList, org.nuiton.topia.persistence.TopiaFilterPagerUtil.FilterPagerBean pager)
           
 PersonList newFavoriteList()
           
 PollAccount newPollAccountForFavoriteList()
           
 void removePollAccountToFavoriteList(PersonList favoriteList, PollAccount pollAccount)
           
 
Methods inherited from class org.chorem.pollen.services.PollenServiceSupport
commitTransaction, create, decorateDate, decorateDateTime, delete, flushTransaction, getConfiguration, getDAO, getDatePattern, getDateTimePattern, getEntities, getEntities, getEntityById, getLocale, getTransaction, newInstance, newService, setServiceContext, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FavoriteService

public FavoriteService()
Method Detail

getFavoriteLists

public List<PersonList> getFavoriteLists(UserAccount user,
                                         org.nuiton.topia.persistence.TopiaFilterPagerUtil.FilterPagerBean pager)

getFavoriteLists

public List<PersonList> getFavoriteLists(UserAccount user)

getFavoriteList

public PersonList getFavoriteList(UserAccount user,
                                  String favoriteListId)
                           throws FavoriteListNotFoundException,
                                  FavoriteListNotOwnedByUserException
Throws:
FavoriteListNotFoundException
FavoriteListNotOwnedByUserException

getFavoriteListUsers

public List<PollAccount> getFavoriteListUsers(PersonList favoriteList,
                                              org.nuiton.topia.persistence.TopiaFilterPagerUtil.FilterPagerBean pager)

createFavoriteList

public PersonList createFavoriteList(UserAccount user,
                                     String name)
                              throws FavoriteListAlreadyExistException,
                                     UserNotFoundException
Throws:
FavoriteListAlreadyExistException
UserNotFoundException

deleteFavoriteList

public PersonList deleteFavoriteList(UserAccount user,
                                     PersonList favoriteList)
                              throws FavoriteListNotFoundException,
                                     FavoriteListNotOwnedByUserException,
                                     UserNotFoundException
Throws:
FavoriteListNotFoundException
FavoriteListNotOwnedByUserException
UserNotFoundException

addPollAccountToFavoriteList

public void addPollAccountToFavoriteList(PersonList favoriteList,
                                         PollAccount pollAccount)
                                  throws ParticipantAlreadyFoundInListException,
                                         FavoriteListNotFoundException
Throws:
ParticipantAlreadyFoundInListException
FavoriteListNotFoundException

editPollAccountToFavoriteList

public void editPollAccountToFavoriteList(PersonList favoriteList,
                                          PollAccount pollAccount)
                                   throws ParticipantAlreadyFoundInListException,
                                          FavoriteListNotFoundException,
                                          ParticipantNotFoundException
Throws:
ParticipantAlreadyFoundInListException
FavoriteListNotFoundException
ParticipantNotFoundException

removePollAccountToFavoriteList

public void removePollAccountToFavoriteList(PersonList favoriteList,
                                            PollAccount pollAccount)
                                     throws ParticipantNotFoundException,
                                            FavoriteListNotFoundException,
                                            ParticipantNotFoundInListException
Throws:
ParticipantNotFoundException
FavoriteListNotFoundException
ParticipantNotFoundInListException

newFavoriteList

public PersonList newFavoriteList()

newPollAccountForFavoriteList

public PollAccount newPollAccountForFavoriteList()


Copyright © 2009-2012 CodeLutin. All Rights Reserved.