001    /**
002     * Copyright (c) 2000-2013 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 ddmStructureKey,
030                    String ddmTemplateKey, boolean smallImage, long smallImageId,
031                    String smallImageURL, int numberOfPages, int currentPage,
032                    boolean paginate, 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                    _ddmStructureKey = ddmStructureKey;
048                    _ddmTemplateKey = ddmTemplateKey;
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 getDDMStructureKey() {
079                    return _ddmStructureKey;
080            }
081    
082            public String getDDMTemplateKey() {
083                    return _ddmTemplateKey;
084            }
085    
086            public String getDescription() {
087                    return _description;
088            }
089    
090            public long getGroupId() {
091                    return _groupId;
092            }
093    
094            public long getId() {
095                    return _id;
096            }
097    
098            public int getNumberOfPages() {
099                    return _numberOfPages;
100            }
101    
102            public long getResourcePrimKey() {
103                    return _resourcePrimKey;
104            }
105    
106            public long getSmallImageId() {
107                    return _smallImageId;
108            }
109    
110            public String getSmallImageURL() {
111                    return _smallImageURL;
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 setDDMStructureKey(String ddmStructureKey) {
159                    _ddmStructureKey = ddmStructureKey;
160            }
161    
162            public void setDDMTemplateKey(String ddmTemplateKey) {
163                    _ddmTemplateKey = ddmTemplateKey;
164            }
165    
166            public void setNumberOfPages(int numberOfPages) {
167                    _numberOfPages = numberOfPages;
168            }
169    
170            public void setPaginate(boolean paginate) {
171                    _paginate = paginate;
172            }
173    
174            public void setSmallImage(boolean smallImage) {
175                    _smallImage = smallImage;
176            }
177    
178            public void setSmallImageId(long smallImageId) {
179                    _smallImageId = smallImageId;
180            }
181    
182            public void setSmallImageURL(String smallImageURL) {
183                    _smallImageURL = smallImageURL;
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 _ddmStructureKey;
193            private String _ddmTemplateKey;
194            private String _description;
195            private long _groupId;
196            private long _id;
197            private int _numberOfPages;
198            private boolean _paginate;
199            private long _resourcePrimKey;
200            private boolean _smallImage;
201            private long _smallImageId;
202            private String _smallImageURL;
203            private String _title;
204            private String _type;
205            private String _urlTitle;
206            private long _userId;
207            private double _version;
208    
209    }