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 description,
39          String[] availableLocales, String content, String type,
40          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          _description = description;
52          _availableLocales = availableLocales;
53          _content = content;
54          _type = type;
55          _structureId = structureId;
56          _templateId = templateId;
57          _smallImage = smallImage;
58          _smallImageId = smallImageId;
59          _smallImageURL = smallImageURL;
60          _numberOfPages = numberOfPages;
61          _currentPage = currentPage;
62          _paginate = paginate;
63          _cacheable = cacheable;
64      }
65  
66      public long getId() {
67          return _id;
68      }
69  
70      public long getResourcePrimKey() {
71          return _resourcePrimKey;
72      }
73  
74      public long getGroupId() {
75          return _groupId;
76      }
77  
78      public long getUserId() {
79          return _userId;
80      }
81  
82      public String getArticleId() {
83          return _articleId;
84      }
85  
86      public double getVersion() {
87          return _version;
88      }
89  
90      public String getTitle() {
91          return _title;
92      }
93  
94      public String getDescription() {
95          return _description;
96      }
97  
98      public String[] getAvailableLocales() {
99          return _availableLocales;
100     }
101 
102     public String getContent() {
103         return _content;
104     }
105 
106     public void setContent(String content) {
107         _content = content;
108     }
109 
110     public String getType() {
111         return _type;
112     }
113 
114     public String getStructureId() {
115         return _structureId;
116     }
117 
118     public void setStructureId(String structureId) {
119         _structureId = structureId;
120     }
121 
122     public String getTemplateId() {
123         return _templateId;
124     }
125 
126     public void setTemplateId(String templateId) {
127         _templateId = templateId;
128     }
129 
130     public boolean isSmallImage() {
131         return _smallImage;
132     }
133 
134     public void setSmallImage(boolean smallImage) {
135         _smallImage = smallImage;
136     }
137 
138     public long getSmallImageId() {
139         return _smallImageId;
140     }
141 
142     public void setSmallImageId(long smallImageId) {
143         _smallImageId = smallImageId;
144     }
145 
146     public String getSmallImageURL() {
147         return _smallImageURL;
148     }
149 
150     public void setSmallImageURL(String smallImageURL) {
151         _smallImageURL = smallImageURL;
152     }
153 
154     public int getNumberOfPages() {
155         return _numberOfPages;
156     }
157 
158     public void setNumberOfPages(int numberOfPages) {
159         _numberOfPages = numberOfPages;
160     }
161 
162     public int getCurrentPage() {
163         return _currentPage;
164     }
165 
166     public void setCurrentPage(int currentPage) {
167         _currentPage = currentPage;
168     }
169 
170     public boolean isPaginate() {
171         return _paginate;
172     }
173 
174     public void setPaginate(boolean paginate) {
175         _paginate = paginate;
176     }
177 
178     public boolean isCacheable() {
179         return _cacheable;
180     }
181 
182     public void setCacheable(boolean cacheable) {
183         _cacheable = cacheable;
184     }
185 
186     private long _id;
187     private long _resourcePrimKey;
188     private long _groupId;
189     private long _userId;
190     private String _articleId;
191     private double _version;
192     private String _title;
193     private String _description;
194     private String[] _availableLocales;
195     private String _content;
196     private String _type;
197     private String _structureId;
198     private String _templateId;
199     private boolean _smallImage;
200     private long _smallImageId;
201     private String _smallImageURL;
202     private int _numberOfPages;
203     private int _currentPage;
204     private boolean _paginate;
205     private boolean _cacheable;
206 
207 }