org.chorem.pollen.services.impl
Class FavoriteService
java.lang.Object
org.chorem.pollen.services.PollenServiceSupport
org.chorem.pollen.services.impl.FavoriteService
- All Implemented Interfaces:
- PollenService
public class FavoriteService
- extends PollenServiceSupport
| Methods inherited from class org.chorem.pollen.services.PollenServiceSupport |
commitTransaction, create, createWithProperties, decorateDate, decorateDateTime, delete, flushTransaction, generateId, 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 |
FavoriteService
public FavoriteService()
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.