Class 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 Detail

      • failOnEmptyRoleList

        protected boolean failOnEmptyRoleList
    • Constructor Detail

      • MondrianOneToOneUserRoleListMapper

        public MondrianOneToOneUserRoleListMapper()
    • 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 class MondrianAbstractPlatformUserRoleMapper
        Parameters:
        mondrianRoles - Sorted list of roles defined in the catalog
        platformRoles - 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()
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        Exception