|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.security.auth.AuthorisationManagerImpl
public class AuthorisationManagerImpl
Constructor Summary | |
---|---|
AuthorisationManagerImpl(PermissionManager permissionManager,
com.atlassian.plugin.PluginAccessor pluginAccessor,
WebworkPluginSecurityServiceHelper webworkPluginSecurityServiceHelper,
com.atlassian.event.api.EventPublisher eventPublisher)
|
Method Summary | |
---|---|
boolean |
authoriseForLogin(com.atlassian.crowd.embedded.api.User 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(com.atlassian.crowd.embedded.api.User 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. |
void |
onPluginModuleDisabled(com.atlassian.plugin.event.events.PluginModuleDisabledEvent event)
|
void |
onPluginModuleEnabled(com.atlassian.plugin.event.events.PluginModuleEnabledEvent event)
|
void |
start()
This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AuthorisationManagerImpl(PermissionManager permissionManager, com.atlassian.plugin.PluginAccessor pluginAccessor, WebworkPluginSecurityServiceHelper webworkPluginSecurityServiceHelper, com.atlassian.event.api.EventPublisher eventPublisher)
Method Detail |
---|
public void start() throws Exception
Startable
start
in interface Startable
Exception
- Allows implementations to throw an Exception.public void onPluginModuleEnabled(com.atlassian.plugin.event.events.PluginModuleEnabledEvent event)
public void onPluginModuleDisabled(com.atlassian.plugin.event.events.PluginModuleDisabledEvent event)
public boolean authoriseForLogin(@Nonnull com.atlassian.crowd.embedded.api.User user, javax.servlet.http.HttpServletRequest httpServletRequest)
AuthorisationManager
authoriseForLogin
in interface AuthorisationManager
user
- a non null userhttpServletRequest
- the request in play
public Set<String> getRequiredRoles(javax.servlet.http.HttpServletRequest httpServletRequest)
AuthorisationManager
getRequiredRoles
in interface AuthorisationManager
httpServletRequest
- the request in play
public boolean authoriseForRole(@Nullable com.atlassian.crowd.embedded.api.User 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |