Class JiraRoleMapper

  extended by
All Implemented Interfaces:
com.atlassian.seraph.auth.RoleMapper, com.atlassian.seraph.Initable

public class JiraRoleMapper
extends java.lang.Object
implements com.atlassian.seraph.auth.RoleMapper

A Seraph RoleMapper which maps from group membership to JIRA permissions via a permission scheme. Eg, the permission scheme typically allocates members of the "jira-users" group the Permissions.USE role.

Constructor Summary
Method Summary
 boolean canLogin( user, javax.servlet.http.HttpServletRequest request)
 boolean hasRole( user, javax.servlet.http.HttpServletRequest request, java.lang.String role)
 void init(java.util.Map map, com.atlassian.seraph.config.SecurityConfig securityConfig)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public JiraRoleMapper()
Method Detail


public boolean hasRole( user,
                       javax.servlet.http.HttpServletRequest request,
                       java.lang.String role)
Specified by:
hasRole in interface com.atlassian.seraph.auth.RoleMapper


public boolean canLogin( user,
                        javax.servlet.http.HttpServletRequest request)
Specified by:
canLogin in interface com.atlassian.seraph.auth.RoleMapper


public void init(java.util.Map map,
                 com.atlassian.seraph.config.SecurityConfig securityConfig)
Specified by:
init in interface com.atlassian.seraph.Initable

Copyright © 2002-2010 Atlassian. All Rights Reserved.