001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.journal.model.impl;
016    
017    import com.liferay.portlet.journal.model.JournalArticleDisplay;
018    
019    /**
020     * @author Brian Wing Shun Chan
021     * @author Raymond Augé
022     */
023    public class JournalArticleDisplayImpl implements JournalArticleDisplay {
024    
025            public JournalArticleDisplayImpl(
026                    long id, long resourcePrimKey, long groupId, long userId,
027                    String articleId, double version, String title, String urlTitle,
028                    String description, String[] availableLocales, String content,
029                    String type, String structureId, String templateId, boolean smallImage,
030                    long smallImageId, String smallImageURL, int numberOfPages,
031                    int currentPage, boolean paginate, boolean cacheable) {
032    
033                    _id = id;
034                    _resourcePrimKey = resourcePrimKey;
035                    _groupId = groupId;
036                    _userId = userId;
037                    _articleId = articleId;
038                    _version = version;
039                    _title = title;
040                    _urlTitle = urlTitle;
041                    _description = description;
042                    _availableLocales = availableLocales;
043                    _content = content;
044                    _type = type;
045                    _structureId = structureId;
046                    _templateId = templateId;
047                    _smallImage = smallImage;
048                    _smallImageId = smallImageId;
049                    _smallImageURL = smallImageURL;
050                    _numberOfPages = numberOfPages;
051                    _currentPage = currentPage;
052                    _paginate = paginate;
053                    _cacheable = cacheable;
054            }
055    
056            public long getId() {
057                    return _id;
058            }
059    
060            public long getResourcePrimKey() {
061                    return _resourcePrimKey;
062            }
063    
064            public long getGroupId() {
065                    return _groupId;
066            }
067    
068            public long getUserId() {
069                    return _userId;
070            }
071    
072            public String getArticleId() {
073                    return _articleId;
074            }
075    
076            public double getVersion() {
077                    return _version;
078            }
079    
080            public String getTitle() {
081                    return _title;
082            }
083    
084            public String getUrlTitle() {
085                    return _urlTitle;
086            }
087    
088            public String getDescription() {
089                    return _description;
090            }
091    
092            public String[] getAvailableLocales() {
093                    return _availableLocales;
094            }
095    
096            public String getContent() {
097                    return _content;
098            }
099    
100            public void setContent(String content) {
101                    _content = content;
102            }
103    
104            public String getType() {
105                    return _type;
106            }
107    
108            public String getStructureId() {
109                    return _structureId;
110            }
111    
112            public void setStructureId(String structureId) {
113                    _structureId = structureId;
114            }
115    
116            public String getTemplateId() {
117                    return _templateId;
118            }
119    
120            public void setTemplateId(String templateId) {
121                    _templateId = templateId;
122            }
123    
124            public boolean isSmallImage() {
125                    return _smallImage;
126            }
127    
128            public void setSmallImage(boolean smallImage) {
129                    _smallImage = smallImage;
130            }
131    
132            public long getSmallImageId() {
133                    return _smallImageId;
134            }
135    
136            public void setSmallImageId(long smallImageId) {
137                    _smallImageId = smallImageId;
138            }
139    
140            public String getSmallImageURL() {
141                    return _smallImageURL;
142            }
143    
144            public void setSmallImageURL(String smallImageURL) {
145                    _smallImageURL = smallImageURL;
146            }
147    
148            public int getNumberOfPages() {
149                    return _numberOfPages;
150            }
151    
152            public void setNumberOfPages(int numberOfPages) {
153                    _numberOfPages = numberOfPages;
154            }
155    
156            public int getCurrentPage() {
157                    return _currentPage;
158            }
159    
160            public void setCurrentPage(int currentPage) {
161                    _currentPage = currentPage;
162            }
163    
164            public boolean isPaginate() {
165                    return _paginate;
166            }
167    
168            public void setPaginate(boolean paginate) {
169                    _paginate = paginate;
170            }
171    
172            public boolean isCacheable() {
173                    return _cacheable;
174            }
175    
176            public void setCacheable(boolean cacheable) {
177                    _cacheable = cacheable;
178            }
179    
180            private long _id;
181            private long _resourcePrimKey;
182            private long _groupId;
183            private long _userId;
184            private String _articleId;
185            private double _version;
186            private String _title;
187            private String _urlTitle;
188            private String _description;
189            private String[] _availableLocales;
190            private String _content;
191            private String _type;
192            private String _structureId;
193            private String _templateId;
194            private boolean _smallImage;
195            private long _smallImageId;
196            private String _smallImageURL;
197            private int _numberOfPages;
198            private int _currentPage;
199            private boolean _paginate;
200            private boolean _cacheable;
201    
202    }