public abstract class MondrianAbstractPlatformUserRoleMapper extends Object implements IConnectionUserRoleMapper
Constructor and Description |
---|
MondrianAbstractPlatformUserRoleMapper() |
Modifier and Type | Method and Description |
---|---|
protected String[] |
getMondrianRolesFromCatalog(IPentahoSession userSession,
String context)
This method returns the role names as found in the Mondrian schema.
|
protected String[] |
getPlatformRolesFromSession(IPentahoSession session)
This method returns the users' roles as specified in the Spring Security authentication object.
|
String[] |
mapConnectionRoles(IPentahoSession userSession,
String connectionContext) |
Object |
mapConnectionUser(IPentahoSession userSession,
String context) |
protected abstract String[] |
mapRoles(String[] mondrianRoles,
String[] platformRoles)
Subclasses simply need to implement this one method to do the specific mapping desired.
|
public MondrianAbstractPlatformUserRoleMapper()
protected abstract String[] mapRoles(String[] mondrianRoles, String[] platformRoles) throws PentahoAccessControlException
mondrianRoles
- Sorted list of roles defined in the catalogplatformRoles
- Sorted list of the roles defined in the catalogPentahoAccessControlException
protected String[] getMondrianRolesFromCatalog(IPentahoSession userSession, String context)
userSession
- Users' sessioncatalogName
- The name of the catalogprotected String[] getPlatformRolesFromSession(IPentahoSession session)
session
- The users' sessionpublic String[] mapConnectionRoles(IPentahoSession userSession, String connectionContext) throws PentahoAccessControlException
mapConnectionRoles
in interface IConnectionUserRoleMapper
PentahoAccessControlException
public Object mapConnectionUser(IPentahoSession userSession, String context) throws PentahoAccessControlException
mapConnectionUser
in interface IConnectionUserRoleMapper
PentahoAccessControlException
Copyright © 2002–2017 Pentaho Corporation. All rights reserved.