/** * Get the role attribute from PentahoSystem if not provided to constructor * * @param newRoleMap */ public DefaultLdapRoleMapper( Map<String, String> newRoleMap ) { String roleAttribute = getRoleAttributeFromProperties(); this.roleMap = new HashMap<String,String>(); for ( Entry<String, String> roleEntry : newRoleMap.entrySet() ) { this.roleMap.put( ldapParseString( roleEntry.getKey(), roleAttribute ), roleEntry.getValue() ); } }
/** * * @param newRoleMap */ public DefaultLdapRoleMapper( Map<String, String> newRoleMap, String roleAttribute ) { this.roleMap = new HashMap<String, String>(); for ( Entry<String, String> roleEntry : newRoleMap.entrySet() ) { this.roleMap.put( ldapParseString( roleEntry.getKey(), roleAttribute ), roleEntry.getValue() ); } }