001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.journal.model.impl;
022:
023: import com.liferay.portlet.journal.model.JournalArticleDisplay;
024:
025: /**
026: * <a href="JournalArticleDisplayImpl.java.html"><b><i>View Source</i></b></a>
027: *
028: * @author Brian Wing Shun Chan
029: * @author Raymond Augé
030: *
031: */
032: public class JournalArticleDisplayImpl implements JournalArticleDisplay {
033:
034: public JournalArticleDisplayImpl(long id, long resourcePrimKey,
035: long groupId, long userId, String articleId,
036: double version, String title, String description,
037: String[] availableLocales, String content, String type,
038: String structureId, String templateId, boolean smallImage,
039: long smallImageId, String smallImageURL, int numberOfPages,
040: int currentPage, boolean paginate, boolean cacheable) {
041:
042: _id = id;
043: _resourcePrimKey = resourcePrimKey;
044: _groupId = groupId;
045: _userId = userId;
046: _articleId = articleId;
047: _version = version;
048: _title = title;
049: _description = description;
050: _availableLocales = availableLocales;
051: _content = content;
052: _type = type;
053: _structureId = structureId;
054: _templateId = templateId;
055: _smallImage = smallImage;
056: _smallImageId = smallImageId;
057: _smallImageURL = smallImageURL;
058: _numberOfPages = numberOfPages;
059: _currentPage = currentPage;
060: _paginate = paginate;
061: _cacheable = cacheable;
062: }
063:
064: public long getId() {
065: return _id;
066: }
067:
068: public long getResourcePrimKey() {
069: return _resourcePrimKey;
070: }
071:
072: public long getGroupId() {
073: return _groupId;
074: }
075:
076: public long getUserId() {
077: return _userId;
078: }
079:
080: public String getArticleId() {
081: return _articleId;
082: }
083:
084: public double getVersion() {
085: return _version;
086: }
087:
088: public String getTitle() {
089: return _title;
090: }
091:
092: public String getDescription() {
093: return _description;
094: }
095:
096: public String[] getAvailableLocales() {
097: return _availableLocales;
098: }
099:
100: public String getContent() {
101: return _content;
102: }
103:
104: public void setContent(String content) {
105: _content = content;
106: }
107:
108: public String getType() {
109: return _type;
110: }
111:
112: public String getStructureId() {
113: return _structureId;
114: }
115:
116: public void setStructureId(String structureId) {
117: _structureId = structureId;
118: }
119:
120: public String getTemplateId() {
121: return _templateId;
122: }
123:
124: public void setTemplateId(String templateId) {
125: _templateId = templateId;
126: }
127:
128: public boolean isSmallImage() {
129: return _smallImage;
130: }
131:
132: public void setSmallImage(boolean smallImage) {
133: _smallImage = smallImage;
134: }
135:
136: public long getSmallImageId() {
137: return _smallImageId;
138: }
139:
140: public void setSmallImageId(long smallImageId) {
141: _smallImageId = smallImageId;
142: }
143:
144: public String getSmallImageURL() {
145: return _smallImageURL;
146: }
147:
148: public void setSmallImageURL(String smallImageURL) {
149: _smallImageURL = smallImageURL;
150: }
151:
152: public int getNumberOfPages() {
153: return _numberOfPages;
154: }
155:
156: public void setNumberOfPages(int numberOfPages) {
157: _numberOfPages = numberOfPages;
158: }
159:
160: public int getCurrentPage() {
161: return _currentPage;
162: }
163:
164: public void setCurrentPage(int currentPage) {
165: _currentPage = currentPage;
166: }
167:
168: public boolean isPaginate() {
169: return _paginate;
170: }
171:
172: public void setPaginate(boolean paginate) {
173: _paginate = paginate;
174: }
175:
176: public boolean isCacheable() {
177: return _cacheable;
178: }
179:
180: public void setCacheable(boolean cacheable) {
181: _cacheable = cacheable;
182: }
183:
184: private long _id;
185: private long _resourcePrimKey;
186: private long _groupId;
187: private long _userId;
188: private String _articleId;
189: private double _version;
190: private String _title;
191: private String _description;
192: private String[] _availableLocales;
193: private String _content;
194: private String _type;
195: private String _structureId;
196: private String _templateId;
197: private boolean _smallImage;
198: private long _smallImageId;
199: private String _smallImageURL;
200: private int _numberOfPages;
201: private int _currentPage;
202: private boolean _paginate;
203: private boolean _cacheable;
204:
205: }
|