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)
AuthorisationManagerauthoriseForLogin in interface AuthorisationManageruser - a non null userhttpServletRequest - the request in playpublic boolean hasUserAccessToJIRA(@Nonnull ApplicationUser applicationUser)
AuthorisationManagerAuthorisationManager.authoriseForLogin(com.atlassian.jira.user.ApplicationUser, javax.servlet.http.HttpServletRequest) but doesn't check authorisation via plugins.hasUserAccessToJIRA in interface AuthorisationManagerapplicationUser - a non null userpublic Set<String> getRequiredRoles(javax.servlet.http.HttpServletRequest httpServletRequest)
AuthorisationManagergetRequiredRoles in interface AuthorisationManagerhttpServletRequest - the request in playpublic boolean authoriseForRole(@Nullable ApplicationUser user, javax.servlet.http.HttpServletRequest httpServletRequest, String role)
AuthorisationManagerauthoriseForRole in interface AuthorisationManageruser - 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-2019 Atlassian. All Rights Reserved.