public class FollowService extends Object implements IFollowService
| Modifier and Type | Field and Description |
|---|---|
static String |
BEAN_SERVICE
The Constant BEAN_SERVICE.
|
| Constructor and Description |
|---|
FollowService() |
| 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.
|
boolean |
isAuthorized(javax.servlet.http.HttpServletRequest request,
FollowExtenderConfig config)
Returns true if user is authorized to follow
|
void |
remove(int nIdFollow)
Delete.
|
void |
removeByResource(String strIdExtendableResource,
String strExtendableResourceType)
Delete by resource
|
void |
update(Follow follow)
Store.
|
public static final String BEAN_SERVICE
@Transactional(value="extendfollow.transactionManager") public void create(Follow follow)
create in interface IFollowServicefollow - the follow@Transactional(value="extendfollow.transactionManager") public void update(Follow follow)
update in interface IFollowServicefollow - the follow@Transactional(value="extendfollow.transactionManager") public void doFollow(String strIdExtendableResource, String strExtendableResourceType, int nVoteValue, javax.servlet.http.HttpServletRequest request)
doFollow in interface IFollowServicestrIdExtendableResource - the str id extendable resourcestrExtendableResourceType - the str extendable resource typenVoteValue - the n vote valuerequest - the request@Transactional(value="extendfollow.transactionManager")
public void doCancelFollow(fr.paris.lutece.portal.service.security.LuteceUser user,
String strIdExtendableResource,
String strExtendableResourceType,
javax.servlet.http.HttpServletRequest request)
doCancelFollow in interface IFollowServiceuser - The userstrIdExtendableResource - The id of the extendable resourcestrExtendableResourceType - The extendable resource typerequest - the request@Transactional(value="extendfollow.transactionManager") public void remove(int nIdFollow)
remove in interface IFollowServicenIdFollow - the nId follow@Transactional(value="extendfollow.transactionManager") public void removeByResource(String strIdExtendableResource, String strExtendableResourceType)
removeByResource in interface IFollowServicestrIdExtendableResource - the str id extendable resourcestrExtendableResourceType - the str extendable resource typepublic Follow findByPrimaryKey(int nIdFollow)
findByPrimaryKey in interface IFollowServicenIdFollow - the n id followpublic Follow findByResource(String strIdExtendableResource, String strExtendableResourceType)
findByResource in interface IFollowServicestrIdExtendableResource - the str id extendable resourcestrExtendableResourceType - the str extendable resource typepublic List<Follow> findByFilter(FollowFilter filter)
findByFilter in interface IFollowServicefilter - the filterpublic boolean isAuthorized(javax.servlet.http.HttpServletRequest request,
FollowExtenderConfig config)
isAuthorized in interface IFollowServiceCopyright © 2022 City of Paris. All rights reserved.