BrightSide Workbench Full Report + Source Code
PublicationStub.java
Go to the documentation of this file.
1 /*
2  * TurrĂ³ i Cutiller Foundation. License notice.
3  * Copyright (C) 2022 Lluis TurrĂ³ Cutiller <http://www.turro.org/>
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU Affero General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Affero General Public License for more details.
14  *
15  * You should have received a copy of the GNU Affero General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 package org.turro.publication.stub;
20 
21 import java.util.Date;
22 import org.turro.publication.entity.Publication;
23 import org.turro.reflection.stub.DefaultStub;
24 
29 public class PublicationStub extends DefaultStub {
30 
31  private Long id;
32  private Date creation;
33  private String idContact;
34  private boolean accepted, sent;
35  private PublicationGroupStubmin publicationGroup;
36  private PublicationCategoryStubmin publicationCategory;
37  private String author;
38  private Date date;
39  private Date retainTill;
40  private String title, lang;
41  private String senderId;
42  private long readings;
43  private String wikiSummary;
44  private String wikiBody;
45 
46  public PublicationStub(Publication publication) {
47  silentlyInitializeValues(publication);
48  }
49 
50  public Long getId() {
51  return id;
52  }
53 
54  public void setId(Long id) {
55  this.id = id;
56  }
57 
58  public Date getCreation() {
59  return creation;
60  }
61 
62  public void setCreation(Date creation) {
63  this.creation = creation;
64  }
65 
66  public String getIdContact() {
67  return idContact;
68  }
69 
70  public void setIdContact(String idContact) {
71  this.idContact = idContact;
72  }
73 
74  public boolean isAccepted() {
75  return accepted;
76  }
77 
78  public void setAccepted(boolean accepted) {
79  this.accepted = accepted;
80  }
81 
82  public boolean isSent() {
83  return sent;
84  }
85 
86  public void setSent(boolean sent) {
87  this.sent = sent;
88  }
89 
91  return publicationGroup;
92  }
93 
94  public void setPublicationGroup(PublicationGroupStubmin publicationGroup) {
95  this.publicationGroup = publicationGroup;
96  }
97 
99  return publicationCategory;
100  }
101 
102  public void setPublicationCategory(PublicationCategoryStubmin publicationCategory) {
103  this.publicationCategory = publicationCategory;
104  }
105 
106  public String getAuthor() {
107  return author;
108  }
109 
110  public void setAuthor(String author) {
111  this.author = author;
112  }
113 
114  public Date getDate() {
115  return date;
116  }
117 
118  public void setDate(Date date) {
119  this.date = date;
120  }
121 
122  public Date getRetainTill() {
123  return retainTill;
124  }
125 
126  public void setRetainTill(Date retainTill) {
127  this.retainTill = retainTill;
128  }
129 
130  public String getTitle() {
131  return title;
132  }
133 
134  public void setTitle(String title) {
135  this.title = title;
136  }
137 
138  public String getLang() {
139  return lang;
140  }
141 
142  public void setLang(String lang) {
143  this.lang = lang;
144  }
145 
146  public String getSenderId() {
147  return senderId;
148  }
149 
150  public void setSenderId(String senderId) {
151  this.senderId = senderId;
152  }
153 
154  public long getReadings() {
155  return readings;
156  }
157 
158  public void setReadings(long readings) {
159  this.readings = readings;
160  }
161 
162  public String getWikiSummary() {
163  return wikiSummary;
164  }
165 
166  public void setWikiSummary(String wikiSummary) {
167  this.wikiSummary = wikiSummary;
168  }
169 
170  public String getWikiBody() {
171  return wikiBody;
172  }
173 
174  public void setWikiBody(String wikiBody) {
175  this.wikiBody = wikiBody;
176  }
177 
178 }
void setPublicationCategory(PublicationCategoryStubmin publicationCategory)
void setPublicationGroup(PublicationGroupStubmin publicationGroup)
PublicationCategoryStubmin getPublicationCategory()
PublicationGroupStubmin getPublicationGroup()