Examples of TaskDto


Examples of com.abiquo.server.core.task.TaskDto

   }

   private static class MockAsyncTask extends VirtualMachineTask {
      @SuppressWarnings("unchecked")
      public MockAsyncTask() {
         super(EasyMock.createMock(ApiContext.class), new TaskDto());
      }
View Full Code Here

Examples of com.abiquo.server.core.task.TaskDto

   protected AsyncTask<?, ?> getTask(final AcceptedRequestDto<String> acceptedRequest) {
      RESTLink taskLink = acceptedRequest.getStatusLink();
      checkNotNull(taskLink, ValidationErrors.MISSING_REQUIRED_LINK + AsyncTask.class);

      // This will return null on untrackable tasks
      TaskDto dto = context.getApi().getTaskApi().getTask(taskLink);
      return newTask(context, dto);
   }
View Full Code Here

Examples of com.abiquo.server.core.task.TaskDto

   protected AsyncTask<?, ?>[] getTasks(final AcceptedRequestDto<String> acceptedRequest) {
      List<AsyncTask<?, ?>> tasks = Lists.newArrayList();

      for (RESTLink link : acceptedRequest.getLinks()) {
         // This will return null on untrackable tasks
         TaskDto dto = context.getApi().getTaskApi().getTask(link);
         if (dto != null) {
            tasks.add(newTask(context, dto));
         }
      }
View Full Code Here

Examples of com.abiquo.server.core.task.TaskDto

   }

   private static class MockAsyncTask extends VirtualMachineTask {
      @SuppressWarnings("unchecked")
      public MockAsyncTask() {
         super(EasyMock.createMock(ApiContext.class), new TaskDto());
      }
View Full Code Here

Examples of com.abiquo.server.core.task.TaskDto

   protected AsyncTask<?, ?> getTask(final AcceptedRequestDto<String> acceptedRequest) {
      RESTLink taskLink = acceptedRequest.getStatusLink();
      checkNotNull(taskLink, ValidationErrors.MISSING_REQUIRED_LINK + AsyncTask.class);

      // This will return null on untrackable tasks
      TaskDto dto = context.getApi().getTaskApi().getTask(taskLink);
      return newTask(context, dto);
   }
View Full Code Here

Examples of com.abiquo.server.core.task.TaskDto

   protected AsyncTask<?, ?>[] getTasks(final AcceptedRequestDto<String> acceptedRequest) {
      List<AsyncTask<?, ?>> tasks = Lists.newArrayList();

      for (RESTLink link : acceptedRequest.getLinks()) {
         // This will return null on untrackable tasks
         TaskDto dto = context.getApi().getTaskApi().getTask(link);
         if (dto != null) {
            tasks.add(newTask(context, dto));
         }
      }
View Full Code Here

Examples of com.abiquo.server.core.task.TaskDto

   protected AsyncTask getTask(final AcceptedRequestDto<String> acceptedRequest) {
      RESTLink taskLink = acceptedRequest.getStatusLink();
      checkNotNull(taskLink, ValidationErrors.MISSING_REQUIRED_LINK + AsyncTask.class);

      // This will return null on untrackable tasks
      TaskDto task = context.getApi().getTaskApi().getTask(taskLink);
      return wrap(context, AsyncTask.class, task);
   }
View Full Code Here

Examples of com.abiquo.server.core.task.TaskDto

   protected AsyncTask[] getTasks(final AcceptedRequestDto<String> acceptedRequest) {
      List<AsyncTask> tasks = Lists.newArrayList();

      for (RESTLink link : acceptedRequest.getLinks()) {
         // This will return null on untrackable tasks
         TaskDto task = context.getApi().getTaskApi().getTask(link);
         if (task != null) {
            tasks.add(wrap(context, AsyncTask.class, task));
         }
      }
View Full Code Here

Examples of com.abiquo.server.core.task.TaskDto

   }

   private static class MockAsyncTask extends AsyncTask {
      @SuppressWarnings("unchecked")
      public MockAsyncTask() {
         super(EasyMock.createMock(ApiContext.class), new TaskDto());
      }
View Full Code Here

Examples of com.zerodes.exchangesync.dto.TaskDto

    final Collection<TaskDto> otherTasks = otherSource.getAllTasks();
    final Collection<TaskDto> exchangeTasks = exchangeSource.getAllTasks();
    final Map<String, TaskDto> otherTasksMap = generateExchangeIdMap(otherTasks);
    final Map<String, TaskDto> exchangeTasksMap = generateExchangeIdMap(exchangeTasks);
    for (final TaskDto exchangeTask : exchangeTasks) {
      final TaskDto otherTask = otherTasksMap.get(exchangeTask.getExchangeId());
      results.add(new Pair<TaskDto, TaskDto>(exchangeTask, otherTask));
    }
    for (final TaskDto otherTask : otherTasks) {
      final TaskDto exchangeTask = exchangeTasksMap.get(otherTask.getExchangeId());
      results.add(new Pair<TaskDto, TaskDto>(exchangeTask, otherTask));
    }
    return results;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.