KEYCLOAK-2035 update with feedback from PR by bburke

This commit is contained in:
Antonio Howcroft Ferreira 2017-09-22 11:14:27 +01:00
parent e78bf5f876
commit a551195ddf
2 changed files with 3 additions and 3 deletions

View file

@ -21,6 +21,7 @@ import org.keycloak.models.RealmModel;
import org.keycloak.models.RoleModel;
import org.keycloak.models.UserModel;
import java.util.Collections;
import java.util.List;
import java.util.Map;
@ -129,7 +130,7 @@ public interface UserQueryProvider {
*/
default List<UserModel> getRoleMembers(RealmModel realm, RoleModel role)
{
throw new UnsupportedOperationException();
return Collections.EMPTY_LIST;
}
/**
@ -144,7 +145,7 @@ public interface UserQueryProvider {
*/
default List<UserModel> getRoleMembers(RealmModel realm, RoleModel role, int firstResult, int maxResults)
{
throw new UnsupportedOperationException();
return Collections.EMPTY_LIST;
}
/**

View file

@ -206,7 +206,6 @@ public class UserPropertyFileStorage implements UserLookupProvider, UserStorageP
return Collections.EMPTY_LIST;
}
@Override
public List<UserModel> searchForUser(String search, RealmModel realm) {
return getUsers(realm, 0, Integer.MAX_VALUE - 1);