package eu.smartlm.abs.portal.view.event; import java.io.Serializable; import java.util.HashSet; import java.util.Set; import org.jfree.chart.JFreeChart; import eu.smartlm.schemas.x2009.x06.urec.SmartLMUsageRecordType; /** * Event data that is send between the two Accounting and Billing Portlets. * @author David García Pérez - CESGA * */ public class EventData implements Serializable { private static final long serialVersionUID = 9151845277910227154L; private boolean represent; private JFreeChart graph; private Set usageRecords; private String type; private String startDate; private String endDate; private Set queryProducts = new HashSet(); private Set queryUsers = new HashSet(); private Set queryAccountingGroups = new HashSet(); private Set queryOrganizations = new HashSet(); private Set queryProjects = new HashSet(); private Set queryHosts = new HashSet(); private Set querySubmitHosts = new HashSet(); private String total = ""; public EventData() {} public EventData(boolean represent, JFreeChart graph, Set usageRecords, String type, String startDate, String endDate) { this.represent = represent; this.graph = graph; this.type = type; this.setUsageRecords(usageRecords); this.startDate = startDate; this.endDate = endDate; } /** * @param represent the represent to set */ public void setRepresent(boolean represent) { this.represent = represent; } /** * @return the represent */ public boolean isRepresent() { return represent; } /** * @param graph the graph to set */ public void setGraph(JFreeChart graph) { this.graph = graph; } /** * @return the graph */ public JFreeChart getGraph() { return graph; } /** * @param usageRecords the usageRecords to set */ public void setUsageRecords(Set usageRecords) { this.usageRecords = usageRecords; } /** * @return the usageRecords */ public Set getUsageRecords() { return usageRecords; } public void setType(String type) { this.type = type; } public String getType() { return type; } public void setStartDate(String startDate) { this.startDate = startDate; } public String getStartDate() { return startDate; } public void setEndDate(String endDate) { this.endDate = endDate; } public String getEndDate() { return endDate; } /** * @return the queryProducts */ public Set getQueryProducts() { return queryProducts; } /** * @param queryProducts the queryProducts to set */ public void setQueryProducts(Set queryProducts) { this.queryProducts = queryProducts; } /** * @return the queryUsers */ public Set getQueryUsers() { return queryUsers; } /** * @param queryUsers the queryUsers to set */ public void setQueryUsers(Set queryUsers) { this.queryUsers = queryUsers; } /** * @return the queryDepartments */ public Set getQueryAccountingGroups() { return queryAccountingGroups; } /** * @param queryDepartments the queryAccountingGroups to set */ public void setQueryAccountingGroups(Set queryAccountingGroups) { this.queryAccountingGroups = queryAccountingGroups; } /** * @return the queryOrganizations */ public Set getQueryOrganizations() { return queryOrganizations; } /** * @param queryOrganizations the queryOrganizations to set */ public void setQueryOrganizations(Set queryOrganizations) { this.queryOrganizations = queryOrganizations; } /** * @return the queryProjects */ public Set getQueryProjects() { return queryProjects; } /** * @param queryProjects the queryProjects to set */ public void setQueryProjects(Set queryProjects) { this.queryProjects = queryProjects; } /** * @return the queryHosts */ public Set getQueryHosts() { return queryHosts; } /** * @param queryHosts the queryHosts to set */ public void setQueryHosts(Set queryHosts) { this.queryHosts = queryHosts; } /** * @return the querySubmitHosts */ public Set getQuerySubmitHosts() { return querySubmitHosts; } /** * @param querySubmitHosts the querySubmitHosts to set */ public void setQuerySubmitHosts(Set querySubmitHosts) { this.querySubmitHosts = querySubmitHosts; } public void setTotal(String total) { this.total = total; } public String getTotal() { return total; } }