Class DefaultLdapRoleMapper

  • All Implemented Interfaces:
    Serializable, org.pentaho.platform.api.engine.security.IAuthenticationRoleMapper

    public class DefaultLdapRoleMapper
    extends Object
    implements org.pentaho.platform.api.engine.security.IAuthenticationRoleMapper, Serializable
    Map ldap role to pentaho security role
    See Also:
    Serialized Form
    • Constructor Detail

      • DefaultLdapRoleMapper

        public DefaultLdapRoleMapper()
      • DefaultLdapRoleMapper

        public DefaultLdapRoleMapper​(Map<String,​String> newRoleMap)
        Get the role attribute from PentahoSystem if not provided to constructor
        Parameters:
        newRoleMap -
      • DefaultLdapRoleMapper

        public DefaultLdapRoleMapper​(Map<String,​String> newRoleMap,
                                     String roleAttribute)
        Parameters:
        newRoleMap -
    • Method Detail

      • toPentahoRole

        public String toPentahoRole​(String thirdPartyRole)
        Specified by:
        toPentahoRole in interface org.pentaho.platform.api.engine.security.IAuthenticationRoleMapper
        Parameters:
        thirdPartyRole -
        Returns:
      • fromPentahoRole

        public String fromPentahoRole​(String pentahoRole)
        Specified by:
        fromPentahoRole in interface org.pentaho.platform.api.engine.security.IAuthenticationRoleMapper
        Parameters:
        pentahoRole -
        Returns: