Skip to content

Commit

Permalink
new fields added to ChangeSuggestion (gbif/registry#579)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahakanzn committed Jul 19, 2024
1 parent a9c0668 commit 7a58d9f
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,43 @@
*/
package org.gbif.api.model.collections.suggestions;

import java.util.Objects;

import lombok.Getter;
import lombok.Setter;

import org.gbif.api.model.collections.Collection;

@Getter
@Setter
public class CollectionChangeSuggestion extends BaseChangeSuggestion<Collection> {

private String ihIdentifier;

private Boolean createInstitution;

@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
if (!super.equals(o)) {
return false;
}
CollectionChangeSuggestion that = (CollectionChangeSuggestion) o;
return Objects.equals(ihIdentifier, that.ihIdentifier)
&& Objects.equals(createInstitution, that.createInstitution);
}

@Override
public int hashCode() {
return Objects.hash(
super.hashCode(),
ihIdentifier,
createInstitution);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,6 @@ PagingResponse<R> list(
@Nullable Type type,
@Nullable String proposedBy,
@Nullable UUID entityKey,
@Nullable String ihIdentifier,
@Nullable Pageable page);
}

0 comments on commit 7a58d9f

Please sign in to comment.