Package org.activiti.rest.common.api

Examples of org.activiti.rest.common.api.DataResponse


   
    if (size == null) {
      size = DEFAULT_RESULT_SIZE;
    }
   
    DataResponse response = new DataResponse();
   
    TablePageQuery tablePageQuery = managementService.createTablePageQuery().tableName(tableName);
   
    if (orderAsc != null) {
      tablePageQuery.orderAsc(orderAsc);
      response.setOrder("asc");
      response.setSort(orderAsc);
    }
   
    if (orderDesc != null) {
      tablePageQuery.orderDesc(orderDesc);
      response.setOrder("desc");
      response.setSort(orderDesc);
    }
   
    TablePage listPage = tablePageQuery.listPage(start, size);
    response.setSize(((Long) listPage.getSize()).intValue());
    response.setStart(((Long) listPage.getFirstResult()).intValue());
    response.setTotal(listPage.getTotal());
    response.setData(listPage.getRows());
   
    return response;
  }
View Full Code Here


      if (withoutTenantId) {
        deploymentQuery.deploymentWithoutTenantId();
      }
    }

    DataResponse response = new DeploymentsPaginateList(restResponseFactory, request.getRequestURL().toString().replace("/repository/deployments", ""))
        .paginateList(allRequestParams, deploymentQuery, "id", allowedSortProperties);
    return response;
  }
View Full Code Here

TOP

Related Classes of org.activiti.rest.common.api.DataResponse

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.