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 companyId, long id, long resourcePrimKey, long groupId,
027                    long userId, String articleId, double version, String title,
028                    String urlTitle, String description, String[] availableLocales,
029                    String content, String type, String structureId, String templateId,
030                    boolean smallImage, long smallImageId, String smallImageURL,
031                    int numberOfPages, int currentPage, boolean paginate,
032                    boolean cacheable) {
033    
034                    _companyId = companyId;
035                    _id = id;
036                    _resourcePrimKey = resourcePrimKey;
037                    _groupId = groupId;
038                    _userId = userId;
039                    _articleId = articleId;
040                    _version = version;
041                    _title = title;
042                    _urlTitle = urlTitle;
043                    _description = description;
044                    _availableLocales = availableLocales;
045                    _content = content;
046                    _type = type;
047                    _structureId = structureId;
048                    _templateId = templateId;
049                    _smallImage = smallImage;
050                    _smallImageId = smallImageId;
051                    _smallImageURL = smallImageURL;
052                    _numberOfPages = numberOfPages;
053                    _currentPage = currentPage;
054                    _paginate = paginate;
055                    _cacheable = cacheable;
056            }
057    
058            public long getCompanyId() {
059                    return _companyId;
060            }
061    
062            public long getId() {
063                    return _id;
064            }
065    
066            public long getResourcePrimKey() {
067                    return _resourcePrimKey;
068            }
069    
070            public long getGroupId() {
071                    return _groupId;
072            }
073    
074            public long getUserId() {
075                    return _userId;
076            }
077    
078            public String getArticleId() {
079                    return _articleId;
080            }
081    
082            public double getVersion() {
083                    return _version;
084            }
085    
086            public String getTitle() {
087                    return _title;
088            }
089    
090            public String getUrlTitle() {
091                    return _urlTitle;
092            }
093    
094            public String getDescription() {
095                    return _description;
096            }
097    
098            public String[] getAvailableLocales() {
099                    return _availableLocales;
100            }
101    
102            public String getContent() {
103                    return _content;
104            }
105    
106            public void setContent(String content) {
107                    _content = content;
108            }
109    
110            public String getType() {
111                    return _type;
112            }
113    
114            public String getStructureId() {
115                    return _structureId;
116            }
117    
118            public void setStructureId(String structureId) {
119                    _structureId = structureId;
120            }
121    
122            public String getTemplateId() {
123                    return _templateId;
124            }
125    
126            public void setTemplateId(String templateId) {
127                    _templateId = templateId;
128            }
129    
130            public boolean isSmallImage() {
131                    return _smallImage;
132            }
133    
134            public void setSmallImage(boolean smallImage) {
135                    _smallImage = smallImage;
136            }
137    
138            public long getSmallImageId() {
139                    return _smallImageId;
140            }
141    
142            public void setSmallImageId(long smallImageId) {
143                    _smallImageId = smallImageId;
144            }
145    
146            public String getSmallImageURL() {
147                    return _smallImageURL;
148            }
149    
150            public void setSmallImageURL(String smallImageURL) {
151                    _smallImageURL = smallImageURL;
152            }
153    
154            public int getNumberOfPages() {
155                    return _numberOfPages;
156            }
157    
158            public void setNumberOfPages(int numberOfPages) {
159                    _numberOfPages = numberOfPages;
160            }
161    
162            public int getCurrentPage() {
163                    return _currentPage;
164            }
165    
166            public void setCurrentPage(int currentPage) {
167                    _currentPage = currentPage;
168            }
169    
170            public boolean isPaginate() {
171                    return _paginate;
172            }
173    
174            public void setPaginate(boolean paginate) {
175                    _paginate = paginate;
176            }
177    
178            public boolean isCacheable() {
179                    return _cacheable;
180            }
181    
182            public void setCacheable(boolean cacheable) {
183                    _cacheable = cacheable;
184            }
185    
186            private long _companyId;
187            private long _id;
188            private long _resourcePrimKey;
189            private long _groupId;
190            private long _userId;
191            private String _articleId;
192            private double _version;
193            private String _title;
194            private String _urlTitle;
195            private String _description;
196            private String[] _availableLocales;
197            private String _content;
198            private String _type;
199            private String _structureId;
200            private String _templateId;
201            private boolean _smallImage;
202            private long _smallImageId;
203            private String _smallImageURL;
204            private int _numberOfPages;
205            private int _currentPage;
206            private boolean _paginate;
207            private boolean _cacheable;
208    
209    }