public interface IRatingSecurityService
Modifier and Type | Field and Description |
---|---|
static String |
BEAN_SERVICE |
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.
|
default 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.
|
default 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
|
static final String BEAN_SERVICE
boolean canVote(fr.paris.lutece.portal.service.security.LuteceUser user, String strIdExtendableResource, String strExtendableResourceType) throws fr.paris.lutece.portal.service.security.UserNotSignedException
user
- the LuteceUserstrIdExtendableResource
- the id extendable resourcestrExtendableResourceType
- the extendable resource typefr.paris.lutece.portal.service.security.UserNotSignedException
- the UserNotSignedExceptiondefault boolean canVote(RatingExtenderConfig config, fr.paris.lutece.portal.service.security.LuteceUser user, String strIdExtendableResource, String strExtendableResourceType) throws fr.paris.lutece.portal.service.security.UserNotSignedException
config
- the RatingExtenderConfiguser
- the LuteceUserstrIdExtendableResource
- the id extendable resourcestrExtendableResourceType
- the extendable resource typefr.paris.lutece.portal.service.security.UserNotSignedException
- the UserNotSignedExceptionboolean canDeleteVote(fr.paris.lutece.portal.service.security.LuteceUser user, String strIdExtendableResource, String strExtendableResourceType)
user
- the LuteceUserstrIdExtendableResource
- the id extendable resourcestrExtendableResourceType
- the extendable resource typedefault boolean canDeleteVote(RatingExtenderConfig config, fr.paris.lutece.portal.service.security.LuteceUser user, String strIdExtendableResource, String strExtendableResourceType)
config
- the RatingExtenderConfiguser
- the LuteceUserstrIdExtendableResource
- the id extendable resourcestrExtendableResourceType
- the extendable resource typeboolean isVoteClosed(RatingExtenderConfig config)
config
- the rating configboolean hasAlreadyVoted(fr.paris.lutece.portal.service.security.LuteceUser user, String strIdExtendableResource, String strExtendableResourceType)
request
- strIdExtendableResource
- the str id extendable resourcestrExtendableResourceType
- the str extendable resource typeCopyright © 2022 City of Paris. All rights reserved.