Interface IRatingSecurityService
-
- All Known Implementing Classes:
RatingSecurityService
public interface IRatingSecurityServiceIRatingSecurityService
-
-
Field Summary
Fields Modifier and Type Field Description static StringBEAN_SERVICE
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleancanAccess(fr.paris.lutece.portal.service.security.LuteceUser user)Check if any user rating process in progressdefault booleancanDeleteVote(RatingExtenderConfig config, fr.paris.lutece.portal.service.security.LuteceUser user, String strIdExtendableResource, String strExtendableResourceType)Check if the given user (authenticated) can delete his vote.booleancanDeleteVote(fr.paris.lutece.portal.service.security.LuteceUser user, String strIdExtendableResource, String strExtendableResourceType)Check if the given user (authenticated) can delete his vote.default booleancanVote(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.booleancanVote(fr.paris.lutece.portal.service.security.LuteceUser user, String strIdExtendableResource, String strExtendableResourceType)Check if the given user (authenticated or not) can vote or not.voidfreeAccess(fr.paris.lutece.portal.service.security.LuteceUser user)free the user rating processbooleanhasAlreadyVoted(fr.paris.lutece.portal.service.security.LuteceUser user, String strIdExtendableResource, String strExtendableResourceType)true if the use has already VotedbooleanisVoteClosed(RatingExtenderConfig config)Check if the Votes are closed
-
-
-
Field Detail
-
BEAN_SERVICE
static final String BEAN_SERVICE
- See Also:
- Constant Field Values
-
-
Method Detail
-
canVote
boolean canVote(fr.paris.lutece.portal.service.security.LuteceUser user, String strIdExtendableResource, String strExtendableResourceType) throws fr.paris.lutece.portal.service.security.UserNotSignedExceptionCheck if the given user (authenticated or not) can vote or not.- Parameters:
user- the LuteceUserstrIdExtendableResource- the id extendable resourcestrExtendableResourceType- the extendable resource type- Returns:
- true, if successful
- Throws:
fr.paris.lutece.portal.service.security.UserNotSignedException- the UserNotSignedException
-
canVote
default boolean canVote(RatingExtenderConfig config, fr.paris.lutece.portal.service.security.LuteceUser user, String strIdExtendableResource, String strExtendableResourceType) throws fr.paris.lutece.portal.service.security.UserNotSignedException
Check if the given user (authenticated or not) can vote or not.- Parameters:
config- the RatingExtenderConfiguser- the LuteceUserstrIdExtendableResource- the id extendable resourcestrExtendableResourceType- the extendable resource type- Returns:
- true, if successful
- Throws:
fr.paris.lutece.portal.service.security.UserNotSignedException- the UserNotSignedException
-
canDeleteVote
boolean canDeleteVote(fr.paris.lutece.portal.service.security.LuteceUser user, String strIdExtendableResource, String strExtendableResourceType)Check if the given user (authenticated) can delete his vote.- Parameters:
user- the LuteceUserstrIdExtendableResource- the id extendable resourcestrExtendableResourceType- the extendable resource type- Returns:
- true, if successful
-
canDeleteVote
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.- Parameters:
config- the RatingExtenderConfiguser- the LuteceUserstrIdExtendableResource- the id extendable resourcestrExtendableResourceType- the extendable resource type- Returns:
- true, if successful
-
isVoteClosed
boolean isVoteClosed(RatingExtenderConfig config)
Check if the Votes are closed- Parameters:
config- the rating config- Returns:
- true if the votes are closed
-
hasAlreadyVoted
boolean hasAlreadyVoted(fr.paris.lutece.portal.service.security.LuteceUser user, String strIdExtendableResource, String strExtendableResourceType)true if the use has already Voted- Parameters:
request-strIdExtendableResource- the str id extendable resourcestrExtendableResourceType- the str extendable resource type
-
canAccess
boolean canAccess(fr.paris.lutece.portal.service.security.LuteceUser user)
Check if any user rating process in progress- Parameters:
Lutece- user- Returns:
- true if no rating in progress, false if User rating in progress
-
freeAccess
void freeAccess(fr.paris.lutece.portal.service.security.LuteceUser user)
free the user rating process- Parameters:
Lutece- user
-
-