Class MondrianOneToOneUserRoleListMapper
- java.lang.Object
-
- org.pentaho.platform.plugin.action.mondrian.mapper.MondrianAbstractPlatformUserRoleMapper
-
- org.pentaho.platform.plugin.action.mondrian.mapper.MondrianOneToOneUserRoleListMapper
-
- All Implemented Interfaces:
org.pentaho.platform.api.engine.IConnectionUserRoleMapper
,org.springframework.beans.factory.InitializingBean
public class MondrianOneToOneUserRoleListMapper extends MondrianAbstractPlatformUserRoleMapper implements org.springframework.beans.factory.InitializingBean
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
failOnEmptyRoleList
-
Constructor Summary
Constructors Constructor Description MondrianOneToOneUserRoleListMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
boolean
isFailOnEmptyRoleList()
protected String[]
mapRoles(String[] mondrianRoles, String[] platformRoles)
This mapper maps directly from a Hitachi Vantara to a Mondrian role.void
setFailOnEmptyRoleList(boolean failOnEmptyRoleList)
-
Methods inherited from class org.pentaho.platform.plugin.action.mondrian.mapper.MondrianAbstractPlatformUserRoleMapper
getMondrianRolesFromCatalog, getPlatformRolesFromSession, mapConnectionRoles, mapConnectionUser
-
-
-
-
Method Detail
-
mapRoles
protected String[] mapRoles(String[] mondrianRoles, String[] platformRoles) throws org.pentaho.platform.api.engine.PentahoAccessControlException
This mapper maps directly from a Hitachi Vantara to a Mondrian role. This is useful when your roles exist both in the platform and identically named in the mondrian catalog.- Specified by:
mapRoles
in classMondrianAbstractPlatformUserRoleMapper
- Parameters:
mondrianRoles
- Sorted list of roles defined in the catalogplatformRoles
- Sorted list of the roles defined in the catalog- Returns:
- Throws:
org.pentaho.platform.api.engine.PentahoAccessControlException
-
setFailOnEmptyRoleList
public void setFailOnEmptyRoleList(boolean failOnEmptyRoleList)
-
isFailOnEmptyRoleList
public boolean isFailOnEmptyRoleList()
-
-