From d189891e8c01622bae211331918575a92819e799 Mon Sep 17 00:00:00 2001 From: Nightblade73 Date: Thu, 4 Apr 2019 17:47:18 +0400 Subject: [PATCH] #55 added ConferenceFilterDto --- .../controller/ConferenceController.java | 5 +++ .../conference/model/ConferenceFilterDto.java | 39 +++++++++++++++++++ 2 files changed, 44 insertions(+) diff --git a/src/main/java/ru/ulstu/conference/controller/ConferenceController.java b/src/main/java/ru/ulstu/conference/controller/ConferenceController.java index aa871ba..3e4c17e 100644 --- a/src/main/java/ru/ulstu/conference/controller/ConferenceController.java +++ b/src/main/java/ru/ulstu/conference/controller/ConferenceController.java @@ -16,4 +16,9 @@ public class ConferenceController { public ConferenceController(ConferenceService paperService) { this.conferenceService = paperService; } +// +// @GetMapping("/papers") +// public void getPapers(ModelMap modelMap) { +// modelMap.put("filteredPapers", new PaperFilterDto(paperService.findAllDto(), null, null)); +// } } diff --git a/src/main/java/ru/ulstu/conference/model/ConferenceFilterDto.java b/src/main/java/ru/ulstu/conference/model/ConferenceFilterDto.java index 379c8b6..c2447e9 100644 --- a/src/main/java/ru/ulstu/conference/model/ConferenceFilterDto.java +++ b/src/main/java/ru/ulstu/conference/model/ConferenceFilterDto.java @@ -1,4 +1,43 @@ package ru.ulstu.conference.model; +import java.util.List; + public class ConferenceFilterDto { + + private List papers; + private Integer filterAuthorId; + private Integer year; + + public ConferenceFilterDto() { + } + + public ConferenceFilterDto(List conferenceDtos, Integer filterAuthorId, Integer year) { + this.papers = conferenceDtos; + this.filterAuthorId = filterAuthorId; + this.year = year; + } + + public List getPapers() { + return papers; + } + + public void setPapers(List 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; + } }