public interface IFavoriteService
| Modifier and Type | Method and Description |
|---|---|
void |
create(Favorite favorite)
Insert.
|
void |
doCancelFavorite(fr.paris.lutece.portal.service.security.LuteceUser user,
String strIdExtendableResource,
String strExtendableResourceType,
javax.servlet.http.HttpServletRequest request)
Do cancel the vote of a user
|
void |
doFavorite(String strIdExtendableResource,
String strExtendableResourceType,
int nVoteValue,
javax.servlet.http.HttpServletRequest request)
Increment vote.
|
List<Favorite> |
findByFilter(FavoriteFilter filter)
Find by filter
|
Favorite |
findByPrimaryKey(int nIdFavorite)
Load.
|
Favorite |
findByResource(String strIdExtendableResource,
String strExtendableResourceType)
Select by resource.
|
void |
remove(int nIdFavorite)
Delete.
|
void |
removeByResource(String strIdExtendableResource,
String strExtendableResourceType)
Delete by resource
|
void |
update(Favorite favorite)
Store.
|
@Transactional(value="extendfavorite.transactionManager") void remove(int nIdFavorite)
nIdFavorite - the nId favorite@Transactional(value="extendfavorite.transactionManager") void removeByResource(String strIdExtendableResource, String strExtendableResourceType)
strIdExtendableResource - the str id extendable resourcestrExtendableResourceType - the str extendable resource type@Transactional(value="extendfavorite.transactionManager") void create(Favorite favorite)
favorite - the favorite@Transactional(value="extendfavorite.transactionManager") void update(Favorite favorite)
favorite - the favorite@Transactional(value="extendfavorite.transactionManager") void doFavorite(String strIdExtendableResource, String strExtendableResourceType, int nVoteValue, javax.servlet.http.HttpServletRequest request)
strIdExtendableResource - the str id extendable resourcestrExtendableResourceType - the str extendable resource typenVoteValue - the n vote valuerequest - the requestvoid doCancelFavorite(fr.paris.lutece.portal.service.security.LuteceUser user,
String strIdExtendableResource,
String strExtendableResourceType,
javax.servlet.http.HttpServletRequest request)
user - The userstrIdExtendableResource - The id of the extendable resourcestrExtendableResourceType - The extendable resource typerequest - the requestFavorite findByPrimaryKey(int nIdFavorite)
nIdFavorite - the n id favoriteFavorite findByResource(String strIdExtendableResource, String strExtendableResourceType)
strIdExtendableResource - the str id extendable resourcestrExtendableResourceType - the str extendable resource typeList<Favorite> findByFilter(FavoriteFilter filter)
filter - the filterCopyright © 2018 City of Paris. All rights reserved.