public interface AuthorisationManager
Modifier and Type | Method and Description |
---|---|
boolean |
authoriseForLogin(ApplicationUser user,
javax.servlet.http.HttpServletRequest httpServletRequest)
Called to ask whether a user (non null always) is authorised to perform the given request as a login event
|
boolean |
authoriseForRole(ApplicationUser user,
javax.servlet.http.HttpServletRequest httpServletRequest,
String role)
Called to ask whether a user (non null always) is authorised to perform the given request as a login event
|
Set<String> |
getRequiredRoles(javax.servlet.http.HttpServletRequest httpServletRequest)
Gets the set of role strings that are examined by Seraph to decide if a user is authorised to execute a request.
|
boolean |
hasUserAccessToJIRA(ApplicationUser user)
Verifies whether a user has access to JIRA.
|
boolean authoriseForLogin(@Nonnull ApplicationUser user, javax.servlet.http.HttpServletRequest httpServletRequest)
user
- a non null userhttpServletRequest
- the request in playboolean hasUserAccessToJIRA(@Nonnull ApplicationUser user)
authoriseForLogin(com.atlassian.jira.user.ApplicationUser, javax.servlet.http.HttpServletRequest)
but doesn't check authorisation via plugins.user
- a non null userSet<String> getRequiredRoles(javax.servlet.http.HttpServletRequest httpServletRequest)
httpServletRequest
- the request in playboolean authoriseForRole(@Nullable ApplicationUser user, javax.servlet.http.HttpServletRequest httpServletRequest, String role)
user
- a possibly null userhttpServletRequest
- the request in playrole
- one or more of the roles that was given out during getRequiredRoles(javax.servlet.http.HttpServletRequest)
Copyright © 2002-2015 Atlassian. All Rights Reserved.