108 lines
2.3 KiB
Java
108 lines
2.3 KiB
Java
package eu.dnetlib.uoamonitorservice.entities;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
import org.springframework.data.annotation.Id;
|
|
|
|
import java.util.List;
|
|
|
|
enum IndicatorType {
|
|
// Do not rename or remove existring values. This may cause problems with already stored values in DB
|
|
number, chart;
|
|
}
|
|
|
|
enum IndicatorWidth {
|
|
// Do not rename or remove existring values. This may cause problems with already stored values in DB
|
|
small, medium, large;
|
|
}
|
|
|
|
public class Indicator {
|
|
@Id
|
|
@JsonProperty("_id")
|
|
private String id;
|
|
|
|
private String name;
|
|
private String description;
|
|
private IndicatorType type; //number,chart
|
|
private IndicatorWidth width; //small,medium,large
|
|
private List<String> tags;
|
|
private boolean isActive;
|
|
private boolean isPublic;
|
|
private List<IndicatorPath> indicatorPaths;
|
|
|
|
public String getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(String id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public String getDescription() {
|
|
return description;
|
|
}
|
|
|
|
public void setDescription(String description) {
|
|
this.description = description;
|
|
}
|
|
|
|
public IndicatorType getType() {
|
|
return type;
|
|
}
|
|
|
|
public void setType(IndicatorType type) {
|
|
this.type = type;
|
|
}
|
|
|
|
public IndicatorWidth getWidth() {
|
|
return width;
|
|
}
|
|
|
|
public void setWidth(IndicatorWidth width) {
|
|
this.width = width;
|
|
}
|
|
|
|
public List<String> getTags() {
|
|
return tags;
|
|
}
|
|
|
|
public void setTags(List<String> tags) {
|
|
this.tags = tags;
|
|
}
|
|
|
|
public boolean getIsActive() {
|
|
return isActive;
|
|
}
|
|
|
|
public void setIsActive(boolean isActive) {
|
|
this.isActive = isActive;
|
|
}
|
|
|
|
public boolean getIsPublic() {
|
|
return isPublic;
|
|
}
|
|
|
|
public void setIsPublic(boolean isPublic) {
|
|
this.isPublic = isPublic;
|
|
}
|
|
|
|
public List<IndicatorPath> getIndicatorPaths() {
|
|
return indicatorPaths;
|
|
}
|
|
|
|
public void setIndicatorPaths(List<IndicatorPath> indicatorPaths) {
|
|
this.indicatorPaths = indicatorPaths;
|
|
}
|
|
|
|
public boolean hasType(String str) {
|
|
return this.type.equals(str);
|
|
}
|
|
}
|