use of util.datatable.DataTableParams in project coprhd-controller by CoprHD.
the class Dashboard method listJson.
public static void listJson() {
DataTableParams dataTableParams = DataTablesSupport.createParams(params);
DashboardOrdersDataTable dataTable = new DashboardOrdersDataTable();
renderJSON(DataTablesSupport.createJSON(dataTable.fetchData(dataTableParams), params));
}
use of util.datatable.DataTableParams in project coprhd-controller by CoprHD.
the class Orders method allOrdersJson.
@Restrictions({ @Restrict("TENANT_ADMIN") })
public static void allOrdersJson(Integer maxDays) {
DataTableParams dataTableParams = DataTablesSupport.createParams(params);
RecentUserOrdersDataTable dataTable = new RecentUserOrdersDataTable();
dataTable.setByStartEndDateOrMaxDays(params.get("startDate"), params.get("endDate"), maxDays);
renderJSON(DataTablesSupport.createJSON(dataTable.fetchData(dataTableParams), params));
}
use of util.datatable.DataTableParams in project coprhd-controller by CoprHD.
the class ScheduledOrders method listJson.
public static void listJson() {
DataTableParams dataTableParams = DataTablesSupport.createParams(params);
ScheduledOrdersDataTable dataTable = new ScheduledOrdersDataTable();
renderJSON(DataTablesSupport.createJSON(dataTable.fetchData(dataTableParams), params));
}
Aggregations