diff --git a/src/main/java/org/alfresco/service/cmr/search/RangeParameters.java b/src/main/java/org/alfresco/service/cmr/search/RangeParameters.java index 798742a230..36bf31ebdc 100644 --- a/src/main/java/org/alfresco/service/cmr/search/RangeParameters.java +++ b/src/main/java/org/alfresco/service/cmr/search/RangeParameters.java @@ -38,16 +38,15 @@ import org.codehaus.jackson.annotate.JsonProperty; @AlfrescoPublicApi public class RangeParameters { - private String field; - private String start; - private String end; - private String gap; - private boolean hardend; - private List other; - private List include; - private List tags; - private List excludeFilters; - + private final String field; + private final String start; + private final String end; + private final String gap; + private final boolean hardend; + private final List other; + private final List include; + private final String label; + private final List excludeFilters; /** * Constructor. @@ -59,7 +58,7 @@ public class RangeParameters * @param hardend * @param other can have one of the following values: before,after,between,none * @param include can have one of the following values: lower,upper,edge,outer,all - * @param tags + * @param label * @param excludeFilters */ @JsonCreator @@ -70,7 +69,7 @@ public class RangeParameters @JsonProperty("hardend") boolean hardend, @JsonProperty("other")List other, @JsonProperty("include")List include, - @JsonProperty("tags")List tags, + @JsonProperty("label") String label, @JsonProperty("excludeFilters")List excludeFilters) { super(); @@ -79,9 +78,9 @@ public class RangeParameters this.end = end; this.gap = gap; this.hardend = hardend; - this.other = other; - this.include = include; - this.tags = tags == null? Collections.emptyList():tags; + this.other = other == null? Collections.emptyList():other; + this.include = include == null? Collections.emptyList():include; + this.label = label; this.excludeFilters = excludeFilters == null? Collections.emptyList():excludeFilters; } @@ -113,10 +112,11 @@ public class RangeParameters { return include; } - public List getTags() + public String getLabel() { - return tags; + return label; } + public List getExcludeFilters() { return excludeFilters; @@ -202,7 +202,6 @@ public class RangeParameters return ">"; } - public String getRangeLastBucketEndInclusive() { if(include != null && !include.isEmpty())