72 lines
1.9 KiB
Java
72 lines
1.9 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;
|
|
import org.gcube.portlets.admin.accountingmanager.shared.data.ChartType;
|
|
import org.gcube.portlets.admin.accountingmanager.shared.data.Context;
|
|
|
|
/**
|
|
*
|
|
* @author Giancarlo Panichi
|
|
*
|
|
*
|
|
*/
|
|
public class AccountingQueryBasic extends AccountingQuery {
|
|
private Class<? extends AggregatedUsageRecord<?, ?>> type;
|
|
private Context context;
|
|
private TemporalConstraint temporalConstraint;
|
|
private ArrayList<Filter> filters;
|
|
|
|
public AccountingQueryBasic(Class<? extends AggregatedUsageRecord<?, ?>> type, Context context,
|
|
TemporalConstraint temporalConstraint, ArrayList<Filter> filters) {
|
|
super();
|
|
chartType = ChartType.Basic;
|
|
this.type = type;
|
|
this.temporalConstraint = temporalConstraint;
|
|
this.context = context;
|
|
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 Context getContext() {
|
|
return context;
|
|
}
|
|
|
|
public void setContext(Context context) {
|
|
this.context = context;
|
|
}
|
|
|
|
public ArrayList<Filter> getFilters() {
|
|
return filters;
|
|
}
|
|
|
|
public void setFilters(ArrayList<Filter> filters) {
|
|
this.filters = filters;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "AccountingQueryBasic [type=" + type + ", context=" + context + ", temporalConstraint="
|
|
+ temporalConstraint + ", filters=" + filters + "]";
|
|
}
|
|
|
|
} |