Пример #1
0
  // req: 24.1
  public Collection<Message> findAllByFolder(Folder folder) {
    Assert.notNull(folder);
    Assert.isTrue(
        folder.getActor().equals(actorService.findByPrincipal()),
        "Only the owner of the folder can display them");

    Collection<Message> result;

    result = messageRepository.findAllByFolderId(folder.getId());

    return result;
  }