Interface IAuthenticationService

All Known Implementing Classes:
AuthenticationServiceImpl

public interface IAuthenticationService
Provides an plug-able Authentication service interface.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The spring bean name for this authentication service.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    associateRequestUser(jakarta.servlet.http.HttpServletRequest request, RequestLog requestLog)
    Associate the user with the request log.
    void
    associateSubmissionUser(jakarta.servlet.http.HttpServletRequest request, Submission submission)
    Associate the user with the submission.
    getUserFormGroups(jakarta.servlet.http.HttpServletRequest request)
    Gets the user form groups.
    getUserGroups(jakarta.servlet.http.HttpServletRequest request)
    Gets the user groups.
    getUserId(jakarta.servlet.http.HttpServletRequest request)
    Return user identifier for the given request.
    getUserJobGroups(jakarta.servlet.http.HttpServletRequest request)
    Gets the user job groups.
    boolean
    isAuthenticated(jakarta.servlet.http.HttpServletRequest request)
    Return true if the user request has been authenticated by an external system.
    boolean
    isUserInFormGroups(jakarta.servlet.http.HttpServletRequest request)
    Return true if the user is in one or more form group.
    boolean
    isUserInGroups(jakarta.servlet.http.HttpServletRequest request, Set<String> groupNames)
    Return true if the user for the given request belongs to one of the specified groups.
    boolean
    isUserInJobGroups(jakarta.servlet.http.HttpServletRequest request, Set<String> groupNames)
    Return true if the user for the given request belongs to one of the specified job groups.
  • Field Details

    • SPRING_BEAN_NAME

      static final String SPRING_BEAN_NAME
      The spring bean name for this authentication service.
      See Also:
  • Method Details

    • isAuthenticated

      boolean isAuthenticated(jakarta.servlet.http.HttpServletRequest request)
      Return true if the user request has been authenticated by an external system.
      Parameters:
      request - the user servlet request
      Returns:
      true if the user request has been authenticated by an external system.
    • getUserId

      String getUserId(jakarta.servlet.http.HttpServletRequest request)
      Return user identifier for the given request.
      Parameters:
      request - the user servlet request
      Returns:
      user identifier for the given request
    • isUserInGroups

      boolean isUserInGroups(jakarta.servlet.http.HttpServletRequest request, Set<String> groupNames) throws ApplicationException
      Return true if the user for the given request belongs to one of the specified groups.
      Parameters:
      request - the user servlet request
      groupNames - the set of group name
      Returns:
      true if the user is in one of the specified groups
      Throws:
      ApplicationException - if the user request is not identified
    • isUserInFormGroups

      boolean isUserInFormGroups(jakarta.servlet.http.HttpServletRequest request) throws ApplicationException
      Return true if the user is in one or more form group.
      Parameters:
      request - the user servlet request
      Returns:
      true if the user is in one or more form group
      Throws:
      ApplicationException - if the user request is not identified
      Since:
      3.6.0
    • isUserInJobGroups

      boolean isUserInJobGroups(jakarta.servlet.http.HttpServletRequest request, Set<String> groupNames) throws ApplicationException
      Return true if the user for the given request belongs to one of the specified job groups.
      Parameters:
      request - the user servlet request
      groupNames - the set of group name
      Returns:
      true if the user is in one or more of the specified job group
      Throws:
      ApplicationException - if the user request is not identified
      Since:
      17.10.0
    • associateRequestUser

      void associateRequestUser(jakarta.servlet.http.HttpServletRequest request, RequestLog requestLog)
      Associate the user with the request log.
      Parameters:
      request - the user servlet request
      requestLog - the request log record to update
    • associateSubmissionUser

      void associateSubmissionUser(jakarta.servlet.http.HttpServletRequest request, Submission submission)
      Associate the user with the submission.
      Parameters:
      request - the user servlet request
      submission - the submission record to update
    • getUserGroups

      Set<String> getUserGroups(jakarta.servlet.http.HttpServletRequest request)
      Gets the user groups.
      Parameters:
      request - the request
      Returns:
      the user groups
      Since:
      3.6.0
    • getUserFormGroups

      List<Group> getUserFormGroups(jakarta.servlet.http.HttpServletRequest request)
      Gets the user form groups.
      Parameters:
      request - the request
      Returns:
      the user form groups
      Since:
      4.3.4
    • getUserJobGroups

      List<Group> getUserJobGroups(jakarta.servlet.http.HttpServletRequest request)
      Gets the user job groups.
      Parameters:
      request - the request
      Returns:
      the user form groups
      Since:
      17.10.0