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