Package com.zerodes.exchangesync.dto

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


        flagValue = (Integer) extendedProperty.getValue();
      } else if (extendedProperty.getPropertyDefinition().getId() != null && extendedProperty.getPropertyDefinition().getId() == PID_LID_TASK_DUE_DATE) {
        dueDate = (Date) extendedProperty.getValue();
      }
    }
    final TaskDto task = new TaskDto();
    task.setExchangeId(email.getId().getUniqueId());
    task.setLastModified(convertToJodaDateTime(email.getLastModifiedTime(), false));
    task.setName(email.getSubject());
    if (flagValue == null) {
      throw new RuntimeException("Found email without follow-up flag!");
    } else if (flagValue == PR_FLAG_STATUS_FOLLOWUP_COMPLETE) {
      task.setCompleted(true);
    }
    task.setDueDate(convertToJodaDateTime(dueDate, false));
    return task;
  }
View Full Code Here

TOP

Related Classes of com.zerodes.exchangesync.dto.TaskDto

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.