com.atlassian.jira.security
Class JiraRoleMapper
java.lang.Object
com.atlassian.jira.security.JiraRoleMapper
- All Implemented Interfaces:
- com.atlassian.seraph.auth.RoleMapper, com.atlassian.seraph.Initable
public class JiraRoleMapper
- extends 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.
Field Summary |
static String |
HAS_PERMISSION
this request attribute is set in case of valid user, but no login permission |
Method Summary |
boolean |
canLogin(Principal user,
javax.servlet.http.HttpServletRequest request)
|
boolean |
hasRole(Principal user,
javax.servlet.http.HttpServletRequest request,
String role)
|
void |
init(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 |
HAS_PERMISSION
public static final String HAS_PERMISSION
- this request attribute is set in case of valid user, but no login permission
- See Also:
- Constant Field Values
JiraRoleMapper
public JiraRoleMapper()
hasRole
public boolean hasRole(Principal user,
javax.servlet.http.HttpServletRequest request,
String role)
- Specified by:
hasRole
in interface com.atlassian.seraph.auth.RoleMapper
canLogin
public boolean canLogin(Principal user,
javax.servlet.http.HttpServletRequest request)
- Specified by:
canLogin
in interface com.atlassian.seraph.auth.RoleMapper
init
public void init(Map map,
com.atlassian.seraph.config.SecurityConfig securityConfig)
- Specified by:
init
in interface com.atlassian.seraph.Initable
Copyright © 2002-2007 Atlassian. All Rights Reserved.