public class RatingSecurityService extends Object implements IRatingSecurityService
BEAN_SERVICE| Constructor and Description |
|---|
RatingSecurityService() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDeleteVote(fr.paris.lutece.portal.service.security.LuteceUser user,
String strIdExtendableResource,
String strExtendableResourceType)
Check if the given user (authenticated) can delete his vote.
|
boolean |
canDeleteVote(RatingExtenderConfig config,
fr.paris.lutece.portal.service.security.LuteceUser user,
String strIdExtendableResource,
String strExtendableResourceType)
Check if the given user (authenticated) can delete his vote.
|
boolean |
canVote(fr.paris.lutece.portal.service.security.LuteceUser user,
String strIdExtendableResource,
String strExtendableResourceType)
Check if the given user (authenticated or not) can vote or not.
|
boolean |
canVote(RatingExtenderConfig config,
fr.paris.lutece.portal.service.security.LuteceUser user,
String strIdExtendableResource,
String strExtendableResourceType)
Check if the given user (authenticated or not) can vote or not.
|
boolean |
hasAlreadyVoted(fr.paris.lutece.portal.service.security.LuteceUser user,
String strIdExtendableResource,
String strExtendableResourceType)
true if the use has already Voted
|
boolean |
isVoteClosed(RatingExtenderConfig config)
Check if the Votes are closed
|
public boolean canVote(fr.paris.lutece.portal.service.security.LuteceUser user,
String strIdExtendableResource,
String strExtendableResourceType)
throws fr.paris.lutece.portal.service.security.UserNotSignedException
canVote in interface IRatingSecurityServiceuser - the LuteceUserstrIdExtendableResource - the id extendable resourcestrExtendableResourceType - the extendable resource typefr.paris.lutece.portal.service.security.UserNotSignedException - the UserNotSignedExceptionpublic boolean canVote(RatingExtenderConfig config, fr.paris.lutece.portal.service.security.LuteceUser user, String strIdExtendableResource, String strExtendableResourceType) throws fr.paris.lutece.portal.service.security.UserNotSignedException
canVote in interface IRatingSecurityServiceconfig - the RatingExtenderConfiguser - the LuteceUserstrIdExtendableResource - the id extendable resourcestrExtendableResourceType - the extendable resource typefr.paris.lutece.portal.service.security.UserNotSignedException - the UserNotSignedExceptionpublic boolean canDeleteVote(fr.paris.lutece.portal.service.security.LuteceUser user,
String strIdExtendableResource,
String strExtendableResourceType)
canDeleteVote in interface IRatingSecurityServiceuser - the LuteceUserstrIdExtendableResource - the id extendable resourcestrExtendableResourceType - the extendable resource typepublic boolean canDeleteVote(RatingExtenderConfig config, fr.paris.lutece.portal.service.security.LuteceUser user, String strIdExtendableResource, String strExtendableResourceType)
canDeleteVote in interface IRatingSecurityServiceconfig - the RatingExtenderConfiguser - the LuteceUserstrIdExtendableResource - the id extendable resourcestrExtendableResourceType - the extendable resource typepublic boolean isVoteClosed(RatingExtenderConfig config)
isVoteClosed in interface IRatingSecurityServiceconfig - the rating configpublic boolean hasAlreadyVoted(fr.paris.lutece.portal.service.security.LuteceUser user,
String strIdExtendableResource,
String strExtendableResourceType)
hasAlreadyVoted in interface IRatingSecurityServicestrIdExtendableResource - the str id extendable resourcestrExtendableResourceType - the str extendable resource typeCopyright © 2022 City of Paris. All rights reserved.