001
014
015 package com.liferay.portlet.journal.model.impl;
016
017 import com.liferay.portlet.journal.model.JournalArticleDisplay;
018
019
023 public class JournalArticleDisplayImpl implements JournalArticleDisplay {
024
025 public JournalArticleDisplayImpl(
026 long companyId, long id, long resourcePrimKey, long groupId,
027 long userId, String articleId, double version, String title,
028 String urlTitle, String description, String[] availableLocales,
029 String content, String type, String structureId, String templateId,
030 boolean smallImage, long smallImageId, String smallImageURL,
031 int numberOfPages, int currentPage, boolean paginate,
032 boolean cacheable) {
033
034 _companyId = companyId;
035 _id = id;
036 _resourcePrimKey = resourcePrimKey;
037 _groupId = groupId;
038 _userId = userId;
039 _articleId = articleId;
040 _version = version;
041 _title = title;
042 _urlTitle = urlTitle;
043 _description = description;
044 _availableLocales = availableLocales;
045 _content = content;
046 _type = type;
047 _structureId = structureId;
048 _templateId = templateId;
049 _smallImage = smallImage;
050 _smallImageId = smallImageId;
051 _smallImageURL = smallImageURL;
052 _numberOfPages = numberOfPages;
053 _currentPage = currentPage;
054 _paginate = paginate;
055 _cacheable = cacheable;
056 }
057
058 @Override
059 public String getArticleId() {
060 return _articleId;
061 }
062
063 @Override
064 public String[] getAvailableLocales() {
065 return _availableLocales;
066 }
067
068 @Override
069 public long getCompanyId() {
070 return _companyId;
071 }
072
073 @Override
074 public String getContent() {
075 return _content;
076 }
077
078 @Override
079 public int getCurrentPage() {
080 return _currentPage;
081 }
082
083 @Override
084 public String getDescription() {
085 return _description;
086 }
087
088 @Override
089 public long getGroupId() {
090 return _groupId;
091 }
092
093 @Override
094 public long getId() {
095 return _id;
096 }
097
098 @Override
099 public int getNumberOfPages() {
100 return _numberOfPages;
101 }
102
103 @Override
104 public long getResourcePrimKey() {
105 return _resourcePrimKey;
106 }
107
108 @Override
109 public long getSmallImageId() {
110 return _smallImageId;
111 }
112
113 @Override
114 public String getSmallImageURL() {
115 return _smallImageURL;
116 }
117
118 @Override
119 public String getStructureId() {
120 return _structureId;
121 }
122
123 @Override
124 public String getTemplateId() {
125 return _templateId;
126 }
127
128 @Override
129 public String getTitle() {
130 return _title;
131 }
132
133 @Override
134 public String getType() {
135 return _type;
136 }
137
138 @Override
139 public String getUrlTitle() {
140 return _urlTitle;
141 }
142
143 @Override
144 public long getUserId() {
145 return _userId;
146 }
147
148 @Override
149 public double getVersion() {
150 return _version;
151 }
152
153 @Override
154 public boolean isCacheable() {
155 return _cacheable;
156 }
157
158 @Override
159 public boolean isPaginate() {
160 return _paginate;
161 }
162
163 @Override
164 public boolean isSmallImage() {
165 return _smallImage;
166 }
167
168 @Override
169 public void setCacheable(boolean cacheable) {
170 _cacheable = cacheable;
171 }
172
173 @Override
174 public void setContent(String content) {
175 _content = content;
176 }
177
178 @Override
179 public void setCurrentPage(int currentPage) {
180 _currentPage = currentPage;
181 }
182
183 @Override
184 public void setNumberOfPages(int numberOfPages) {
185 _numberOfPages = numberOfPages;
186 }
187
188 @Override
189 public void setPaginate(boolean paginate) {
190 _paginate = paginate;
191 }
192
193 @Override
194 public void setSmallImage(boolean smallImage) {
195 _smallImage = smallImage;
196 }
197
198 @Override
199 public void setSmallImageId(long smallImageId) {
200 _smallImageId = smallImageId;
201 }
202
203 @Override
204 public void setSmallImageURL(String smallImageURL) {
205 _smallImageURL = smallImageURL;
206 }
207
208 @Override
209 public void setStructureId(String structureId) {
210 _structureId = structureId;
211 }
212
213 @Override
214 public void setTemplateId(String templateId) {
215 _templateId = templateId;
216 }
217
218 private String _articleId;
219 private String[] _availableLocales;
220 private boolean _cacheable;
221 private long _companyId;
222 private String _content;
223 private int _currentPage;
224 private String _description;
225 private long _groupId;
226 private long _id;
227 private int _numberOfPages;
228 private boolean _paginate;
229 private long _resourcePrimKey;
230 private boolean _smallImage;
231 private long _smallImageId;
232 private String _smallImageURL;
233 private String _structureId;
234 private String _templateId;
235 private String _title;
236 private String _type;
237 private String _urlTitle;
238 private long _userId;
239 private double _version;
240
241 }