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