Examples of CharacterNoteDTO


Examples of net.cloudcodex.shared.dto.campaign.character.CharacterNoteDTO

  }

  public CharacterNoteDTO getChangedNotes() {
    String newNotes = notesTextArea.getText();
    if ((ClientUtils.getChangedText(newNotes, content)) != null) {
      CharacterNoteDTO noteDTO = new CharacterNoteDTO();
      noteDTO.setAuthor(author);
      noteDTO.setContent(newNotes);
      noteDTO.setTimestamp(new Date());
      return noteDTO ;
    }
    return null;
  }
View Full Code Here

Examples of net.cloudcodex.shared.dto.campaign.character.CharacterNoteDTO

            List<CharacterNoteDTO> notes = new ArrayList<CharacterNoteDTO>();
            Boolean isLocked = view.isLocked();
            Boolean isDead = view.isDead();

            for (CharactersNoteView notesView : noteViews) {
              CharacterNoteDTO changedNote = notesView
                  .getChangedNotes();
              if (changedNote != null) {
                if (changedNote.getAuthor() == null) {
                  changedNote.setAuthor(byCharacterId);
                }
                notes.add(changedNote);
                CharacterNoteDTO note = charactersNotesMap
                    .get(byCharacterId);
              }
            }

            Map<Long, String> aliases = view.getAliases();
View Full Code Here

Examples of net.cloudcodex.shared.dto.campaign.character.CharacterNoteDTO

          id = characterHeaderDTO.getId();
          CharactersNotesPresenter characterNotesPresenter = eventBus
              .addHandler(CharactersNotesPresenter.class);

          CharacterNoteDTO noteDTO = charactersNotesMap.get(id);
          characterNotesPresenter.addCharacterNote(noteDTO);
          characterNotesPresenter.addCharacterID(id);
          characterNotesPresenter.addAuthor(id);
          characterNotesPresenter.initview();
          if (characterCDO.getId() != id) {
View Full Code Here

Examples of net.cloudcodex.shared.dto.campaign.character.CharacterNoteDTO

   
    if(note == null) {
      return null;
    }
   
    final CharacterNoteDTO dto = new CharacterNoteDTO();
    final Key authorKey = note.getAuthor();
    dto.setAuthor(authorKey == null ? null : authorKey.getId());
    dto.setContent(note.getContent());
    dto.setTimestamp(note.getTimestamp());
   
    return dto;
  }
View Full Code Here

Examples of net.cloudcodex.shared.dto.campaign.character.CharacterNoteDTO

      return null;
    }
   
    final List<CharacterNoteDTO> dtos = new ArrayList<CharacterNoteDTO>();
    for(CharacterNote sdo : sdos) {
      final CharacterNoteDTO dto = mapCharacterNote(sdo);
      if(dto != null) {
        dtos.add(dto);
      }
    }
   
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.