public interface IFollowService
| Modifier and Type | Method and Description |
|---|---|
void |
create(Follow follow)
Insert.
|
void |
doCancelFollow(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 |
doFollow(String strIdExtendableResource,
String strExtendableResourceType,
int nVoteValue,
javax.servlet.http.HttpServletRequest request)
Increment vote.
|
List<Follow> |
findByFilter(FollowFilter filter)
Find by filter
|
Follow |
findByPrimaryKey(int nIdFollow)
Load.
|
Follow |
findByResource(String strIdExtendableResource,
String strExtendableResourceType)
Select by resource.
|
void |
remove(int nIdFollow)
Delete.
|
void |
removeByResource(String strIdExtendableResource,
String strExtendableResourceType)
Delete by resource
|
void |
update(Follow follow)
Store.
|
@Transactional(value="extendfollow.transactionManager") void remove(int nIdFollow)
nIdFollow - the nId follow@Transactional(value="extendfollow.transactionManager") void removeByResource(String strIdExtendableResource, String strExtendableResourceType)
strIdExtendableResource - the str id extendable resourcestrExtendableResourceType - the str extendable resource type@Transactional(value="extendfollow.transactionManager") void create(Follow follow)
follow - the follow@Transactional(value="extendfollow.transactionManager") void update(Follow follow)
follow - the follow@Transactional(value="extendfollow.transactionManager") void doFollow(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 doCancelFollow(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 requestFollow findByPrimaryKey(int nIdFollow)
nIdFollow - the n id followFollow findByResource(String strIdExtendableResource, String strExtendableResourceType)
strIdExtendableResource - the str id extendable resourcestrExtendableResourceType - the str extendable resource typeList<Follow> findByFilter(FollowFilter filter)
filter - the filterCopyright © 2017 City of Paris. All rights reserved.