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
Modifier and TypeFieldDescriptionstatic final String
The spring bean name for this authentication service. -
Method Summary
Modifier and TypeMethodDescriptionvoid
associateRequestUser
(HttpServletRequest request, RequestLog requestLog) Associate the user with the request log.void
associateSubmissionUser
(HttpServletRequest request, Submission submission) Associate the user with the submission.getUserFormGroups
(HttpServletRequest request) Gets the user form groups.getUserGroups
(HttpServletRequest request) Gets the user groups.getUserId
(HttpServletRequest request) Return user identifier for the given request.getUserJobGroups
(HttpServletRequest request) Gets the user job groups.boolean
isAuthenticated
(HttpServletRequest request) Return true if the user request has been authenticated by an external system.boolean
isUserInFormGroups
(HttpServletRequest request) Return true if the user is in one or more form group.boolean
isUserInGroups
(HttpServletRequest request, Set<String> groupNames) Return true if the user for the given request belongs to one of the specified groups.boolean
isUserInJobGroups
(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
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(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
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(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
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
-