public class AuthorisationManagerImpl extends Object implements AuthorisationManager, Startable
| Constructor and Description |
|---|
AuthorisationManagerImpl(PermissionManager permissionManager,
com.atlassian.plugin.PluginAccessor pluginAccessor,
WebworkPluginSecurityServiceHelper webworkPluginSecurityServiceHelper,
com.atlassian.event.api.EventPublisher eventPublisher,
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.
|
void |
onPluginModuleDisabled(com.atlassian.plugin.event.events.PluginModuleDisabledEvent event) |
void |
onPluginModuleEnabled(com.atlassian.plugin.event.events.PluginModuleEnabledEvent event) |
void |
start()
This method will be called after the plugin system is fully initialised and all components added to the
dependency injection framework.
|
public AuthorisationManagerImpl(PermissionManager permissionManager, com.atlassian.plugin.PluginAccessor pluginAccessor, WebworkPluginSecurityServiceHelper webworkPluginSecurityServiceHelper, com.atlassian.event.api.EventPublisher eventPublisher, ApplicationRoleManager applicationRoleManager, GlobalPermissionManager globalPermissions)
public void start()
throws Exception
Startablepublic void onPluginModuleEnabled(com.atlassian.plugin.event.events.PluginModuleEnabledEvent event)
public void onPluginModuleDisabled(com.atlassian.plugin.event.events.PluginModuleDisabledEvent event)
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-2015 Atlassian. All Rights Reserved.