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