use of models.datatable.TasksDataTable in project coprhd-controller by CoprHD.
the class Tasks method listAll.
public static void listAll(Boolean systemTasks) {
TenantSelector.addRenderArgs();
if (systemTasks == null) {
systemTasks = Boolean.FALSE;
}
if (systemTasks && Security.isSystemAdminOrRestrictedSystemAdmin() == false) {
forbidden();
}
renderArgs.put("isSystemAdmin", Security.isSystemAdminOrRestrictedSystemAdmin());
renderArgs.put("systemTasks", systemTasks);
renderArgs.put("dataTable", new TasksDataTable(true));
Common.angularRenderArgs().put("tenantId", systemTasks ? "system" : Models.currentAdminTenant());
addMaxTasksRenderArgs();
render();
}
Aggregations