public class AuthorisationManagerImpl extends Object implements AuthorisationManager
Constructor and Description |
---|
AuthorisationManagerImpl(PermissionManager permissionManager,
com.atlassian.plugin.PluginAccessor pluginAccessor,
WebworkPluginSecurityServiceHelper webworkPluginSecurityServiceHelper,
ApplicationRoleManager applicationRoleManager,
GlobalPermissionManager globalPermissions) |
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 applicationUser)
Verifies whether a user has access to JIRA.
|
public AuthorisationManagerImpl(PermissionManager permissionManager, com.atlassian.plugin.PluginAccessor pluginAccessor, WebworkPluginSecurityServiceHelper webworkPluginSecurityServiceHelper, ApplicationRoleManager applicationRoleManager, GlobalPermissionManager globalPermissions)
public boolean authoriseForLogin(@Nonnull ApplicationUser user, javax.servlet.http.HttpServletRequest httpServletRequest)
AuthorisationManager
authoriseForLogin
in interface AuthorisationManager
user
- a non null userhttpServletRequest
- the request in playpublic boolean hasUserAccessToJIRA(@Nonnull ApplicationUser applicationUser)
AuthorisationManager
AuthorisationManager.authoriseForLogin(com.atlassian.jira.user.ApplicationUser, javax.servlet.http.HttpServletRequest)
but doesn't check authorisation via plugins.hasUserAccessToJIRA
in interface AuthorisationManager
applicationUser
- a non null userpublic Set<String> getRequiredRoles(javax.servlet.http.HttpServletRequest httpServletRequest)
AuthorisationManager
getRequiredRoles
in interface AuthorisationManager
httpServletRequest
- the request in playpublic boolean authoriseForRole(@Nullable ApplicationUser user, javax.servlet.http.HttpServletRequest httpServletRequest, String role)
AuthorisationManager
authoriseForRole
in interface AuthorisationManager
user
- a possibly null userhttpServletRequest
- the request in playrole
- one or more of the roles that was given out during AuthorisationManager.getRequiredRoles(javax.servlet.http.HttpServletRequest)
Copyright © 2002-2024 Atlassian. All Rights Reserved.