KEYCLOAK-5676

This commit is contained in:
Bill Burke 2017-11-15 10:29:02 -05:00
parent 6b8ead6c4b
commit 485ba4a3e4

View file

@ -244,4 +244,19 @@ public class UserModelDelegate implements UserModel {
public boolean isMemberOf(GroupModel group) {
return delegate.isMemberOf(group);
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof UserModel)) return false;
UserModel that = (UserModel) o;
return getDelegate() != null ? getDelegate().getId().equals(that.getId()) : false;
}
@Override
public int hashCode() {
return getDelegate().getId().hashCode();
}
}