Class ConfluenceRoleMapper
- java.lang.Object
-
- com.atlassian.seraph.auth.SimpleAbstractRoleMapper
-
- com.atlassian.confluence.security.ConfluenceRoleMapper
-
- All Implemented Interfaces:
com.atlassian.seraph.auth.RoleMapper
,com.atlassian.seraph.Initable
public class ConfluenceRoleMapper extends com.atlassian.seraph.auth.SimpleAbstractRoleMapper
-
-
Field Summary
Fields Modifier and Type Field Description static String
ADMIN_JSP_ROLE
static String
CONFLUENCE_ADMIN_ROLE
-
Constructor Summary
Constructors Constructor Description ConfluenceRoleMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canLogin(Principal user, javax.servlet.http.HttpServletRequest request)
boolean
hasRole(Principal user, javax.servlet.http.HttpServletRequest request, String role)
-
-
-
Field Detail
-
ADMIN_JSP_ROLE
public static final String ADMIN_JSP_ROLE
- See Also:
- Constant Field Values
-
CONFLUENCE_ADMIN_ROLE
public static final String CONFLUENCE_ADMIN_ROLE
- See Also:
- Constant Field Values
-
-
Method Detail
-
hasRole
public boolean hasRole(Principal user, javax.servlet.http.HttpServletRequest request, String role)
-
canLogin
public boolean canLogin(Principal user, javax.servlet.http.HttpServletRequest request)
- Specified by:
canLogin
in interfacecom.atlassian.seraph.auth.RoleMapper
- Overrides:
canLogin
in classcom.atlassian.seraph.auth.SimpleAbstractRoleMapper
-
-