From 813f3a2604f27b7180ac954cdd15957092079f78 Mon Sep 17 00:00:00 2001 From: Colin Manning Date: Tue, 26 Sep 2023 11:00:14 +0200 Subject: [PATCH] Implement Issue #107 - add properties "options" and "id" to class MetapropertiesQuery to support getting all metaproperties without options and retrieving individual metaproperties (with options if needed) --- .../bynder/sdk/query/MetapropertyQuery.java | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/src/main/java/com/bynder/sdk/query/MetapropertyQuery.java b/src/main/java/com/bynder/sdk/query/MetapropertyQuery.java index a5511c68..ea86a81d 100644 --- a/src/main/java/com/bynder/sdk/query/MetapropertyQuery.java +++ b/src/main/java/com/bynder/sdk/query/MetapropertyQuery.java @@ -26,6 +26,18 @@ public class MetapropertyQuery { */ @ApiField private MediaType type; + /** + * Make it possible to get metaproperties without options, to avoid possible timeout if the number + * of metapropertiy/options is very large (e.g. with Stockholm National Museum taxonomies) + * @author Colin Manning - zetcom + */ + @ApiField + private Boolean options; + /** + * The id of a Metaproperty, to get the information for one specific metaproperty + * @author Colin Manning - zetcom + */ @ApiField + private String id; public Boolean getCount() { return count; @@ -44,4 +56,21 @@ public MetapropertyQuery setType(final MediaType type) { this.type = type; return this; } + + public Boolean getOptions() { + return options; + } + + public MetapropertyQuery setOptions(final Boolean options) { + this.options = options; + return this; + } + public String getId() { + return id; + } + + public MetapropertyQuery setId(final String id) { + this.id = id; + return this; + } }