|
|
|
@ -31,9 +31,7 @@ public class PaperDto {
|
|
|
|
|
private List<Deadline> deadlines = new ArrayList<>();
|
|
|
|
|
private String comment;
|
|
|
|
|
private Boolean locked;
|
|
|
|
|
|
|
|
|
|
private List<FileDataDto> files = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
private Set<Integer> authorIds;
|
|
|
|
|
private Set<UserDto> authors;
|
|
|
|
|
private Integer filterAuthorId;
|
|
|
|
@ -75,9 +73,7 @@ public class PaperDto {
|
|
|
|
|
this.deadlines = paper.getDeadlines();
|
|
|
|
|
this.comment = paper.getComment();
|
|
|
|
|
this.locked = paper.getLocked();
|
|
|
|
|
|
|
|
|
|
this.files = convert(paper.getFiles(), FileDataDto::new);
|
|
|
|
|
|
|
|
|
|
this.authorIds = convert(paper.getAuthors(), user -> user.getId());
|
|
|
|
|
this.authors = convert(paper.getAuthors(), UserDto::new);
|
|
|
|
|
}
|
|
|
|
|