BrightSide Workbench Full Report + Source Code
DossierStub.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.Dossier;
24 import org.turro.dossier.entity.DossierStatus;
25 import org.turro.dossier.entity.DossierType;
26 import org.turro.reflection.stub.DefaultStub;
27 import org.turro.reflection.stub.StubSet;
28 
33 public class DossierStub extends DefaultStub {
34 
35  private Long id;
36  private java.util.Date creation;
37  private String description;
38  private DossierType type;
39  private DossierStatus status;
40  private ProjectStub project;
41  private CategoryStubmin category;
42  private String uniquePath;
43  private boolean publishable;
44  private String searching;
45 
46  private Set<DossierVersionStub> versions = new StubSet<>(DossierVersionStub.class);
47  private Set<ParticipantStub> participants = new StubSet<>(ParticipantStub.class);
48  private Set<FieldValueStub> fieldValues = new StubSet<>(FieldValueStub.class);
49  private Set<DescriptorValueStub> descriptors = new StubSet<>(DescriptorValueStub.class);
50  private Set<WorthValueStub> worths = new StubSet<>(WorthValueStub.class);
51 
52  public DossierStub(Dossier dossier) {
53  silentlyInitializeValues(dossier);
54  }
55 
56  public Long getId() {
57  return id;
58  }
59 
60  public void setId(Long id) {
61  this.id = id;
62  }
63 
64  public Date getCreation() {
65  return creation;
66  }
67 
68  public void setCreation(Date creation) {
69  this.creation = creation;
70  }
71 
72  public String getDescription() {
73  return description;
74  }
75 
76  public void setDescription(String description) {
77  this.description = description;
78  }
79 
80  public DossierType getType() {
81  return type;
82  }
83 
84  public void setType(DossierType type) {
85  this.type = type;
86  }
87 
89  return status;
90  }
91 
92  public void setStatus(DossierStatus status) {
93  this.status = status;
94  }
95 
97  return project;
98  }
99 
100  public void setProject(ProjectStub project) {
101  this.project = project;
102  }
103 
105  return category;
106  }
107 
108  public void setCategory(CategoryStubmin category) {
109  this.category = category;
110  }
111 
112  public String getUniquePath() {
113  return uniquePath;
114  }
115 
116  public void setUniquePath(String uniquePath) {
117  this.uniquePath = uniquePath;
118  }
119 
120  public boolean isPublishable() {
121  return publishable;
122  }
123 
124  public void setPublishable(boolean publishable) {
125  this.publishable = publishable;
126  }
127 
128  public String getSearching() {
129  return searching;
130  }
131 
132  public void setSearching(String searching) {
133  this.searching = searching;
134  }
135 
136  public Set<DossierVersionStub> getVersions() {
137  return versions;
138  }
139 
140  public void setVersions(Set<DossierVersionStub> versions) {
141  this.versions = versions;
142  }
143 
144  public Set<ParticipantStub> getParticipants() {
145  return participants;
146  }
147 
148  public void setParticipants(Set<ParticipantStub> participants) {
149  this.participants = participants;
150  }
151 
152  public Set<FieldValueStub> getFieldValues() {
153  return fieldValues;
154  }
155 
156  public void setFieldValues(Set<FieldValueStub> fieldValues) {
157  this.fieldValues = fieldValues;
158  }
159 
160  public Set<DescriptorValueStub> getDescriptors() {
161  return descriptors;
162  }
163 
164  public void setDescriptors(Set<DescriptorValueStub> descriptors) {
165  this.descriptors = descriptors;
166  }
167 
168  public Set<WorthValueStub> getWorths() {
169  return worths;
170  }
171 
172  public void setWorths(Set<WorthValueStub> worths) {
173  this.worths = worths;
174  }
175 
176 }
void setUniquePath(String uniquePath)
void setCategory(CategoryStubmin category)
void setWorths(Set< WorthValueStub > worths)
Set< DescriptorValueStub > getDescriptors()
void setStatus(DossierStatus status)
Set< WorthValueStub > getWorths()
Set< DossierVersionStub > getVersions()
void setProject(ProjectStub project)
void setFieldValues(Set< FieldValueStub > fieldValues)
void setVersions(Set< DossierVersionStub > versions)
void setPublishable(boolean publishable)
void setParticipants(Set< ParticipantStub > participants)
void setDescription(String description)
void setType(DossierType type)
Set< ParticipantStub > getParticipants()
void setSearching(String searching)
Set< FieldValueStub > getFieldValues()
void setDescriptors(Set< DescriptorValueStub > descriptors)