BrightSide Workbench Full Report + Source Code
ContactStub.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.contacts.stub;
20 
21 import java.util.Currency;
22 import java.util.Locale;
23 import java.util.Set;
24 import java.util.TimeZone;
25 import org.turro.contacts.Contact;
26 import org.turro.contacts.ContactType;
27 import org.turro.jpa.embeddables.ComplexName;
28 import org.turro.reflection.stub.DefaultStub;
29 import org.turro.reflection.stub.StubSet;
30 
35 public class ContactStub extends DefaultStub {
36 
37  private String id;
38  private boolean webapp, userMenu, deactivated, inactive;
39  private ContactType type;
40  private ComplexName complexName;
41  private String name;
42  private TimeZone timeZone;
43  private Locale locale;
44  private Currency currency;
45  private String grouping;
46  private String idActivity;
47  private double billing, staff;
48  private double latitude, longitude;
49  private String globalIdentifier;
50  private String langTranslator;
51  private boolean cloudAdmin;
52  private String emailAccount;
53  private Set<AddressStub> addresses = new StubSet<>(AddressStub.class);
54  private Set<ConnectorStub> connectors = new StubSet<>(ConnectorStub.class);
55  private Set<BusinessRelationStub> businessRelations = new StubSet<>(BusinessRelationStub.class);
56  private Set<SyndicationStub> syndications = new StubSet<>(SyndicationStub.class);
57  private Set<CommentStub> comments = new StubSet<>(CommentStub.class);
58  private Set<FieldValueStub> fieldValues = new StubSet<>(FieldValueStub.class);
59 
60  public ContactStub(Contact contact) {
61  silentlyInitializeValues(contact);
62  }
63 
64  public String getId() {
65  return id;
66  }
67 
68  public void setId(String id) {
69  this.id = id;
70  }
71 
72  public boolean isWebapp() {
73  return webapp;
74  }
75 
76  public void setWebapp(boolean webapp) {
77  this.webapp = webapp;
78  }
79 
80  public boolean isUserMenu() {
81  return userMenu;
82  }
83 
84  public void setUserMenu(boolean userMenu) {
85  this.userMenu = userMenu;
86  }
87 
88  public boolean isDeactivated() {
89  return deactivated;
90  }
91 
92  public void setDeactivated(boolean deactivated) {
93  this.deactivated = deactivated;
94  }
95 
96  public boolean isInactive() {
97  return inactive;
98  }
99 
100  public void setInactive(boolean inactive) {
101  this.inactive = inactive;
102  }
103 
104  public ContactType getType() {
105  return type;
106  }
107 
108  public void setType(ContactType type) {
109  this.type = type;
110  }
111 
113  return complexName;
114  }
115 
116  public void setComplexName(ComplexName complexName) {
117  this.complexName = complexName;
118  }
119 
120  public String getName() {
121  return name;
122  }
123 
124  public void setName(String name) {
125  this.name = name;
126  }
127 
128  public TimeZone getTimeZone() {
129  return timeZone;
130  }
131 
132  public void setTimeZone(TimeZone timeZone) {
133  this.timeZone = timeZone;
134  }
135 
136  public Locale getLocale() {
137  return locale;
138  }
139 
140  public void setLocale(Locale locale) {
141  this.locale = locale;
142  }
143 
144  public Currency getCurrency() {
145  return currency;
146  }
147 
148  public void setCurrency(Currency currency) {
149  this.currency = currency;
150  }
151 
152  public String getGrouping() {
153  return grouping;
154  }
155 
156  public void setGrouping(String grouping) {
157  this.grouping = grouping;
158  }
159 
160  public String getIdActivity() {
161  return idActivity;
162  }
163 
164  public void setIdActivity(String idActivity) {
165  this.idActivity = idActivity;
166  }
167 
168  public double getBilling() {
169  return billing;
170  }
171 
172  public void setBilling(double billing) {
173  this.billing = billing;
174  }
175 
176  public double getStaff() {
177  return staff;
178  }
179 
180  public void setStaff(double staff) {
181  this.staff = staff;
182  }
183 
184  public double getLatitude() {
185  return latitude;
186  }
187 
188  public void setLatitude(double latitude) {
189  this.latitude = latitude;
190  }
191 
192  public double getLongitude() {
193  return longitude;
194  }
195 
196  public void setLongitude(double longitude) {
197  this.longitude = longitude;
198  }
199 
200  public String getGlobalIdentifier() {
201  return globalIdentifier;
202  }
203 
204  public void setGlobalIdentifier(String globalIdentifier) {
205  this.globalIdentifier = globalIdentifier;
206  }
207 
208  public String getLangTranslator() {
209  return langTranslator;
210  }
211 
212  public void setLangTranslator(String langTranslator) {
213  this.langTranslator = langTranslator;
214  }
215 
216  public boolean isCloudAdmin() {
217  return cloudAdmin;
218  }
219 
220  public void setCloudAdmin(boolean cloudAdmin) {
221  this.cloudAdmin = cloudAdmin;
222  }
223 
224  public String getEmailAccount() {
225  return emailAccount;
226  }
227 
228  public void setEmailAccount(String emailAccount) {
229  this.emailAccount = emailAccount;
230  }
231 
232  public Set<AddressStub> getAddresses() {
233  return addresses;
234  }
235 
236  public void setAddresses(Set<AddressStub> addresses) {
237  this.addresses = addresses;
238  }
239 
240  public Set<ConnectorStub> getConnectors() {
241  return connectors;
242  }
243 
244  public void setConnectors(Set<ConnectorStub> connectors) {
245  this.connectors = connectors;
246  }
247 
248  public Set<BusinessRelationStub> getBusinessRelations() {
249  return businessRelations;
250  }
251 
252  public void setBusinessRelations(Set<BusinessRelationStub> businessRelations) {
253  this.businessRelations = businessRelations;
254  }
255 
256  public Set<SyndicationStub> getSyndications() {
257  return syndications;
258  }
259 
260  public void setSyndications(Set<SyndicationStub> syndications) {
261  this.syndications = syndications;
262  }
263 
264  public Set<CommentStub> getComments() {
265  return comments;
266  }
267 
268  public void setComments(Set<CommentStub> comments) {
269  this.comments = comments;
270  }
271 
272  public Set<FieldValueStub> getFieldValues() {
273  return fieldValues;
274  }
275 
276  public void setFieldValues(Set<FieldValueStub> fieldValues) {
277  this.fieldValues = fieldValues;
278  }
279 
280 }
void setAddresses(Set< AddressStub > addresses)
void setLongitude(double longitude)
void setType(ContactType type)
void setCloudAdmin(boolean cloudAdmin)
void setCurrency(Currency currency)
void setGrouping(String grouping)
Set< FieldValueStub > getFieldValues()
void setIdActivity(String idActivity)
void setUserMenu(boolean userMenu)
Set< SyndicationStub > getSyndications()
void setDeactivated(boolean deactivated)
void setSyndications(Set< SyndicationStub > syndications)
void setLangTranslator(String langTranslator)
void setInactive(boolean inactive)
void setLatitude(double latitude)
void setComplexName(ComplexName complexName)
void setFieldValues(Set< FieldValueStub > fieldValues)
void setBusinessRelations(Set< BusinessRelationStub > businessRelations)
void setEmailAccount(String emailAccount)
void setComments(Set< CommentStub > comments)
Set< BusinessRelationStub > getBusinessRelations()
void setTimeZone(TimeZone timeZone)
void setConnectors(Set< ConnectorStub > connectors)
void setGlobalIdentifier(String globalIdentifier)
Set< ConnectorStub > getConnectors()