62 lines
1.5 KiB
Java
62 lines
1.5 KiB
Java
package org.gcube.portlets.admin.accountingmanager.server.amservice.query;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import org.gcube.accounting.analytics.Filter;
|
|
import org.gcube.accounting.analytics.TemporalConstraint;
|
|
import org.gcube.accounting.datamodel.AggregatedUsageRecord;
|
|
|
|
|
|
|
|
/**
|
|
*
|
|
* @author giancarlo email: <a
|
|
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
|
*
|
|
*/
|
|
@SuppressWarnings("rawtypes")
|
|
public class AccountingQuery {
|
|
private Class<? extends AggregatedUsageRecord> type;
|
|
private TemporalConstraint temporalConstraint;
|
|
private ArrayList<Filter> filters;
|
|
|
|
|
|
public AccountingQuery(Class<? extends AggregatedUsageRecord> type,
|
|
TemporalConstraint temporalConstraint, ArrayList<Filter> filters) {
|
|
super();
|
|
this.type = type;
|
|
this.temporalConstraint = temporalConstraint;
|
|
this.filters = filters;
|
|
}
|
|
|
|
public Class<? extends AggregatedUsageRecord> getType() {
|
|
return type;
|
|
}
|
|
|
|
public void setType(Class<? extends AggregatedUsageRecord> type) {
|
|
this.type = type;
|
|
}
|
|
|
|
public TemporalConstraint getTemporalConstraint() {
|
|
return temporalConstraint;
|
|
}
|
|
|
|
public void setTemporalConstraint(TemporalConstraint temporalConstraint) {
|
|
this.temporalConstraint = temporalConstraint;
|
|
}
|
|
|
|
public ArrayList<Filter> getFilters() {
|
|
return filters;
|
|
}
|
|
|
|
public void setFilters(ArrayList<Filter> filters) {
|
|
this.filters = filters;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "AccountingQuery [type=" + type + ", temporalConstraint="
|
|
+ temporalConstraint + ", filters=" + filters + "]";
|
|
}
|
|
|
|
} |