public class RatingSecurityService extends Object implements IRatingSecurityService
| Modifier and Type | Field and Description |
|---|---|
static String |
BEAN_SERVICE
The Constant BEAN_SERVICE.
|
| Constructor and Description |
|---|
RatingSecurityService() |
| 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
|
public static final String BEAN_SERVICE
public boolean canVote(javax.servlet.http.HttpServletRequest request,
String strIdExtendableResource,
String strExtendableResourceType)
throws fr.paris.lutece.portal.service.security.UserNotSignedException
canVote in interface IRatingSecurityServicerequest - the requeststrIdExtendableResource - the str id extendable resourcestrExtendableResourceType - the str extendable resource typefr.paris.lutece.portal.service.security.UserNotSignedExceptionpublic boolean canDeleteVote(javax.servlet.http.HttpServletRequest request,
String strIdExtendableResource,
String strExtendableResourceType)
canDeleteVote in interface IRatingSecurityServicerequest - the requeststrIdExtendableResource - the str id extendable resourcestrExtendableResourceType - the str extendable resource typepublic boolean isVoteClosed(RatingExtenderConfig config)
isVoteClosed in interface IRatingSecurityServiceconfig - the rating configpublic boolean hasAlreadyVoted(javax.servlet.http.HttpServletRequest request,
String strIdExtendableResource,
String strExtendableResourceType)
hasAlreadyVoted in interface IRatingSecurityServicestrIdExtendableResource - the str id extendable resourcestrExtendableResourceType - the str extendable resource typeCopyright © 2016 City of Paris. All rights reserved.