/** * @return */ public String[] getRoles() { if (roleConfiguration != null) { return roleConfiguration.getIdpRoles(); } return new String[0]; }
/** * @return */ public String[] getRoles() { if (roleConfiguration != null) { return roleConfiguration.getIdpRoles(); } return new String[0]; }
/** * @return */ public String[] getRoles() { if (roleConfiguration != null) { return roleConfiguration.getIdpRoles(); } return new String[0]; }
/** * @param conn * @param idPId * @param tenantId * @param newRoleConfiguration * @param newRoleConfiguration * @throws SQLException * @throws IdentityProviderManagementException */ private void updateRoleConfiguration(Connection conn, int idPId, int tenantId, PermissionsAndRoleConfig newRoleConfiguration) throws SQLException, IdentityProviderManagementException { // delete all identity provider roles - this will also clean up idp role mappings. deleteAllIdPRoles(conn, idPId); if (newRoleConfiguration == null) { // bad data - we do not need to deal with. return; } // add identity provider roles. addIdPRoles(conn, idPId, tenantId, newRoleConfiguration.getIdpRoles()); if (newRoleConfiguration.getRoleMappings() == null || newRoleConfiguration.getRoleMappings().length == 0) { // we do not have any role mappings in the system. return; } // add identity provider role mappings. addIdPRoleMappings(conn, idPId, tenantId, newRoleConfiguration.getRoleMappings()); }
if (identityProvider.getPermissionAndRoleConfig().getIdpRoles() != null && identityProvider.getPermissionAndRoleConfig().getIdpRoles().length > 0) { .getPermissionAndRoleConfig().getIdpRoles());