use of com.cloud.api.response.UpgradeRouterTemplateResponse in project cosmic by MissionCriticalCloud.
the class ApiResponseHelper method createUpgradeRouterTemplateResponse.
@Override
public ListResponse<UpgradeRouterTemplateResponse> createUpgradeRouterTemplateResponse(final List<Long> jobIds) {
final ListResponse<UpgradeRouterTemplateResponse> response = new ListResponse<>();
final List<UpgradeRouterTemplateResponse> responses = new ArrayList<>();
for (final Long jobId : jobIds) {
final UpgradeRouterTemplateResponse routerResponse = new UpgradeRouterTemplateResponse();
final AsyncJob job = _entityMgr.findById(AsyncJob.class, jobId);
routerResponse.setAsyncJobId(job.getUuid());
routerResponse.setObjectName("asyncjobs");
responses.add(routerResponse);
}
response.setResponses(responses);
return response;
}
Aggregations