Interface IRatingSecurityService

All Known Implementing Classes:
RatingSecurityService

public interface IRatingSecurityService
IRatingSecurityService
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canAccess(fr.paris.lutece.portal.service.security.LuteceUser user)
    Check if any user rating process in progress
    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
    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
    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
    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.
    void
    freeAccess(fr.paris.lutece.portal.service.security.LuteceUser user)
    free the user rating process
    boolean
    hasAlreadyVoted(fr.paris.lutece.portal.service.security.LuteceUser user, String strIdExtendableResource, String strExtendableResourceType)
    true if the use has already Voted
    boolean
    Check if the Votes are closed
  • Field Details

  • 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 LuteceUser
      strIdExtendableResource - the id extendable resource
      strExtendableResourceType - 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 RatingExtenderConfig
      user - the LuteceUser
      strIdExtendableResource - the id extendable resource
      strExtendableResourceType - 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 LuteceUser
      strIdExtendableResource - the id extendable resource
      strExtendableResourceType - 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 RatingExtenderConfig
      user - the LuteceUser
      strIdExtendableResource - the id extendable resource
      strExtendableResourceType - 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 resource
      strExtendableResourceType - 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