Search in sources :

Example 1 with TaskLogsDataTable

use of models.datatable.TaskLogsDataTable in project coprhd-controller by CoprHD.

the class Tasks method details.

public static void details(String taskId) {
    if (StringUtils.isBlank(taskId)) {
        listAll(false);
    }
    TaskResourceRep task = TaskUtils.getTask(uri(taskId));
    if (task == null) {
        flash.error(MessagesUtils.get(UNKNOWN, taskId));
        listAll(false);
    }
    if (task != null && task.getResource() != null && task.getResource().getId() != null) {
        ResourceType resourceType = ResourceType.fromResourceId(task.getResource().getId().toString());
        renderArgs.put("resourceType", resourceType);
    }
    String orderId = TagUtils.getOrderIdTagValue(task);
    String orderNumber = TagUtils.getOrderNumberTagValue(task);
    Common.angularRenderArgs().put("task", TaskUtils.getTaskSummary(task));
    TaskLogsDataTable dataTable = new TaskLogsDataTable();
    render(task, dataTable, orderId, orderNumber);
}
Also used : TaskResourceRep(com.emc.storageos.model.TaskResourceRep) TaskLogsDataTable(models.datatable.TaskLogsDataTable) ResourceType(com.emc.sa.util.ResourceType)

Aggregations

ResourceType (com.emc.sa.util.ResourceType)1 TaskResourceRep (com.emc.storageos.model.TaskResourceRep)1 TaskLogsDataTable (models.datatable.TaskLogsDataTable)1