Package com.avoka.fc.core.service
Interface IAuthenticationService
- All Known Implementing Classes:
AuthenticationServiceImpl
public interface IAuthenticationService
Provides an plug-able Authentication service interface.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe spring bean name for this authentication service. -
Method Summary
Modifier and TypeMethodDescriptionvoidassociateRequestUser(jakarta.servlet.http.HttpServletRequest request, RequestLog requestLog) Associate the user with the request log.voidassociateSubmissionUser(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.booleanisAuthenticated(jakarta.servlet.http.HttpServletRequest request) Return true if the user request has been authenticated by an external system.booleanisUserInFormGroups(jakarta.servlet.http.HttpServletRequest request) Return true if the user is in one or more form group.booleanisUserInGroups(jakarta.servlet.http.HttpServletRequest request, Set<String> groupNames) Return true if the user for the given request belongs to one of the specified groups.booleanisUserInJobGroups(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
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
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 requestgroupNames- 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 requestgroupNames- 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
Associate the user with the request log.- Parameters:
request- the user servlet requestrequestLog- 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 requestsubmission- the submission record to update
-
getUserGroups
Gets the user groups.- Parameters:
request- the request- Returns:
- the user groups
- Since:
- 3.6.0
-
getUserFormGroups
Gets the user form groups.- Parameters:
request- the request- Returns:
- the user form groups
- Since:
- 4.3.4
-
getUserJobGroups
Gets the user job groups.- Parameters:
request- the request- Returns:
- the user form groups
- Since:
- 17.10.0
-