139 lines
3.3 KiB
Java
139 lines
3.3 KiB
Java
package org.gcube.portlets.admin.accountingmanager.shared.data;
|
|
|
|
import java.io.Serializable;
|
|
import java.util.ArrayList;
|
|
|
|
/**
|
|
*
|
|
* @author Giancarlo Panichi
|
|
*
|
|
*
|
|
*/
|
|
public class AccountingFilterTop extends AccountingFilterDefinition implements Serializable {
|
|
|
|
private static final long serialVersionUID = -6805006183397381154L;
|
|
private Context context;
|
|
private String scopeFilterActive;
|
|
private FilterKey filterKey;
|
|
private Boolean showOthers;
|
|
private Integer topNumber;
|
|
private ArrayList<AccountingFilter> filters;
|
|
|
|
public AccountingFilterTop() {
|
|
super();
|
|
this.chartType = ChartType.Top;
|
|
context = null;
|
|
scopeFilterActive = null;
|
|
showOthers = false;
|
|
topNumber = 5;
|
|
filterKey = null;
|
|
filters = null;
|
|
|
|
}
|
|
|
|
public AccountingFilterTop(Context context, Boolean showOthers, Integer topNumber) {
|
|
super();
|
|
this.chartType = ChartType.Top;
|
|
this.context = context;
|
|
this.scopeFilterActive = null;
|
|
this.showOthers = showOthers;
|
|
this.topNumber = topNumber;
|
|
filterKey = null;
|
|
filters = null;
|
|
|
|
}
|
|
|
|
public AccountingFilterTop(Context context, String scopeFilterActive, Boolean showOthers, Integer topNumber) {
|
|
super();
|
|
this.chartType = ChartType.Top;
|
|
this.context = context;
|
|
this.scopeFilterActive = scopeFilterActive;
|
|
this.showOthers = showOthers;
|
|
this.topNumber = topNumber;
|
|
filterKey = null;
|
|
filters = null;
|
|
|
|
}
|
|
|
|
public AccountingFilterTop(Context context, FilterKey filterKey, ArrayList<AccountingFilter> filters,
|
|
Boolean showOthers, Integer topNumber) {
|
|
super();
|
|
chartType = ChartType.Top;
|
|
this.context = context;
|
|
this.scopeFilterActive = null;
|
|
this.filterKey = filterKey;
|
|
this.filters = filters;
|
|
this.showOthers = showOthers;
|
|
this.topNumber = topNumber;
|
|
}
|
|
|
|
public AccountingFilterTop(Context context, String scopeFilterActive, FilterKey filterKey,
|
|
ArrayList<AccountingFilter> filters, Boolean showOthers, Integer topNumber) {
|
|
super();
|
|
chartType = ChartType.Top;
|
|
this.context = context;
|
|
this.scopeFilterActive = scopeFilterActive;
|
|
this.filterKey = filterKey;
|
|
this.filters = filters;
|
|
this.showOthers = showOthers;
|
|
this.topNumber = topNumber;
|
|
}
|
|
|
|
public Context getContext() {
|
|
return context;
|
|
}
|
|
|
|
public void setContext(Context context) {
|
|
this.context = context;
|
|
}
|
|
|
|
public FilterKey getFilterKey() {
|
|
return filterKey;
|
|
}
|
|
|
|
public void setFilterKey(FilterKey filterKey) {
|
|
this.filterKey = filterKey;
|
|
}
|
|
|
|
public Boolean getShowOthers() {
|
|
return showOthers;
|
|
}
|
|
|
|
public void setShowOthers(Boolean showOthers) {
|
|
this.showOthers = showOthers;
|
|
}
|
|
|
|
public Integer getTopNumber() {
|
|
return topNumber;
|
|
}
|
|
|
|
public void setTopNumber(Integer topNumber) {
|
|
this.topNumber = topNumber;
|
|
}
|
|
|
|
public ArrayList<AccountingFilter> getFilters() {
|
|
return filters;
|
|
}
|
|
|
|
public void setFilters(ArrayList<AccountingFilter> filters) {
|
|
this.filters = filters;
|
|
}
|
|
|
|
public String getScopeFilterActive() {
|
|
return scopeFilterActive;
|
|
}
|
|
|
|
public void setScopeFilterActive(String scopeFilterActive) {
|
|
this.scopeFilterActive = scopeFilterActive;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "AccountingFilterTop [context=" + context + ", scopeFilterActive=" + scopeFilterActive + ", filterKey="
|
|
+ filterKey + ", showOthers=" + showOthers + ", topNumber=" + topNumber + ", filters=" + filters
|
|
+ ", chartType=" + chartType + "]";
|
|
}
|
|
|
|
|
|
}
|