BrightSide Workbench Full Report + Source Code
ContactServiceStub.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.Date;
22 import org.turro.contacts.ContactService;
23 import org.turro.contacts.ContactServiceRole;
24 import org.turro.elephant.calendar.Periodicity;
25 import org.turro.reflection.stub.DefaultStub;
26 
31 public class ContactServiceStub extends DefaultStub {
32 
33  private String id;
34  private String title;
35  private ContactServiceRole role;
36  private String type;
37  private String thematic;
38  private Date creation, startDate, endDate;
39  private String wiki;
40  private ContactStubmin contact;
41  private ContactStubmin responsible;
42  private int timesSent;
43  private double price, tax;
44  private Periodicity periodicity;
45  private String relatedURL;
46 
47  public ContactServiceStub(ContactService contactService) {
48  silentlyInitializeValues(contactService);
49  }
50 
51  public String getId() {
52  return id;
53  }
54 
55  public void setId(String id) {
56  this.id = id;
57  }
58 
59  public String getTitle() {
60  return title;
61  }
62 
63  public void setTitle(String title) {
64  this.title = title;
65  }
66 
68  return role;
69  }
70 
71  public void setRole(ContactServiceRole role) {
72  this.role = role;
73  }
74 
75  public String getType() {
76  return type;
77  }
78 
79  public void setType(String type) {
80  this.type = type;
81  }
82 
83  public String getThematic() {
84  return thematic;
85  }
86 
87  public void setThematic(String thematic) {
88  this.thematic = thematic;
89  }
90 
91  public Date getCreation() {
92  return creation;
93  }
94 
95  public void setCreation(Date creation) {
96  this.creation = creation;
97  }
98 
99  public Date getStartDate() {
100  return startDate;
101  }
102 
103  public void setStartDate(Date startDate) {
104  this.startDate = startDate;
105  }
106 
107  public Date getEndDate() {
108  return endDate;
109  }
110 
111  public void setEndDate(Date endDate) {
112  this.endDate = endDate;
113  }
114 
115  public String getWiki() {
116  return wiki;
117  }
118 
119  public void setWiki(String wiki) {
120  this.wiki = wiki;
121  }
122 
124  return contact;
125  }
126 
127  public void setContact(ContactStubmin contact) {
128  this.contact = contact;
129  }
130 
132  return responsible;
133  }
134 
135  public void setResponsible(ContactStubmin responsible) {
136  this.responsible = responsible;
137  }
138 
139  public int getTimesSent() {
140  return timesSent;
141  }
142 
143  public void setTimesSent(int timesSent) {
144  this.timesSent = timesSent;
145  }
146 
147  public double getPrice() {
148  return price;
149  }
150 
151  public void setPrice(double price) {
152  this.price = price;
153  }
154 
155  public double getTax() {
156  return tax;
157  }
158 
159  public void setTax(double tax) {
160  this.tax = tax;
161  }
162 
164  return periodicity;
165  }
166 
167  public void setPeriodicity(Periodicity periodicity) {
168  this.periodicity = periodicity;
169  }
170 
171  public String getRelatedURL() {
172  return relatedURL;
173  }
174 
175  public void setRelatedURL(String relatedURL) {
176  this.relatedURL = relatedURL;
177  }
178 
179 }
ContactServiceStub(ContactService contactService)
void setPeriodicity(Periodicity periodicity)
void setResponsible(ContactStubmin responsible)