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 urlTitle,
38          String description, String[] availableLocales, String content,
39          String type, 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          _urlTitle = urlTitle;
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 getUrlTitle() {
95          return _urlTitle;
96      }
97  
98      public String getDescription() {
99          return _description;
100     }
101 
102     public String[] getAvailableLocales() {
103         return _availableLocales;
104     }
105 
106     public String getContent() {
107         return _content;
108     }
109 
110     public void setContent(String content) {
111         _content = content;
112     }
113 
114     public String getType() {
115         return _type;
116     }
117 
118     public String getStructureId() {
119         return _structureId;
120     }
121 
122     public void setStructureId(String structureId) {
123         _structureId = structureId;
124     }
125 
126     public String getTemplateId() {
127         return _templateId;
128     }
129 
130     public void setTemplateId(String templateId) {
131         _templateId = templateId;
132     }
133 
134     public boolean isSmallImage() {
135         return _smallImage;
136     }
137 
138     public void setSmallImage(boolean smallImage) {
139         _smallImage = smallImage;
140     }
141 
142     public long getSmallImageId() {
143         return _smallImageId;
144     }
145 
146     public void setSmallImageId(long smallImageId) {
147         _smallImageId = smallImageId;
148     }
149 
150     public String getSmallImageURL() {
151         return _smallImageURL;
152     }
153 
154     public void setSmallImageURL(String smallImageURL) {
155         _smallImageURL = smallImageURL;
156     }
157 
158     public int getNumberOfPages() {
159         return _numberOfPages;
160     }
161 
162     public void setNumberOfPages(int numberOfPages) {
163         _numberOfPages = numberOfPages;
164     }
165 
166     public int getCurrentPage() {
167         return _currentPage;
168     }
169 
170     public void setCurrentPage(int currentPage) {
171         _currentPage = currentPage;
172     }
173 
174     public boolean isPaginate() {
175         return _paginate;
176     }
177 
178     public void setPaginate(boolean paginate) {
179         _paginate = paginate;
180     }
181 
182     public boolean isCacheable() {
183         return _cacheable;
184     }
185 
186     public void setCacheable(boolean cacheable) {
187         _cacheable = cacheable;
188     }
189 
190     private long _id;
191     private long _resourcePrimKey;
192     private long _groupId;
193     private long _userId;
194     private String _articleId;
195     private double _version;
196     private String _title;
197     private String _urlTitle;
198     private String _description;
199     private String[] _availableLocales;
200     private String _content;
201     private String _type;
202     private String _structureId;
203     private String _templateId;
204     private boolean _smallImage;
205     private long _smallImageId;
206     private String _smallImageURL;
207     private int _numberOfPages;
208     private int _currentPage;
209     private boolean _paginate;
210     private boolean _cacheable;
211 
212 }