BrightSide Workbench Full Report + Source Code
NewsletterStub.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 java.util.Set;
23 import org.turro.newsletter.SendingChoice;
24 import org.turro.publication.entity.Newsletter;
25 import org.turro.reflection.stub.DefaultStub;
26 import org.turro.reflection.stub.StubSet;
27 
32 public class NewsletterStub extends DefaultStub {
33 
34  private Long id;
35  private Date creation;
36  private boolean accepted, staticContent;
37  private String idCategory;
38  private Date date;
39  private String title, lang, template;
40  private SendingChoice sendingChoice;
41  private Set<NewsSectionStub> newsSections = new StubSet<>(NewsSectionStub.class);
42 
43  public NewsletterStub(Newsletter newsletter) {
44  silentlyInitializeValues(newsletter);
45  }
46 
47  public Long getId() {
48  return id;
49  }
50 
51  public void setId(Long id) {
52  this.id = id;
53  }
54 
55  public Date getCreation() {
56  return creation;
57  }
58 
59  public void setCreation(Date creation) {
60  this.creation = creation;
61  }
62 
63  public boolean isAccepted() {
64  return accepted;
65  }
66 
67  public void setAccepted(boolean accepted) {
68  this.accepted = accepted;
69  }
70 
71  public boolean isStaticContent() {
72  return staticContent;
73  }
74 
75  public void setStaticContent(boolean staticContent) {
76  this.staticContent = staticContent;
77  }
78 
79  public String getIdCategory() {
80  return idCategory;
81  }
82 
83  public void setIdCategory(String idCategory) {
84  this.idCategory = idCategory;
85  }
86 
87  public Date getDate() {
88  return date;
89  }
90 
91  public void setDate(Date date) {
92  this.date = date;
93  }
94 
95  public String getTitle() {
96  return title;
97  }
98 
99  public void setTitle(String title) {
100  this.title = title;
101  }
102 
103  public String getLang() {
104  return lang;
105  }
106 
107  public void setLang(String lang) {
108  this.lang = lang;
109  }
110 
111  public String getTemplate() {
112  return template;
113  }
114 
115  public void setTemplate(String template) {
116  this.template = template;
117  }
118 
120  return sendingChoice;
121  }
122 
123  public void setSendingChoice(SendingChoice sendingChoice) {
124  this.sendingChoice = sendingChoice;
125  }
126 
127  public Set<NewsSectionStub> getNewsSections() {
128  return newsSections;
129  }
130 
131  public void setNewsSections(Set<NewsSectionStub> newsSections) {
132  this.newsSections = newsSections;
133  }
134 
135 }
void setStaticContent(boolean staticContent)
void setSendingChoice(SendingChoice sendingChoice)
void setNewsSections(Set< NewsSectionStub > newsSections)