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;
016    
017    import com.liferay.portal.model.ModelWrapper;
018    
019    import java.util.HashMap;
020    import java.util.Map;
021    
022    /**
023     * <p>
024     * This class is a wrapper for {@link JournalContentSearch}.
025     * </p>
026     *
027     * @author    Brian Wing Shun Chan
028     * @see       JournalContentSearch
029     * @generated
030     */
031    public class JournalContentSearchWrapper implements JournalContentSearch,
032            ModelWrapper<JournalContentSearch> {
033            public JournalContentSearchWrapper(
034                    JournalContentSearch journalContentSearch) {
035                    _journalContentSearch = journalContentSearch;
036            }
037    
038            public Class<?> getModelClass() {
039                    return JournalContentSearch.class;
040            }
041    
042            public String getModelClassName() {
043                    return JournalContentSearch.class.getName();
044            }
045    
046            public Map<String, Object> getModelAttributes() {
047                    Map<String, Object> attributes = new HashMap<String, Object>();
048    
049                    attributes.put("contentSearchId", getContentSearchId());
050                    attributes.put("groupId", getGroupId());
051                    attributes.put("companyId", getCompanyId());
052                    attributes.put("privateLayout", getPrivateLayout());
053                    attributes.put("layoutId", getLayoutId());
054                    attributes.put("portletId", getPortletId());
055                    attributes.put("articleId", getArticleId());
056    
057                    return attributes;
058            }
059    
060            public void setModelAttributes(Map<String, Object> attributes) {
061                    Long contentSearchId = (Long)attributes.get("contentSearchId");
062    
063                    if (contentSearchId != null) {
064                            setContentSearchId(contentSearchId);
065                    }
066    
067                    Long groupId = (Long)attributes.get("groupId");
068    
069                    if (groupId != null) {
070                            setGroupId(groupId);
071                    }
072    
073                    Long companyId = (Long)attributes.get("companyId");
074    
075                    if (companyId != null) {
076                            setCompanyId(companyId);
077                    }
078    
079                    Boolean privateLayout = (Boolean)attributes.get("privateLayout");
080    
081                    if (privateLayout != null) {
082                            setPrivateLayout(privateLayout);
083                    }
084    
085                    Long layoutId = (Long)attributes.get("layoutId");
086    
087                    if (layoutId != null) {
088                            setLayoutId(layoutId);
089                    }
090    
091                    String portletId = (String)attributes.get("portletId");
092    
093                    if (portletId != null) {
094                            setPortletId(portletId);
095                    }
096    
097                    String articleId = (String)attributes.get("articleId");
098    
099                    if (articleId != null) {
100                            setArticleId(articleId);
101                    }
102            }
103    
104            /**
105            * Returns the primary key of this journal content search.
106            *
107            * @return the primary key of this journal content search
108            */
109            public long getPrimaryKey() {
110                    return _journalContentSearch.getPrimaryKey();
111            }
112    
113            /**
114            * Sets the primary key of this journal content search.
115            *
116            * @param primaryKey the primary key of this journal content search
117            */
118            public void setPrimaryKey(long primaryKey) {
119                    _journalContentSearch.setPrimaryKey(primaryKey);
120            }
121    
122            /**
123            * Returns the content search ID of this journal content search.
124            *
125            * @return the content search ID of this journal content search
126            */
127            public long getContentSearchId() {
128                    return _journalContentSearch.getContentSearchId();
129            }
130    
131            /**
132            * Sets the content search ID of this journal content search.
133            *
134            * @param contentSearchId the content search ID of this journal content search
135            */
136            public void setContentSearchId(long contentSearchId) {
137                    _journalContentSearch.setContentSearchId(contentSearchId);
138            }
139    
140            /**
141            * Returns the group ID of this journal content search.
142            *
143            * @return the group ID of this journal content search
144            */
145            public long getGroupId() {
146                    return _journalContentSearch.getGroupId();
147            }
148    
149            /**
150            * Sets the group ID of this journal content search.
151            *
152            * @param groupId the group ID of this journal content search
153            */
154            public void setGroupId(long groupId) {
155                    _journalContentSearch.setGroupId(groupId);
156            }
157    
158            /**
159            * Returns the company ID of this journal content search.
160            *
161            * @return the company ID of this journal content search
162            */
163            public long getCompanyId() {
164                    return _journalContentSearch.getCompanyId();
165            }
166    
167            /**
168            * Sets the company ID of this journal content search.
169            *
170            * @param companyId the company ID of this journal content search
171            */
172            public void setCompanyId(long companyId) {
173                    _journalContentSearch.setCompanyId(companyId);
174            }
175    
176            /**
177            * Returns the private layout of this journal content search.
178            *
179            * @return the private layout of this journal content search
180            */
181            public boolean getPrivateLayout() {
182                    return _journalContentSearch.getPrivateLayout();
183            }
184    
185            /**
186            * Returns <code>true</code> if this journal content search is private layout.
187            *
188            * @return <code>true</code> if this journal content search is private layout; <code>false</code> otherwise
189            */
190            public boolean isPrivateLayout() {
191                    return _journalContentSearch.isPrivateLayout();
192            }
193    
194            /**
195            * Sets whether this journal content search is private layout.
196            *
197            * @param privateLayout the private layout of this journal content search
198            */
199            public void setPrivateLayout(boolean privateLayout) {
200                    _journalContentSearch.setPrivateLayout(privateLayout);
201            }
202    
203            /**
204            * Returns the layout ID of this journal content search.
205            *
206            * @return the layout ID of this journal content search
207            */
208            public long getLayoutId() {
209                    return _journalContentSearch.getLayoutId();
210            }
211    
212            /**
213            * Sets the layout ID of this journal content search.
214            *
215            * @param layoutId the layout ID of this journal content search
216            */
217            public void setLayoutId(long layoutId) {
218                    _journalContentSearch.setLayoutId(layoutId);
219            }
220    
221            /**
222            * Returns the portlet ID of this journal content search.
223            *
224            * @return the portlet ID of this journal content search
225            */
226            public java.lang.String getPortletId() {
227                    return _journalContentSearch.getPortletId();
228            }
229    
230            /**
231            * Sets the portlet ID of this journal content search.
232            *
233            * @param portletId the portlet ID of this journal content search
234            */
235            public void setPortletId(java.lang.String portletId) {
236                    _journalContentSearch.setPortletId(portletId);
237            }
238    
239            /**
240            * Returns the article ID of this journal content search.
241            *
242            * @return the article ID of this journal content search
243            */
244            public java.lang.String getArticleId() {
245                    return _journalContentSearch.getArticleId();
246            }
247    
248            /**
249            * Sets the article ID of this journal content search.
250            *
251            * @param articleId the article ID of this journal content search
252            */
253            public void setArticleId(java.lang.String articleId) {
254                    _journalContentSearch.setArticleId(articleId);
255            }
256    
257            public boolean isNew() {
258                    return _journalContentSearch.isNew();
259            }
260    
261            public void setNew(boolean n) {
262                    _journalContentSearch.setNew(n);
263            }
264    
265            public boolean isCachedModel() {
266                    return _journalContentSearch.isCachedModel();
267            }
268    
269            public void setCachedModel(boolean cachedModel) {
270                    _journalContentSearch.setCachedModel(cachedModel);
271            }
272    
273            public boolean isEscapedModel() {
274                    return _journalContentSearch.isEscapedModel();
275            }
276    
277            public java.io.Serializable getPrimaryKeyObj() {
278                    return _journalContentSearch.getPrimaryKeyObj();
279            }
280    
281            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
282                    _journalContentSearch.setPrimaryKeyObj(primaryKeyObj);
283            }
284    
285            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
286                    return _journalContentSearch.getExpandoBridge();
287            }
288    
289            public void setExpandoBridgeAttributes(
290                    com.liferay.portal.model.BaseModel<?> baseModel) {
291                    _journalContentSearch.setExpandoBridgeAttributes(baseModel);
292            }
293    
294            public void setExpandoBridgeAttributes(
295                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
296                    _journalContentSearch.setExpandoBridgeAttributes(expandoBridge);
297            }
298    
299            public void setExpandoBridgeAttributes(
300                    com.liferay.portal.service.ServiceContext serviceContext) {
301                    _journalContentSearch.setExpandoBridgeAttributes(serviceContext);
302            }
303    
304            @Override
305            public java.lang.Object clone() {
306                    return new JournalContentSearchWrapper((JournalContentSearch)_journalContentSearch.clone());
307            }
308    
309            public int compareTo(
310                    com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch) {
311                    return _journalContentSearch.compareTo(journalContentSearch);
312            }
313    
314            @Override
315            public int hashCode() {
316                    return _journalContentSearch.hashCode();
317            }
318    
319            public com.liferay.portal.model.CacheModel<com.liferay.portlet.journal.model.JournalContentSearch> toCacheModel() {
320                    return _journalContentSearch.toCacheModel();
321            }
322    
323            public com.liferay.portlet.journal.model.JournalContentSearch toEscapedModel() {
324                    return new JournalContentSearchWrapper(_journalContentSearch.toEscapedModel());
325            }
326    
327            public com.liferay.portlet.journal.model.JournalContentSearch toUnescapedModel() {
328                    return new JournalContentSearchWrapper(_journalContentSearch.toUnescapedModel());
329            }
330    
331            @Override
332            public java.lang.String toString() {
333                    return _journalContentSearch.toString();
334            }
335    
336            public java.lang.String toXmlString() {
337                    return _journalContentSearch.toXmlString();
338            }
339    
340            public void persist()
341                    throws com.liferay.portal.kernel.exception.SystemException {
342                    _journalContentSearch.persist();
343            }
344    
345            /**
346             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
347             */
348            public JournalContentSearch getWrappedJournalContentSearch() {
349                    return _journalContentSearch;
350            }
351    
352            public JournalContentSearch getWrappedModel() {
353                    return _journalContentSearch;
354            }
355    
356            public void resetOriginalValues() {
357                    _journalContentSearch.resetOriginalValues();
358            }
359    
360            private JournalContentSearch _journalContentSearch;
361    }