Package com.zerodes.exchangesync.dto

Examples of com.zerodes.exchangesync.dto.NoteDto


  public void addTask(final TaskDto task) throws Exception {
    // Add email tag
    task.addTag("email");

    // Add ExchangeID note
    final NoteDto exchangeIdNote = new NoteDto();
    exchangeIdNote.setTitle(EXCHANGE_ID_NOTE_TITLE);
    exchangeIdNote.setBody(task.getExchangeId());
    task.addNote(exchangeIdNote);

    // Add Original Subject note
    final NoteDto originalSubjectNote = new NoteDto();
    originalSubjectNote.setTitle(ORIGINAL_SUBJECT_NOTE_TITLE);
    originalSubjectNote.setBody(task.getName());
    task.addNote(originalSubjectNote);

    final String timelineId = createTimeline();
    addTask(timelineId, defaultRtmListId, task);
    LOG.info("Added RTM task " + task.getName());
View Full Code Here


          for (final Node tagNode : tagNodes) {
            rtmTask.addTag(tagNode.getText());
          }
          final List<Node> noteNodes = taskSeriesNode.selectNodes("notes/note");
          for (final Node noteNode : noteNodes) {
            final NoteDto note = new NoteDto();
            note.setTitle(noteNode.selectSingleNode("@title").getText());
            note.setBody(noteNode.getText());
            rtmTask.addNote(note);
            if (note.getTitle().equals(EXCHANGE_ID_NOTE_TITLE)) {
              rtmTask.setExchangeId(note.getBody());
            }
          }
          results.add(rtmTask);
        }
      }
View Full Code Here

TOP

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

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.