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