Package 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
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
void
protected ApplicationUser
toApplicationUser
(Principal user)
-
Constructor Details
-
JiraRoleMapper
public JiraRoleMapper()
-
-
Method Details
-
hasRole
public boolean hasRole(@Nullable Principal user, javax.servlet.http.HttpServletRequest httpServletRequest, String role) - Specified by:
hasRole
in interfacecom.atlassian.seraph.auth.RoleMapper
-
canLogin
public boolean canLogin(@Nullable Principal user, javax.servlet.http.HttpServletRequest httpServletRequest) - Specified by:
canLogin
in interfacecom.atlassian.seraph.auth.RoleMapper
-
toApplicationUser
-
init
- Specified by:
init
in interfacecom.atlassian.seraph.Initable
-