public abstract class MondrianAbstractPlatformUserRoleMapper extends Object implements org.pentaho.platform.api.engine.IConnectionUserRoleMapper
Constructor and Description |
---|
MondrianAbstractPlatformUserRoleMapper() |
Modifier and Type | Method and Description |
---|---|
protected String[] |
getMondrianRolesFromCatalog(org.pentaho.platform.api.engine.IPentahoSession userSession,
String context)
This method returns the role names as found in the Mondrian schema.
|
protected String[] |
getPlatformRolesFromSession(org.pentaho.platform.api.engine.IPentahoSession session)
This method returns the users' roles as specified in the Spring Security authentication object.
|
String[] |
mapConnectionRoles(org.pentaho.platform.api.engine.IPentahoSession userSession,
String connectionContext) |
Object |
mapConnectionUser(org.pentaho.platform.api.engine.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 org.pentaho.platform.api.engine.PentahoAccessControlException
mondrianRoles
- Sorted list of roles defined in the catalogplatformRoles
- Sorted list of the roles defined in the catalogorg.pentaho.platform.api.engine.PentahoAccessControlException
protected String[] getMondrianRolesFromCatalog(org.pentaho.platform.api.engine.IPentahoSession userSession, String context)
userSession
- Users' sessioncatalogName
- The name of the catalogprotected String[] getPlatformRolesFromSession(org.pentaho.platform.api.engine.IPentahoSession session)
session
- The users' sessionpublic String[] mapConnectionRoles(org.pentaho.platform.api.engine.IPentahoSession userSession, String connectionContext) throws org.pentaho.platform.api.engine.PentahoAccessControlException
mapConnectionRoles
in interface org.pentaho.platform.api.engine.IConnectionUserRoleMapper
org.pentaho.platform.api.engine.PentahoAccessControlException
public Object mapConnectionUser(org.pentaho.platform.api.engine.IPentahoSession userSession, String context) throws org.pentaho.platform.api.engine.PentahoAccessControlException
mapConnectionUser
in interface org.pentaho.platform.api.engine.IConnectionUserRoleMapper
org.pentaho.platform.api.engine.PentahoAccessControlException
Copyright © 2018 Hitachi Vantara. All rights reserved.