Skip to content

Commit

Permalink
renamed field in MetadataLookup
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca Rossetto committed Sep 6, 2017
1 parent ae76d8f commit 1077e1b
Showing 1 changed file with 5 additions and 6 deletions.
Expand Up @@ -17,7 +17,7 @@
*/
public class MetadataLookup implements Message {
/** List of object ID's for which metadata should be looked up. */
private String[] ids;
private String[] objectIds;

/** List of metadata domains that should be considered. If empty, all domains are considered! */
private String[] domains;
Expand All @@ -29,8 +29,8 @@ public class MetadataLookup implements Message {
* @param domains
*/
@JsonCreator
public MetadataLookup(@JsonProperty("ids") String[] ids, @JsonProperty("domains") String[] domains) {
this.ids = ids;
public MetadataLookup(@JsonProperty("objectids") String[] ids, @JsonProperty("domains") String[] domains) {
this.objectIds = ids;
this.domains = domains;
}

Expand All @@ -39,11 +39,10 @@ public MetadataLookup(@JsonProperty("ids") String[] ids, @JsonProperty("domains"
* @return
*/
public List<String> getIds() {
if (this.ids != null) {
return Arrays.asList(this.ids);
if (this.objectIds != null) {
return Arrays.asList(this.objectIds);
} else {
return new ArrayList<>(0);

}
}

Expand Down

0 comments on commit 1077e1b

Please sign in to comment.