Search in sources :

Example 1 with DataTableParams

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));
}
Also used : DataTableParams(util.datatable.DataTableParams)

Example 2 with DataTableParams

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));
}
Also used : DataTableParams(util.datatable.DataTableParams) Restrictions(controllers.deadbolt.Restrictions)

Example 3 with DataTableParams

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));
}
Also used : ScheduledOrdersDataTable(models.datatable.ScheduledOrdersDataTable) DataTableParams(util.datatable.DataTableParams)

Aggregations

DataTableParams (util.datatable.DataTableParams)3 Restrictions (controllers.deadbolt.Restrictions)1 ScheduledOrdersDataTable (models.datatable.ScheduledOrdersDataTable)1