1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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   */
34  public class JournalArticleDisplayImpl implements JournalArticleDisplay {
35  
36      public JournalArticleDisplayImpl(
37          long id, long resourcePrimKey, long groupId, long userId,
38          String articleId, double version, String title, String urlTitle,
39          String description, String[] availableLocales, String content,
40          String type, String structureId, String templateId, boolean smallImage,
41          long smallImageId, String smallImageURL, int numberOfPages,
42          int currentPage, boolean paginate, boolean cacheable) {
43  
44          _id = id;
45          _resourcePrimKey = resourcePrimKey;
46          _groupId = groupId;
47          _userId = userId;
48          _articleId = articleId;
49          _version = version;
50          _title = title;
51          _urlTitle = urlTitle;
52          _description = description;
53          _availableLocales = availableLocales;
54          _content = content;
55          _type = type;
56          _structureId = structureId;
57          _templateId = templateId;
58          _smallImage = smallImage;
59          _smallImageId = smallImageId;
60          _smallImageURL = smallImageURL;
61          _numberOfPages = numberOfPages;
62          _currentPage = currentPage;
63          _paginate = paginate;
64          _cacheable = cacheable;
65      }
66  
67      public long getId() {
68          return _id;
69      }
70  
71      public long getResourcePrimKey() {
72          return _resourcePrimKey;
73      }
74  
75      public long getGroupId() {
76          return _groupId;
77      }
78  
79      public long getUserId() {
80          return _userId;
81      }
82  
83      public String getArticleId() {
84          return _articleId;
85      }
86  
87      public double getVersion() {
88          return _version;
89      }
90  
91      public String getTitle() {
92          return _title;
93      }
94  
95      public String getUrlTitle() {
96          return _urlTitle;
97      }
98  
99      public String getDescription() {
100         return _description;
101     }
102 
103     public String[] getAvailableLocales() {
104         return _availableLocales;
105     }
106 
107     public String getContent() {
108         return _content;
109     }
110 
111     public void setContent(String content) {
112         _content = content;
113     }
114 
115     public String getType() {
116         return _type;
117     }
118 
119     public String getStructureId() {
120         return _structureId;
121     }
122 
123     public void setStructureId(String structureId) {
124         _structureId = structureId;
125     }
126 
127     public String getTemplateId() {
128         return _templateId;
129     }
130 
131     public void setTemplateId(String templateId) {
132         _templateId = templateId;
133     }
134 
135     public boolean isSmallImage() {
136         return _smallImage;
137     }
138 
139     public void setSmallImage(boolean smallImage) {
140         _smallImage = smallImage;
141     }
142 
143     public long getSmallImageId() {
144         return _smallImageId;
145     }
146 
147     public void setSmallImageId(long smallImageId) {
148         _smallImageId = smallImageId;
149     }
150 
151     public String getSmallImageURL() {
152         return _smallImageURL;
153     }
154 
155     public void setSmallImageURL(String smallImageURL) {
156         _smallImageURL = smallImageURL;
157     }
158 
159     public int getNumberOfPages() {
160         return _numberOfPages;
161     }
162 
163     public void setNumberOfPages(int numberOfPages) {
164         _numberOfPages = numberOfPages;
165     }
166 
167     public int getCurrentPage() {
168         return _currentPage;
169     }
170 
171     public void setCurrentPage(int currentPage) {
172         _currentPage = currentPage;
173     }
174 
175     public boolean isPaginate() {
176         return _paginate;
177     }
178 
179     public void setPaginate(boolean paginate) {
180         _paginate = paginate;
181     }
182 
183     public boolean isCacheable() {
184         return _cacheable;
185     }
186 
187     public void setCacheable(boolean cacheable) {
188         _cacheable = cacheable;
189     }
190 
191     private long _id;
192     private long _resourcePrimKey;
193     private long _groupId;
194     private long _userId;
195     private String _articleId;
196     private double _version;
197     private String _title;
198     private String _urlTitle;
199     private String _description;
200     private String[] _availableLocales;
201     private String _content;
202     private String _type;
203     private String _structureId;
204     private String _templateId;
205     private boolean _smallImage;
206     private long _smallImageId;
207     private String _smallImageURL;
208     private int _numberOfPages;
209     private int _currentPage;
210     private boolean _paginate;
211     private boolean _cacheable;
212 
213 }