[abportal] View of /src/main/java/eu/smartlm/abs/portal/view/event/EventData.java
View of /src/main/java/eu/smartlm/abs/portal/view/event/EventData.java
Parent Directory
| Revision Log
Revision 1 -
( download)
( annotate)
Wed Jul 28 10:05:51 2010 UTC
(13 years, 10 months ago)
by dgarcia
File size: 4614 byte(s)
First code commit
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<SmartLMUsageRecordType> usageRecords;
private String type;
private String startDate;
private String endDate;
private Set<String> queryProducts = new HashSet<String>();
private Set<String> queryUsers = new HashSet<String>();
private Set<String> queryAccountingGroups = new HashSet<String>();
private Set<String> queryOrganizations = new HashSet<String>();
private Set<String> queryProjects = new HashSet<String>();
private Set<String> queryHosts = new HashSet<String>();
private Set<String> querySubmitHosts = new HashSet<String>();
private String total = "";
public EventData() {}
public EventData(boolean represent, JFreeChart graph, Set<SmartLMUsageRecordType> 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<SmartLMUsageRecordType> usageRecords) {
this.usageRecords = usageRecords;
}
/**
* @return the usageRecords
*/
public Set<SmartLMUsageRecordType> 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<String> getQueryProducts() {
return queryProducts;
}
/**
* @param queryProducts the queryProducts to set
*/
public void setQueryProducts(Set<String> queryProducts) {
this.queryProducts = queryProducts;
}
/**
* @return the queryUsers
*/
public Set<String> getQueryUsers() {
return queryUsers;
}
/**
* @param queryUsers the queryUsers to set
*/
public void setQueryUsers(Set<String> queryUsers) {
this.queryUsers = queryUsers;
}
/**
* @return the queryDepartments
*/
public Set<String> getQueryAccountingGroups() {
return queryAccountingGroups;
}
/**
* @param queryDepartments the queryAccountingGroups to set
*/
public void setQueryAccountingGroups(Set<String> queryAccountingGroups) {
this.queryAccountingGroups = queryAccountingGroups;
}
/**
* @return the queryOrganizations
*/
public Set<String> getQueryOrganizations() {
return queryOrganizations;
}
/**
* @param queryOrganizations the queryOrganizations to set
*/
public void setQueryOrganizations(Set<String> queryOrganizations) {
this.queryOrganizations = queryOrganizations;
}
/**
* @return the queryProjects
*/
public Set<String> getQueryProjects() {
return queryProjects;
}
/**
* @param queryProjects the queryProjects to set
*/
public void setQueryProjects(Set<String> queryProjects) {
this.queryProjects = queryProjects;
}
/**
* @return the queryHosts
*/
public Set<String> getQueryHosts() {
return queryHosts;
}
/**
* @param queryHosts the queryHosts to set
*/
public void setQueryHosts(Set<String> queryHosts) {
this.queryHosts = queryHosts;
}
/**
* @return the querySubmitHosts
*/
public Set<String> getQuerySubmitHosts() {
return querySubmitHosts;
}
/**
* @param querySubmitHosts the querySubmitHosts to set
*/
public void setQuerySubmitHosts(Set<String> querySubmitHosts) {
this.querySubmitHosts = querySubmitHosts;
}
public void setTotal(String total) {
this.total = total;
}
public String getTotal() {
return total;
}
}
|