
net.anotheria.moskito.webui.dashboards.api.DashboardDefinitionAO Maven / Gradle / Ivy
package net.anotheria.moskito.webui.dashboards.api;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
/**
* This class represents configured and existing dashboard.
*
* @author lrosenberg
* @since 15.04.15 09:13
*/
@XmlRootElement(name="DashboardDefinition")
@XmlAccessorType(XmlAccessType.FIELD)
public class DashboardDefinitionAO implements Serializable{
/**
* SerialVersionUID.
*/
private static final long serialVersionUID = 2831684393429730423L;
/**
* Name of the Dashboard.
*/
@XmlElement
private String name;
/**
* List with gauges names for this dashboard.
*/
@XmlElement
private List gauges = Collections.emptyList();
/**
* List for threshold names for this dashboard.
*/
@XmlElement
private List thresholds = Collections.emptyList();
/**
* Charts for this dashboard.
*/
@XmlElement
private List charts = new LinkedList();
public List getGauges() {
return gauges;
}
public void setGauges(List gauges) {
this.gauges = gauges;
}
public List getThresholds() {
return thresholds;
}
public void setThresholds(List thresholds) {
this.thresholds = thresholds;
}
public void addChart(DashboardChartDefinitionAO chart){
charts.add(chart);
}
public List getCharts() {
return charts;
}
public void setCharts(List charts) {
this.charts = charts;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy