public interface IRatingSecurityService
Modifier and Type | Method and Description |
---|---|
boolean |
canDeleteVote(javax.servlet.http.HttpServletRequest request,
String strIdExtendableResource,
String strExtendableResourceType)
Check if the given user (authenticated) can delete his vote.
|
boolean |
canVote(javax.servlet.http.HttpServletRequest request,
String strIdExtendableResource,
String strExtendableResourceType)
Check if the given user (authenticated or not) can vote or not.
|
boolean |
hasAlreadyVoted(javax.servlet.http.HttpServletRequest request,
String strIdExtendableResource,
String strExtendableResourceType)
true if the use has already Voted
|
boolean |
isVoteClosed(RatingExtenderConfig config)
Check if the Votes are closed
|
boolean canVote(javax.servlet.http.HttpServletRequest request, String strIdExtendableResource, String strExtendableResourceType) throws fr.paris.lutece.portal.service.security.UserNotSignedException
request
- the requeststrIdExtendableResource
- the str id extendable resourcestrExtendableResourceType
- the str extendable resource typefr.paris.lutece.portal.service.security.UserNotSignedException
boolean canDeleteVote(javax.servlet.http.HttpServletRequest request, String strIdExtendableResource, String strExtendableResourceType)
request
- the requeststrIdExtendableResource
- the str id extendable resourcestrExtendableResourceType
- the str extendable resource typeboolean isVoteClosed(RatingExtenderConfig config)
config
- the rating configboolean hasAlreadyVoted(javax.servlet.http.HttpServletRequest request, String strIdExtendableResource, String strExtendableResourceType)
request
- strIdExtendableResource
- the str id extendable resourcestrExtendableResourceType
- the str extendable resource typeCopyright © 2015 City of Paris. All rights reserved.