blob: 419eff4ec1b1eb4926666ae608767e54a8e9a143 [file] [log] [blame]
margarethaf093afb2017-11-12 21:38:23 +01001package de.ids_mannheim.korap.web.input;
2
margarethad3bc71f2018-01-03 20:35:06 +01003
margarethaf093afb2017-11-12 21:38:23 +01004import de.ids_mannheim.korap.constant.VirtualCorpusType;
margarethad3bc71f2018-01-03 20:35:06 +01005import de.ids_mannheim.korap.service.VirtualCorpusService;
margarethad3bc71f2018-01-03 20:35:06 +01006import de.ids_mannheim.korap.web.controller.VirtualCorpusController;
margarethaf093afb2017-11-12 21:38:23 +01007import lombok.Getter;
8import lombok.Setter;
9
margaretha6b3ecdd2018-03-01 18:23:56 +010010/** Java POJO of JSON input of the virtual corpus controller for
margaretha45dde682018-01-04 21:33:46 +010011 * creating and editing virtual corpora.
margarethad3bc71f2018-01-03 20:35:06 +010012 *
13 * @author margaretha
margaretha45dde682018-01-04 21:33:46 +010014 * @see VirtualCorpusController
15 * @see VirtualCorpusService
margarethad3bc71f2018-01-03 20:35:06 +010016 */
margarethaf093afb2017-11-12 21:38:23 +010017@Getter
18@Setter
margaretha9d3eb042017-12-22 11:02:30 +010019public class VirtualCorpusJson {
margaretha4af3f1e2019-01-16 17:53:26 +010020 // required
21 private boolean isCached;
22
margaretha45dde682018-01-04 21:33:46 +010023 // required in creating VCs
margaretha4af3f1e2019-01-16 17:53:26 +010024 @Deprecated
margarethaf093afb2017-11-12 21:38:23 +010025 private String name;
26 private VirtualCorpusType type;
margaretha541b8cc2018-01-10 13:02:46 +010027 private String corpusQuery;
margaretha45dde682018-01-04 21:33:46 +010028
29 // required in editing VCs
margaretha4af3f1e2019-01-16 17:53:26 +010030 @Deprecated
margaretha45dde682018-01-04 21:33:46 +010031 private int id;
32
margarethaf093afb2017-11-12 21:38:23 +010033 // optional
34 private String definition;
35 private String description;
36 private String status;
margarethaf093afb2017-11-12 21:38:23 +010037}