#55 added ConferenceFilterDto

This commit is contained in:
Nightblade73 2019-04-04 17:47:18 +04:00
parent e3bbade40b
commit d189891e8c
2 changed files with 44 additions and 0 deletions

View File

@ -16,4 +16,9 @@ public class ConferenceController {
public ConferenceController(ConferenceService paperService) { public ConferenceController(ConferenceService paperService) {
this.conferenceService = paperService; this.conferenceService = paperService;
} }
//
// @GetMapping("/papers")
// public void getPapers(ModelMap modelMap) {
// modelMap.put("filteredPapers", new PaperFilterDto(paperService.findAllDto(), null, null));
// }
} }

View File

@ -1,4 +1,43 @@
package ru.ulstu.conference.model; package ru.ulstu.conference.model;
import java.util.List;
public class ConferenceFilterDto { public class ConferenceFilterDto {
private List<ConferenceDto> papers;
private Integer filterAuthorId;
private Integer year;
public ConferenceFilterDto() {
}
public ConferenceFilterDto(List<ConferenceDto> conferenceDtos, Integer filterAuthorId, Integer year) {
this.papers = conferenceDtos;
this.filterAuthorId = filterAuthorId;
this.year = year;
}
public List<ConferenceDto> getPapers() {
return papers;
}
public void setPapers(List<ConferenceDto> papers) {
this.papers = papers;
}
public Integer getFilterAuthorId() {
return filterAuthorId;
}
public void setFilterAuthorId(Integer filterAuthorId) {
this.filterAuthorId = filterAuthorId;
}
public Integer getYear() {
return year;
}
public void setYear(Integer year) {
this.year = year;
}
} }