Interface IFollowService
- All Known Implementing Classes:
FollowService
public interface IFollowService
IFollowService.
-
Method Summary
Modifier and TypeMethodDescriptionvoidInsert.voiddoCancelFollow(fr.paris.lutece.portal.service.security.LuteceUser user, String strIdExtendableResource, String strExtendableResourceType, javax.servlet.http.HttpServletRequest request) Do cancel the vote of a uservoiddoFollow(String strIdExtendableResource, String strExtendableResourceType, int nVoteValue, javax.servlet.http.HttpServletRequest request) Increment vote.findByFilter(FollowFilter filter) Find by filterfindByPrimaryKey(int nIdFollow) Load.findByResource(String strIdExtendableResource, String strExtendableResourceType) Select by resource.booleanisAuthorized(javax.servlet.http.HttpServletRequest request, FollowExtenderConfig config) Returns true if user is authorized to followvoidremove(int nIdFollow) Delete.voidremoveByResource(String strIdExtendableResource, String strExtendableResourceType) Delete by resourcevoidStore.
-
Method Details
-
remove
@Transactional("extendfollow.transactionManager") void remove(int nIdFollow) Delete.- Parameters:
nIdFollow- the nId follow
-
removeByResource
@Transactional("extendfollow.transactionManager") void removeByResource(String strIdExtendableResource, String strExtendableResourceType) Delete by resource- Parameters:
strIdExtendableResource- the str id extendable resourcestrExtendableResourceType- the str extendable resource type
-
create
Insert.- Parameters:
follow- the follow
-
update
Store.- Parameters:
follow- the follow
-
doFollow
@Transactional("extendfollow.transactionManager") void doFollow(String strIdExtendableResource, String strExtendableResourceType, int nVoteValue, javax.servlet.http.HttpServletRequest request) Increment vote.- Parameters:
strIdExtendableResource- the str id extendable resourcestrExtendableResourceType- the str extendable resource typenVoteValue- the n vote valuerequest- the request
-
doCancelFollow
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- Parameters:
user- The userstrIdExtendableResource- The id of the extendable resourcestrExtendableResourceType- The extendable resource typerequest- the request
-
findByPrimaryKey
Load.- Parameters:
nIdFollow- the n id follow- Returns:
- the follow
-
findByResource
Select by resource.- Parameters:
strIdExtendableResource- the str id extendable resourcestrExtendableResourceType- the str extendable resource type- Returns:
- the follow
-
findByFilter
Find by filter- Parameters:
filter- the filter- Returns:
- list Follow by filter
-
isAuthorized
Returns true if user is authorized to follow- Parameters:
request-config-- Returns:
-