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 IRatingSecurityService
user
- 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 IRatingSecurityService
config
- 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 IRatingSecurityService
user
- 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 IRatingSecurityService
config
- the RatingExtenderConfiguser
- the LuteceUserstrIdExtendableResource
- the id extendable resourcestrExtendableResourceType
- the extendable resource typepublic boolean isVoteClosed(RatingExtenderConfig config)
isVoteClosed
in interface IRatingSecurityService
config
- the rating configpublic boolean hasAlreadyVoted(fr.paris.lutece.portal.service.security.LuteceUser user, String strIdExtendableResource, String strExtendableResourceType)
hasAlreadyVoted
in interface IRatingSecurityService
strIdExtendableResource
- the str id extendable resourcestrExtendableResourceType
- the str extendable resource typeCopyright © 2022 City of Paris. All rights reserved.