1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.journal.model.impl;
24  
25  import com.liferay.portlet.journal.model.JournalArticleDisplay;
26  
27  /**
28   * <a href="JournalArticleDisplayImpl.java.html"><b><i>View Source</i></b></a>
29   *
30   * @author Brian Wing Shun Chan
31   * @author Raymond Augé
32   */
33  public class JournalArticleDisplayImpl implements JournalArticleDisplay {
34  
35      public JournalArticleDisplayImpl(
36          long id, long resourcePrimKey, long groupId, long userId,
37          String articleId, double version, String title, String description,
38          String[] availableLocales, String content, String type,
39          String structureId, String templateId, boolean smallImage,
40          long smallImageId, String smallImageURL, int numberOfPages,
41          int currentPage, boolean paginate, boolean cacheable) {
42  
43          _id = id;
44          _resourcePrimKey = resourcePrimKey;
45          _groupId = groupId;
46          _userId = userId;
47          _articleId = articleId;
48          _version = version;
49          _title = title;
50          _description = description;
51          _availableLocales = availableLocales;
52          _content = content;
53          _type = type;
54          _structureId = structureId;
55          _templateId = templateId;
56          _smallImage = smallImage;
57          _smallImageId = smallImageId;
58          _smallImageURL = smallImageURL;
59          _numberOfPages = numberOfPages;
60          _currentPage = currentPage;
61          _paginate = paginate;
62          _cacheable = cacheable;
63      }
64  
65      public long getId() {
66          return _id;
67      }
68  
69      public long getResourcePrimKey() {
70          return _resourcePrimKey;
71      }
72  
73      public long getGroupId() {
74          return _groupId;
75      }
76  
77      public long getUserId() {
78          return _userId;
79      }
80  
81      public String getArticleId() {
82          return _articleId;
83      }
84  
85      public double getVersion() {
86          return _version;
87      }
88  
89      public String getTitle() {
90          return _title;
91      }
92  
93      public String getDescription() {
94          return _description;
95      }
96  
97      public String[] getAvailableLocales() {
98          return _availableLocales;
99      }
100 
101     public String getContent() {
102         return _content;
103     }
104 
105     public void setContent(String content) {
106         _content = content;
107     }
108 
109     public String getType() {
110         return _type;
111     }
112 
113     public String getStructureId() {
114         return _structureId;
115     }
116 
117     public void setStructureId(String structureId) {
118         _structureId = structureId;
119     }
120 
121     public String getTemplateId() {
122         return _templateId;
123     }
124 
125     public void setTemplateId(String templateId) {
126         _templateId = templateId;
127     }
128 
129     public boolean isSmallImage() {
130         return _smallImage;
131     }
132 
133     public void setSmallImage(boolean smallImage) {
134         _smallImage = smallImage;
135     }
136 
137     public long getSmallImageId() {
138         return _smallImageId;
139     }
140 
141     public void setSmallImageId(long smallImageId) {
142         _smallImageId = smallImageId;
143     }
144 
145     public String getSmallImageURL() {
146         return _smallImageURL;
147     }
148 
149     public void setSmallImageURL(String smallImageURL) {
150         _smallImageURL = smallImageURL;
151     }
152 
153     public int getNumberOfPages() {
154         return _numberOfPages;
155     }
156 
157     public void setNumberOfPages(int numberOfPages) {
158         _numberOfPages = numberOfPages;
159     }
160 
161     public int getCurrentPage() {
162         return _currentPage;
163     }
164 
165     public void setCurrentPage(int currentPage) {
166         _currentPage = currentPage;
167     }
168 
169     public boolean isPaginate() {
170         return _paginate;
171     }
172 
173     public void setPaginate(boolean paginate) {
174         _paginate = paginate;
175     }
176 
177     public boolean isCacheable() {
178         return _cacheable;
179     }
180 
181     public void setCacheable(boolean cacheable) {
182         _cacheable = cacheable;
183     }
184 
185     private long _id;
186     private long _resourcePrimKey;
187     private long _groupId;
188     private long _userId;
189     private String _articleId;
190     private double _version;
191     private String _title;
192     private String _description;
193     private String[] _availableLocales;
194     private String _content;
195     private String _type;
196     private String _structureId;
197     private String _templateId;
198     private boolean _smallImage;
199     private long _smallImageId;
200     private String _smallImageURL;
201     private int _numberOfPages;
202     private int _currentPage;
203     private boolean _paginate;
204     private boolean _cacheable;
205 
206 }