Interface IRatingSecurityService
- All Known Implementing Classes:
RatingSecurityService
public interface IRatingSecurityService
IRatingSecurityService
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleancanAccess(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 Details
-
BEAN_SERVICE
- See Also:
-
-
Method Details
-
canVote
boolean canVote(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:
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
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
-