1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.journal.model.impl;
16  
17  import com.liferay.portlet.journal.model.JournalArticleDisplay;
18  
19  /**
20   * <a href="JournalArticleDisplayImpl.java.html"><b><i>View Source</i></b></a>
21   *
22   * @author Brian Wing Shun Chan
23   * @author Raymond Augé
24   */
25  public class JournalArticleDisplayImpl implements JournalArticleDisplay {
26  
27      public JournalArticleDisplayImpl(
28          long id, long resourcePrimKey, long groupId, long userId,
29          String articleId, double version, String title, String urlTitle,
30          String description, String[] availableLocales, String content,
31          String type, String structureId, String templateId, boolean smallImage,
32          long smallImageId, String smallImageURL, int numberOfPages,
33          int currentPage, boolean paginate, boolean cacheable) {
34  
35          _id = id;
36          _resourcePrimKey = resourcePrimKey;
37          _groupId = groupId;
38          _userId = userId;
39          _articleId = articleId;
40          _version = version;
41          _title = title;
42          _urlTitle = urlTitle;
43          _description = description;
44          _availableLocales = availableLocales;
45          _content = content;
46          _type = type;
47          _structureId = structureId;
48          _templateId = templateId;
49          _smallImage = smallImage;
50          _smallImageId = smallImageId;
51          _smallImageURL = smallImageURL;
52          _numberOfPages = numberOfPages;
53          _currentPage = currentPage;
54          _paginate = paginate;
55          _cacheable = cacheable;
56      }
57  
58      public long getId() {
59          return _id;
60      }
61  
62      public long getResourcePrimKey() {
63          return _resourcePrimKey;
64      }
65  
66      public long getGroupId() {
67          return _groupId;
68      }
69  
70      public long getUserId() {
71          return _userId;
72      }
73  
74      public String getArticleId() {
75          return _articleId;
76      }
77  
78      public double getVersion() {
79          return _version;
80      }
81  
82      public String getTitle() {
83          return _title;
84      }
85  
86      public String getUrlTitle() {
87          return _urlTitle;
88      }
89  
90      public String getDescription() {
91          return _description;
92      }
93  
94      public String[] getAvailableLocales() {
95          return _availableLocales;
96      }
97  
98      public String getContent() {
99          return _content;
100     }
101 
102     public void setContent(String content) {
103         _content = content;
104     }
105 
106     public String getType() {
107         return _type;
108     }
109 
110     public String getStructureId() {
111         return _structureId;
112     }
113 
114     public void setStructureId(String structureId) {
115         _structureId = structureId;
116     }
117 
118     public String getTemplateId() {
119         return _templateId;
120     }
121 
122     public void setTemplateId(String templateId) {
123         _templateId = templateId;
124     }
125 
126     public boolean isSmallImage() {
127         return _smallImage;
128     }
129 
130     public void setSmallImage(boolean smallImage) {
131         _smallImage = smallImage;
132     }
133 
134     public long getSmallImageId() {
135         return _smallImageId;
136     }
137 
138     public void setSmallImageId(long smallImageId) {
139         _smallImageId = smallImageId;
140     }
141 
142     public String getSmallImageURL() {
143         return _smallImageURL;
144     }
145 
146     public void setSmallImageURL(String smallImageURL) {
147         _smallImageURL = smallImageURL;
148     }
149 
150     public int getNumberOfPages() {
151         return _numberOfPages;
152     }
153 
154     public void setNumberOfPages(int numberOfPages) {
155         _numberOfPages = numberOfPages;
156     }
157 
158     public int getCurrentPage() {
159         return _currentPage;
160     }
161 
162     public void setCurrentPage(int currentPage) {
163         _currentPage = currentPage;
164     }
165 
166     public boolean isPaginate() {
167         return _paginate;
168     }
169 
170     public void setPaginate(boolean paginate) {
171         _paginate = paginate;
172     }
173 
174     public boolean isCacheable() {
175         return _cacheable;
176     }
177 
178     public void setCacheable(boolean cacheable) {
179         _cacheable = cacheable;
180     }
181 
182     private long _id;
183     private long _resourcePrimKey;
184     private long _groupId;
185     private long _userId;
186     private String _articleId;
187     private double _version;
188     private String _title;
189     private String _urlTitle;
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 }