Class FollowService
java.lang.Object
fr.paris.lutece.plugins.extend.modules.follow.service.FollowService
- All Implemented Interfaces:
IFollowService
followService
-
Field Summary
Fields -
Constructor Summary
Constructors -
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.
-
Field Details
-
BEAN_SERVICE
The Constant BEAN_SERVICE.- See Also:
-
-
Constructor Details
-
FollowService
public FollowService()
-
-
Method Details
-
create
Insert.- Specified by:
createin interfaceIFollowService- Parameters:
follow- the follow
-
update
Store.- Specified by:
updatein interfaceIFollowService- Parameters:
follow- the follow
-
doFollow
@Transactional("extendfollow.transactionManager") public void doFollow(String strIdExtendableResource, String strExtendableResourceType, int nVoteValue, javax.servlet.http.HttpServletRequest request) Increment vote.- Specified by:
doFollowin interfaceIFollowService- Parameters:
strIdExtendableResource- the str id extendable resourcestrExtendableResourceType- the str extendable resource typenVoteValue- the n vote valuerequest- the request
-
doCancelFollow
@Transactional("extendfollow.transactionManager") public 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- Specified by:
doCancelFollowin interfaceIFollowService- Parameters:
user- The userstrIdExtendableResource- The id of the extendable resourcestrExtendableResourceType- The extendable resource typerequest- the request
-
remove
@Transactional("extendfollow.transactionManager") public void remove(int nIdFollow) Delete.- Specified by:
removein interfaceIFollowService- Parameters:
nIdFollow- the nId follow
-
removeByResource
@Transactional("extendfollow.transactionManager") public void removeByResource(String strIdExtendableResource, String strExtendableResourceType) Delete by resource- Specified by:
removeByResourcein interfaceIFollowService- Parameters:
strIdExtendableResource- the str id extendable resourcestrExtendableResourceType- the str extendable resource type
-
findByPrimaryKey
Load.- Specified by:
findByPrimaryKeyin interfaceIFollowService- Parameters:
nIdFollow- the n id follow- Returns:
- the follow
-
findByResource
Select by resource.- Specified by:
findByResourcein interfaceIFollowService- Parameters:
strIdExtendableResource- the str id extendable resourcestrExtendableResourceType- the str extendable resource type- Returns:
- the follow
-
findByFilter
Find by filter- Specified by:
findByFilterin interfaceIFollowService- Parameters:
filter- the filter- Returns:
- list Follow by filter
-
isAuthorized
public boolean isAuthorized(javax.servlet.http.HttpServletRequest request, FollowExtenderConfig config) Returns true if user is authorized to follow- Specified by:
isAuthorizedin interfaceIFollowService- Returns:
-