BrightSide Workbench Full Report + Source Code
IssueStub.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.dossier.stub;
20 
21 import java.util.Date;
22 import java.util.Set;
23 import org.turro.dossier.entity.Issue;
24 import org.turro.dossier.entity.IssuePriority;
25 import org.turro.dossier.entity.IssueResolution;
26 import org.turro.dossier.entity.IssueStatus;
27 import org.turro.dossier.entity.IssueType;
28 import org.turro.reflection.stub.DefaultStub;
29 import org.turro.reflection.stub.StubSet;
30 
35 public class IssueStub extends DefaultStub {
36 
37  private Long id;
38  private Date startDate;
39  private Date controlDate;
40  private java.util.Date delivery;
41  private java.util.Date issueDate;
42  private java.util.Date modification;
43  private java.util.Date solvedDate;
44  private String description, grouping;
45  private IssueType type;
46  private IssuePriority priority;
47  private IssueResolution resolution;
48  private IssueStatus status;
49  private double expenses, hours, price;
50  private boolean publishable, milestone;
51  private IssueStub duplicated;
52  private DossierStubmin dossier;
53  private DossierVersionStub version;
54 
55  private Set<IssueParticipantStub> participants = new StubSet<>(IssueParticipantStub.class);
56  private Set<IssueCommentStub> comments = new StubSet<>(IssueCommentStub.class);
57  private Set<IssuePredecessorStub> sources = new StubSet<>(IssuePredecessorStub.class);
58  private Set<IssuePredecessorStub> targets = new StubSet<>(IssuePredecessorStub.class);
59 
60  public IssueStub(Issue issue) {
61  silentlyInitializeValues(issue);
62  }
63 
64  public Long getId() {
65  return id;
66  }
67 
68  public void setId(Long id) {
69  this.id = id;
70  }
71 
72  public Date getStartDate() {
73  return startDate;
74  }
75 
76  public void setStartDate(Date startDate) {
77  this.startDate = startDate;
78  }
79 
80  public Date getControlDate() {
81  return controlDate;
82  }
83 
84  public void setControlDate(Date controlDate) {
85  this.controlDate = controlDate;
86  }
87 
88  public Date getDelivery() {
89  return delivery;
90  }
91 
92  public void setDelivery(Date delivery) {
93  this.delivery = delivery;
94  }
95 
96  public Date getIssueDate() {
97  return issueDate;
98  }
99 
100  public void setIssueDate(Date issueDate) {
101  this.issueDate = issueDate;
102  }
103 
104  public Date getModification() {
105  return modification;
106  }
107 
108  public void setModification(Date modification) {
109  this.modification = modification;
110  }
111 
112  public Date getSolvedDate() {
113  return solvedDate;
114  }
115 
116  public void setSolvedDate(Date solvedDate) {
117  this.solvedDate = solvedDate;
118  }
119 
120  public String getDescription() {
121  return description;
122  }
123 
124  public void setDescription(String description) {
125  this.description = description;
126  }
127 
128  public String getGrouping() {
129  return grouping;
130  }
131 
132  public void setGrouping(String grouping) {
133  this.grouping = grouping;
134  }
135 
136  public IssueType getType() {
137  return type;
138  }
139 
140  public void setType(IssueType type) {
141  this.type = type;
142  }
143 
145  return priority;
146  }
147 
148  public void setPriority(IssuePriority priority) {
149  this.priority = priority;
150  }
151 
153  return resolution;
154  }
155 
156  public void setResolution(IssueResolution resolution) {
157  this.resolution = resolution;
158  }
159 
161  return status;
162  }
163 
164  public void setStatus(IssueStatus status) {
165  this.status = status;
166  }
167 
168  public double getExpenses() {
169  return expenses;
170  }
171 
172  public void setExpenses(double expenses) {
173  this.expenses = expenses;
174  }
175 
176  public double getHours() {
177  return hours;
178  }
179 
180  public void setHours(double hours) {
181  this.hours = hours;
182  }
183 
184  public double getPrice() {
185  return price;
186  }
187 
188  public void setPrice(double price) {
189  this.price = price;
190  }
191 
192  public boolean isPublishable() {
193  return publishable;
194  }
195 
196  public void setPublishable(boolean publishable) {
197  this.publishable = publishable;
198  }
199 
200  public boolean isMilestone() {
201  return milestone;
202  }
203 
204  public void setMilestone(boolean milestone) {
205  this.milestone = milestone;
206  }
207 
209  return duplicated;
210  }
211 
212  public void setDuplicated(IssueStub duplicated) {
213  this.duplicated = duplicated;
214  }
215 
217  return dossier;
218  }
219 
220  public void setDossier(DossierStubmin dossier) {
221  this.dossier = dossier;
222  }
223 
225  return version;
226  }
227 
228  public void setVersion(DossierVersionStub version) {
229  this.version = version;
230  }
231 
232  public Set<IssueParticipantStub> getParticipants() {
233  return participants;
234  }
235 
236  public void setParticipants(Set<IssueParticipantStub> participants) {
237  this.participants = participants;
238  }
239 
240 }
void setExpenses(double expenses)
Definition: IssueStub.java:172
void setDuplicated(IssueStub duplicated)
Definition: IssueStub.java:212
void setSolvedDate(Date solvedDate)
Definition: IssueStub.java:116
void setDelivery(Date delivery)
Definition: IssueStub.java:92
void setParticipants(Set< IssueParticipantStub > participants)
Definition: IssueStub.java:236
void setVersion(DossierVersionStub version)
Definition: IssueStub.java:228
void setPriority(IssuePriority priority)
Definition: IssueStub.java:148
void setType(IssueType type)
Definition: IssueStub.java:140
void setControlDate(Date controlDate)
Definition: IssueStub.java:84
void setPublishable(boolean publishable)
Definition: IssueStub.java:196
IssueResolution getResolution()
Definition: IssueStub.java:152
void setStartDate(Date startDate)
Definition: IssueStub.java:76
void setMilestone(boolean milestone)
Definition: IssueStub.java:204
void setModification(Date modification)
Definition: IssueStub.java:108
void setIssueDate(Date issueDate)
Definition: IssueStub.java:100
Set< IssueParticipantStub > getParticipants()
Definition: IssueStub.java:232
void setGrouping(String grouping)
Definition: IssueStub.java:132
void setStatus(IssueStatus status)
Definition: IssueStub.java:164
DossierVersionStub getVersion()
Definition: IssueStub.java:224
void setDossier(DossierStubmin dossier)
Definition: IssueStub.java:220
void setDescription(String description)
Definition: IssueStub.java:124
void setResolution(IssueResolution resolution)
Definition: IssueStub.java:156