private String family;
private String key;
private String operator;
- private Float value;
private String textValue;
+ private Float value;
private Boolean variation;
/**
- * @param filterId the filter id to set
+ * @return the family
*/
- public CriterionDto setFilterId(Long filterId) {
- this.filterId = filterId;
- return this;
+ public String getFamily() {
+ return family;
+ }
+
+ /**
+ * @return the filter id
+ */
+ public Long getFilterId() {
+ return filterId;
+ }
+
+ /**
+ * @return the key
+ */
+ public String getKey() {
+ return key;
+ }
+
+ /**
+ * @return the operator
+ */
+ public String getOperator() {
+ return operator;
+ }
+
+ /**
+ * @return the text value
+ */
+ public String getTextValue() {
+ return textValue;
+ }
+
+ /**
+ * @return the value
+ */
+ public Float getValue() {
+ return value;
+ }
+
+ /**
+ * @return the variation
+ */
+ public Boolean getVariation() {
+ return variation;
}
/**
return this;
}
+ /**
+ * @param filterId the filter id to set
+ */
+ public CriterionDto setFilterId(Long filterId) {
+ this.filterId = filterId;
+ return this;
+ }
+
/**
* @param key the key to set
*/
}
/**
- * @param value the value to set
+ * @param textValue the textValue to set
*/
- public CriterionDto setValue(Float value) {
- this.value = value;
+ public CriterionDto setTextValue(String textValue) {
+ this.textValue = textValue;
return this;
}
/**
- * @param textValue the textValue to set
+ * @param value the value to set
*/
- public CriterionDto setTextValue(String textValue) {
- this.textValue = textValue;
+ public CriterionDto setValue(Float value) {
+ this.value = value;
return this;
}
private Long filterId;
private String family;
private String key;
- private String sortDirection;
private Long orderIndex;
+ private String sortDirection;
private Boolean variation;
/**
- * @param filterId the filterId to set
+ * @return the family
*/
- public FilterColumnDto setFilterId(Long filterId) {
- this.filterId = filterId;
- return this;
+ public String getFamily() {
+ return family;
+ }
+
+ /**
+ * @return the filter id
+ */
+ public Long getFilterId() {
+ return filterId;
+ }
+
+ /**
+ * @return the key
+ */
+ public String getKey() {
+ return key;
+ }
+
+ /**
+ * @return the order index
+ */
+ public Long getOrderIndex() {
+ return orderIndex;
+ }
+
+ /**
+ * @return the sort direction
+ */
+ public String getSortDirection() {
+ return sortDirection;
+ }
+
+ /**
+ * @return the variation
+ */
+ public Boolean getVariation() {
+ return variation;
}
/**
}
/**
- * @param key the key to set
+ * @param filterId the filterId to set
*/
- public FilterColumnDto setKey(String key) {
- this.key = key;
+ public FilterColumnDto setFilterId(Long filterId) {
+ this.filterId = filterId;
return this;
}
/**
- * @param sortDirection the sortDirection to set
+ * @param key the key to set
*/
- public FilterColumnDto setSortDirection(String sortDirection) {
- this.sortDirection = sortDirection;
+ public FilterColumnDto setKey(String key) {
+ this.key = key;
return this;
}
return this;
}
+ /**
+ * @param sortDirection the sortDirection to set
+ */
+ public FilterColumnDto setSortDirection(String sortDirection) {
+ this.sortDirection = sortDirection;
+ return this;
+ }
+
/**
* @param variation the variation to set
*/
*/
public final class FilterDto {
private Long id;
- private String name;
- private String key;
private Long userId;
- private Boolean shared;
- private Boolean favourites;
- private Long resourceId;
private String defaultView;
+ private Boolean favourites;
+ private String key;
+ private String name;
private Long pageSize;
private Long periodIndex;
+ private Long resourceId;
+ private Boolean shared;
private List<CriterionDto> criteria = Lists.newArrayList();
private List<FilterColumnDto> filterColumns = Lists.newArrayList();
+ /**
+ * Add a {@link CriterionDto} to the list.
+ *
+ * @param criterion the criterion to add
+ */
+ public FilterDto add(CriterionDto criterion) {
+ criteria.add(criterion);
+ return this;
+ }
+
+ /**
+ * Add a {@link FilterColumnDto} to the list.
+ *
+ * @param filterColumn the column to add
+ */
+ public FilterDto add(FilterColumnDto filterColumn) {
+ filterColumns.add(filterColumn);
+ return this;
+ }
+
+ /**
+ * @return the column list
+ */
+ public Collection<FilterColumnDto> getColumns() {
+ return filterColumns;
+ }
+
+ /**
+ * @return the criterion list
+ */
+ public Collection<CriterionDto> getCriteria() {
+ return criteria;
+ }
+
+ /**
+ * @return the defaut view
+ */
+ public String getDefaultView() {
+ return defaultView;
+ }
+
+ /**
+ * @return <code>true</code> if the filter returns only favourites
+ */
+ public Boolean getFavourites() {
+ return favourites;
+ }
+
+ /**
+ * @return the column list
+ */
+ public List<FilterColumnDto> getFilterColumns() {
+ return filterColumns;
+ }
+
/**
* @return the id
*/
return id;
}
+ /**
+ * @return the key
+ */
+ public String getKey() {
+ return key;
+ }
+
/**
* @return the name
*/
}
/**
- * @param name the name to set
+ * @return the page size
*/
- public FilterDto setName(String name) {
- this.name = name;
- return this;
+ public Long getPageSize() {
+ return pageSize;
}
/**
- * @return the key
+ * @return the period index
*/
- public String getKey() {
- return key;
+ public Long getPeriodIndex() {
+ return periodIndex;
}
/**
- * @param key the key to set
+ * @return the resource id
*/
- public FilterDto setKey(String key) {
- this.key = key;
- return this;
+ public Long getResourceId() {
+ return resourceId;
}
/**
* @return <code>true</code> if the filter is shared
*/
- public Boolean isShared() {
+ public Boolean getShared() {
return shared;
}
/**
- * @param shared the shared to set
+ * @return the user id
*/
- public FilterDto setShared(Boolean shared) {
- this.shared = shared;
- return this;
+ public Long getUserId() {
+ return userId;
}
/**
}
/**
- * @param favourites the favourites to set
- */
- public FilterDto setFavourites(Boolean favourites) {
- this.favourites = favourites;
- return this;
- }
-
- /**
- * @return the defaut view
+ * @return <code>true</code> if the filter is shared
*/
- public String getDefaultView() {
- return defaultView;
+ public Boolean isShared() {
+ return shared;
}
/**
}
/**
- * @return the page size
+ * @param favourites the favourites to set
*/
- public Long getPageSize() {
- return pageSize;
- }
-
- public FilterDto setPageSize(Long pageSize) {
- this.pageSize = pageSize;
+ public FilterDto setFavourites(Boolean favourites) {
+ this.favourites = favourites;
return this;
}
/**
- * @return the criterion list
+ * @param key the key to set
*/
- public Collection<CriterionDto> getCriteria() {
- return criteria;
+ public FilterDto setKey(String key) {
+ this.key = key;
+ return this;
}
/**
- * Add a {@link CriterionDto} to the list.
- *
- * @param criterion the criterion to add
+ * @param name the name to set
*/
- public FilterDto add(CriterionDto criterion) {
- criteria.add(criterion);
+ public FilterDto setName(String name) {
+ this.name = name;
return this;
}
- /**
- * @return the column list
- */
- public Collection<FilterColumnDto> getColumns() {
- return filterColumns;
+ public FilterDto setPageSize(Long pageSize) {
+ this.pageSize = pageSize;
+ return this;
}
/**
- * Add a {@link FilterColumnDto} to the list.
- *
- * @param filterColumn the column to add
+ * @param shared the shared to set
*/
- public FilterDto add(FilterColumnDto filterColumn) {
- filterColumns.add(filterColumn);
+ public FilterDto setShared(Boolean shared) {
+ this.shared = shared;
return this;
}
}