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.Date;
020    import java.util.HashMap;
021    import java.util.Map;
022    
023    /**
024     * <p>
025     * This class is a wrapper for {@link JournalFeed}.
026     * </p>
027     *
028     * @author    Brian Wing Shun Chan
029     * @see       JournalFeed
030     * @generated
031     */
032    public class JournalFeedWrapper implements JournalFeed,
033            ModelWrapper<JournalFeed> {
034            public JournalFeedWrapper(JournalFeed journalFeed) {
035                    _journalFeed = journalFeed;
036            }
037    
038            public Class<?> getModelClass() {
039                    return JournalFeed.class;
040            }
041    
042            public String getModelClassName() {
043                    return JournalFeed.class.getName();
044            }
045    
046            public Map<String, Object> getModelAttributes() {
047                    Map<String, Object> attributes = new HashMap<String, Object>();
048    
049                    attributes.put("uuid", getUuid());
050                    attributes.put("id", getId());
051                    attributes.put("groupId", getGroupId());
052                    attributes.put("companyId", getCompanyId());
053                    attributes.put("userId", getUserId());
054                    attributes.put("userName", getUserName());
055                    attributes.put("createDate", getCreateDate());
056                    attributes.put("modifiedDate", getModifiedDate());
057                    attributes.put("feedId", getFeedId());
058                    attributes.put("name", getName());
059                    attributes.put("description", getDescription());
060                    attributes.put("type", getType());
061                    attributes.put("structureId", getStructureId());
062                    attributes.put("templateId", getTemplateId());
063                    attributes.put("rendererTemplateId", getRendererTemplateId());
064                    attributes.put("delta", getDelta());
065                    attributes.put("orderByCol", getOrderByCol());
066                    attributes.put("orderByType", getOrderByType());
067                    attributes.put("targetLayoutFriendlyUrl", getTargetLayoutFriendlyUrl());
068                    attributes.put("targetPortletId", getTargetPortletId());
069                    attributes.put("contentField", getContentField());
070                    attributes.put("feedFormat", getFeedFormat());
071                    attributes.put("feedVersion", getFeedVersion());
072    
073                    return attributes;
074            }
075    
076            public void setModelAttributes(Map<String, Object> attributes) {
077                    String uuid = (String)attributes.get("uuid");
078    
079                    if (uuid != null) {
080                            setUuid(uuid);
081                    }
082    
083                    Long id = (Long)attributes.get("id");
084    
085                    if (id != null) {
086                            setId(id);
087                    }
088    
089                    Long groupId = (Long)attributes.get("groupId");
090    
091                    if (groupId != null) {
092                            setGroupId(groupId);
093                    }
094    
095                    Long companyId = (Long)attributes.get("companyId");
096    
097                    if (companyId != null) {
098                            setCompanyId(companyId);
099                    }
100    
101                    Long userId = (Long)attributes.get("userId");
102    
103                    if (userId != null) {
104                            setUserId(userId);
105                    }
106    
107                    String userName = (String)attributes.get("userName");
108    
109                    if (userName != null) {
110                            setUserName(userName);
111                    }
112    
113                    Date createDate = (Date)attributes.get("createDate");
114    
115                    if (createDate != null) {
116                            setCreateDate(createDate);
117                    }
118    
119                    Date modifiedDate = (Date)attributes.get("modifiedDate");
120    
121                    if (modifiedDate != null) {
122                            setModifiedDate(modifiedDate);
123                    }
124    
125                    String feedId = (String)attributes.get("feedId");
126    
127                    if (feedId != null) {
128                            setFeedId(feedId);
129                    }
130    
131                    String name = (String)attributes.get("name");
132    
133                    if (name != null) {
134                            setName(name);
135                    }
136    
137                    String description = (String)attributes.get("description");
138    
139                    if (description != null) {
140                            setDescription(description);
141                    }
142    
143                    String type = (String)attributes.get("type");
144    
145                    if (type != null) {
146                            setType(type);
147                    }
148    
149                    String structureId = (String)attributes.get("structureId");
150    
151                    if (structureId != null) {
152                            setStructureId(structureId);
153                    }
154    
155                    String templateId = (String)attributes.get("templateId");
156    
157                    if (templateId != null) {
158                            setTemplateId(templateId);
159                    }
160    
161                    String rendererTemplateId = (String)attributes.get("rendererTemplateId");
162    
163                    if (rendererTemplateId != null) {
164                            setRendererTemplateId(rendererTemplateId);
165                    }
166    
167                    Integer delta = (Integer)attributes.get("delta");
168    
169                    if (delta != null) {
170                            setDelta(delta);
171                    }
172    
173                    String orderByCol = (String)attributes.get("orderByCol");
174    
175                    if (orderByCol != null) {
176                            setOrderByCol(orderByCol);
177                    }
178    
179                    String orderByType = (String)attributes.get("orderByType");
180    
181                    if (orderByType != null) {
182                            setOrderByType(orderByType);
183                    }
184    
185                    String targetLayoutFriendlyUrl = (String)attributes.get(
186                                    "targetLayoutFriendlyUrl");
187    
188                    if (targetLayoutFriendlyUrl != null) {
189                            setTargetLayoutFriendlyUrl(targetLayoutFriendlyUrl);
190                    }
191    
192                    String targetPortletId = (String)attributes.get("targetPortletId");
193    
194                    if (targetPortletId != null) {
195                            setTargetPortletId(targetPortletId);
196                    }
197    
198                    String contentField = (String)attributes.get("contentField");
199    
200                    if (contentField != null) {
201                            setContentField(contentField);
202                    }
203    
204                    String feedFormat = (String)attributes.get("feedFormat");
205    
206                    if (feedFormat != null) {
207                            setFeedFormat(feedFormat);
208                    }
209    
210                    Double feedVersion = (Double)attributes.get("feedVersion");
211    
212                    if (feedVersion != null) {
213                            setFeedVersion(feedVersion);
214                    }
215            }
216    
217            /**
218            * Returns the primary key of this journal feed.
219            *
220            * @return the primary key of this journal feed
221            */
222            public long getPrimaryKey() {
223                    return _journalFeed.getPrimaryKey();
224            }
225    
226            /**
227            * Sets the primary key of this journal feed.
228            *
229            * @param primaryKey the primary key of this journal feed
230            */
231            public void setPrimaryKey(long primaryKey) {
232                    _journalFeed.setPrimaryKey(primaryKey);
233            }
234    
235            /**
236            * Returns the uuid of this journal feed.
237            *
238            * @return the uuid of this journal feed
239            */
240            public java.lang.String getUuid() {
241                    return _journalFeed.getUuid();
242            }
243    
244            /**
245            * Sets the uuid of this journal feed.
246            *
247            * @param uuid the uuid of this journal feed
248            */
249            public void setUuid(java.lang.String uuid) {
250                    _journalFeed.setUuid(uuid);
251            }
252    
253            /**
254            * Returns the ID of this journal feed.
255            *
256            * @return the ID of this journal feed
257            */
258            public long getId() {
259                    return _journalFeed.getId();
260            }
261    
262            /**
263            * Sets the ID of this journal feed.
264            *
265            * @param id the ID of this journal feed
266            */
267            public void setId(long id) {
268                    _journalFeed.setId(id);
269            }
270    
271            /**
272            * Returns the group ID of this journal feed.
273            *
274            * @return the group ID of this journal feed
275            */
276            public long getGroupId() {
277                    return _journalFeed.getGroupId();
278            }
279    
280            /**
281            * Sets the group ID of this journal feed.
282            *
283            * @param groupId the group ID of this journal feed
284            */
285            public void setGroupId(long groupId) {
286                    _journalFeed.setGroupId(groupId);
287            }
288    
289            /**
290            * Returns the company ID of this journal feed.
291            *
292            * @return the company ID of this journal feed
293            */
294            public long getCompanyId() {
295                    return _journalFeed.getCompanyId();
296            }
297    
298            /**
299            * Sets the company ID of this journal feed.
300            *
301            * @param companyId the company ID of this journal feed
302            */
303            public void setCompanyId(long companyId) {
304                    _journalFeed.setCompanyId(companyId);
305            }
306    
307            /**
308            * Returns the user ID of this journal feed.
309            *
310            * @return the user ID of this journal feed
311            */
312            public long getUserId() {
313                    return _journalFeed.getUserId();
314            }
315    
316            /**
317            * Sets the user ID of this journal feed.
318            *
319            * @param userId the user ID of this journal feed
320            */
321            public void setUserId(long userId) {
322                    _journalFeed.setUserId(userId);
323            }
324    
325            /**
326            * Returns the user uuid of this journal feed.
327            *
328            * @return the user uuid of this journal feed
329            * @throws SystemException if a system exception occurred
330            */
331            public java.lang.String getUserUuid()
332                    throws com.liferay.portal.kernel.exception.SystemException {
333                    return _journalFeed.getUserUuid();
334            }
335    
336            /**
337            * Sets the user uuid of this journal feed.
338            *
339            * @param userUuid the user uuid of this journal feed
340            */
341            public void setUserUuid(java.lang.String userUuid) {
342                    _journalFeed.setUserUuid(userUuid);
343            }
344    
345            /**
346            * Returns the user name of this journal feed.
347            *
348            * @return the user name of this journal feed
349            */
350            public java.lang.String getUserName() {
351                    return _journalFeed.getUserName();
352            }
353    
354            /**
355            * Sets the user name of this journal feed.
356            *
357            * @param userName the user name of this journal feed
358            */
359            public void setUserName(java.lang.String userName) {
360                    _journalFeed.setUserName(userName);
361            }
362    
363            /**
364            * Returns the create date of this journal feed.
365            *
366            * @return the create date of this journal feed
367            */
368            public java.util.Date getCreateDate() {
369                    return _journalFeed.getCreateDate();
370            }
371    
372            /**
373            * Sets the create date of this journal feed.
374            *
375            * @param createDate the create date of this journal feed
376            */
377            public void setCreateDate(java.util.Date createDate) {
378                    _journalFeed.setCreateDate(createDate);
379            }
380    
381            /**
382            * Returns the modified date of this journal feed.
383            *
384            * @return the modified date of this journal feed
385            */
386            public java.util.Date getModifiedDate() {
387                    return _journalFeed.getModifiedDate();
388            }
389    
390            /**
391            * Sets the modified date of this journal feed.
392            *
393            * @param modifiedDate the modified date of this journal feed
394            */
395            public void setModifiedDate(java.util.Date modifiedDate) {
396                    _journalFeed.setModifiedDate(modifiedDate);
397            }
398    
399            /**
400            * Returns the feed ID of this journal feed.
401            *
402            * @return the feed ID of this journal feed
403            */
404            public java.lang.String getFeedId() {
405                    return _journalFeed.getFeedId();
406            }
407    
408            /**
409            * Sets the feed ID of this journal feed.
410            *
411            * @param feedId the feed ID of this journal feed
412            */
413            public void setFeedId(java.lang.String feedId) {
414                    _journalFeed.setFeedId(feedId);
415            }
416    
417            /**
418            * Returns the name of this journal feed.
419            *
420            * @return the name of this journal feed
421            */
422            public java.lang.String getName() {
423                    return _journalFeed.getName();
424            }
425    
426            /**
427            * Sets the name of this journal feed.
428            *
429            * @param name the name of this journal feed
430            */
431            public void setName(java.lang.String name) {
432                    _journalFeed.setName(name);
433            }
434    
435            /**
436            * Returns the description of this journal feed.
437            *
438            * @return the description of this journal feed
439            */
440            public java.lang.String getDescription() {
441                    return _journalFeed.getDescription();
442            }
443    
444            /**
445            * Sets the description of this journal feed.
446            *
447            * @param description the description of this journal feed
448            */
449            public void setDescription(java.lang.String description) {
450                    _journalFeed.setDescription(description);
451            }
452    
453            /**
454            * Returns the type of this journal feed.
455            *
456            * @return the type of this journal feed
457            */
458            public java.lang.String getType() {
459                    return _journalFeed.getType();
460            }
461    
462            /**
463            * Sets the type of this journal feed.
464            *
465            * @param type the type of this journal feed
466            */
467            public void setType(java.lang.String type) {
468                    _journalFeed.setType(type);
469            }
470    
471            /**
472            * Returns the structure ID of this journal feed.
473            *
474            * @return the structure ID of this journal feed
475            */
476            public java.lang.String getStructureId() {
477                    return _journalFeed.getStructureId();
478            }
479    
480            /**
481            * Sets the structure ID of this journal feed.
482            *
483            * @param structureId the structure ID of this journal feed
484            */
485            public void setStructureId(java.lang.String structureId) {
486                    _journalFeed.setStructureId(structureId);
487            }
488    
489            /**
490            * Returns the template ID of this journal feed.
491            *
492            * @return the template ID of this journal feed
493            */
494            public java.lang.String getTemplateId() {
495                    return _journalFeed.getTemplateId();
496            }
497    
498            /**
499            * Sets the template ID of this journal feed.
500            *
501            * @param templateId the template ID of this journal feed
502            */
503            public void setTemplateId(java.lang.String templateId) {
504                    _journalFeed.setTemplateId(templateId);
505            }
506    
507            /**
508            * Returns the renderer template ID of this journal feed.
509            *
510            * @return the renderer template ID of this journal feed
511            */
512            public java.lang.String getRendererTemplateId() {
513                    return _journalFeed.getRendererTemplateId();
514            }
515    
516            /**
517            * Sets the renderer template ID of this journal feed.
518            *
519            * @param rendererTemplateId the renderer template ID of this journal feed
520            */
521            public void setRendererTemplateId(java.lang.String rendererTemplateId) {
522                    _journalFeed.setRendererTemplateId(rendererTemplateId);
523            }
524    
525            /**
526            * Returns the delta of this journal feed.
527            *
528            * @return the delta of this journal feed
529            */
530            public int getDelta() {
531                    return _journalFeed.getDelta();
532            }
533    
534            /**
535            * Sets the delta of this journal feed.
536            *
537            * @param delta the delta of this journal feed
538            */
539            public void setDelta(int delta) {
540                    _journalFeed.setDelta(delta);
541            }
542    
543            /**
544            * Returns the order by col of this journal feed.
545            *
546            * @return the order by col of this journal feed
547            */
548            public java.lang.String getOrderByCol() {
549                    return _journalFeed.getOrderByCol();
550            }
551    
552            /**
553            * Sets the order by col of this journal feed.
554            *
555            * @param orderByCol the order by col of this journal feed
556            */
557            public void setOrderByCol(java.lang.String orderByCol) {
558                    _journalFeed.setOrderByCol(orderByCol);
559            }
560    
561            /**
562            * Returns the order by type of this journal feed.
563            *
564            * @return the order by type of this journal feed
565            */
566            public java.lang.String getOrderByType() {
567                    return _journalFeed.getOrderByType();
568            }
569    
570            /**
571            * Sets the order by type of this journal feed.
572            *
573            * @param orderByType the order by type of this journal feed
574            */
575            public void setOrderByType(java.lang.String orderByType) {
576                    _journalFeed.setOrderByType(orderByType);
577            }
578    
579            /**
580            * Returns the target layout friendly url of this journal feed.
581            *
582            * @return the target layout friendly url of this journal feed
583            */
584            public java.lang.String getTargetLayoutFriendlyUrl() {
585                    return _journalFeed.getTargetLayoutFriendlyUrl();
586            }
587    
588            /**
589            * Sets the target layout friendly url of this journal feed.
590            *
591            * @param targetLayoutFriendlyUrl the target layout friendly url of this journal feed
592            */
593            public void setTargetLayoutFriendlyUrl(
594                    java.lang.String targetLayoutFriendlyUrl) {
595                    _journalFeed.setTargetLayoutFriendlyUrl(targetLayoutFriendlyUrl);
596            }
597    
598            /**
599            * Returns the target portlet ID of this journal feed.
600            *
601            * @return the target portlet ID of this journal feed
602            */
603            public java.lang.String getTargetPortletId() {
604                    return _journalFeed.getTargetPortletId();
605            }
606    
607            /**
608            * Sets the target portlet ID of this journal feed.
609            *
610            * @param targetPortletId the target portlet ID of this journal feed
611            */
612            public void setTargetPortletId(java.lang.String targetPortletId) {
613                    _journalFeed.setTargetPortletId(targetPortletId);
614            }
615    
616            /**
617            * Returns the content field of this journal feed.
618            *
619            * @return the content field of this journal feed
620            */
621            public java.lang.String getContentField() {
622                    return _journalFeed.getContentField();
623            }
624    
625            /**
626            * Sets the content field of this journal feed.
627            *
628            * @param contentField the content field of this journal feed
629            */
630            public void setContentField(java.lang.String contentField) {
631                    _journalFeed.setContentField(contentField);
632            }
633    
634            /**
635            * Returns the feed format of this journal feed.
636            *
637            * @return the feed format of this journal feed
638            */
639            public java.lang.String getFeedFormat() {
640                    return _journalFeed.getFeedFormat();
641            }
642    
643            /**
644            * Sets the feed format of this journal feed.
645            *
646            * @param feedFormat the feed format of this journal feed
647            */
648            public void setFeedFormat(java.lang.String feedFormat) {
649                    _journalFeed.setFeedFormat(feedFormat);
650            }
651    
652            /**
653            * Returns the feed version of this journal feed.
654            *
655            * @return the feed version of this journal feed
656            */
657            public double getFeedVersion() {
658                    return _journalFeed.getFeedVersion();
659            }
660    
661            /**
662            * Sets the feed version of this journal feed.
663            *
664            * @param feedVersion the feed version of this journal feed
665            */
666            public void setFeedVersion(double feedVersion) {
667                    _journalFeed.setFeedVersion(feedVersion);
668            }
669    
670            public boolean isNew() {
671                    return _journalFeed.isNew();
672            }
673    
674            public void setNew(boolean n) {
675                    _journalFeed.setNew(n);
676            }
677    
678            public boolean isCachedModel() {
679                    return _journalFeed.isCachedModel();
680            }
681    
682            public void setCachedModel(boolean cachedModel) {
683                    _journalFeed.setCachedModel(cachedModel);
684            }
685    
686            public boolean isEscapedModel() {
687                    return _journalFeed.isEscapedModel();
688            }
689    
690            public java.io.Serializable getPrimaryKeyObj() {
691                    return _journalFeed.getPrimaryKeyObj();
692            }
693    
694            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
695                    _journalFeed.setPrimaryKeyObj(primaryKeyObj);
696            }
697    
698            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
699                    return _journalFeed.getExpandoBridge();
700            }
701    
702            public void setExpandoBridgeAttributes(
703                    com.liferay.portal.model.BaseModel<?> baseModel) {
704                    _journalFeed.setExpandoBridgeAttributes(baseModel);
705            }
706    
707            public void setExpandoBridgeAttributes(
708                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
709                    _journalFeed.setExpandoBridgeAttributes(expandoBridge);
710            }
711    
712            public void setExpandoBridgeAttributes(
713                    com.liferay.portal.service.ServiceContext serviceContext) {
714                    _journalFeed.setExpandoBridgeAttributes(serviceContext);
715            }
716    
717            @Override
718            public java.lang.Object clone() {
719                    return new JournalFeedWrapper((JournalFeed)_journalFeed.clone());
720            }
721    
722            public int compareTo(
723                    com.liferay.portlet.journal.model.JournalFeed journalFeed) {
724                    return _journalFeed.compareTo(journalFeed);
725            }
726    
727            @Override
728            public int hashCode() {
729                    return _journalFeed.hashCode();
730            }
731    
732            public com.liferay.portal.model.CacheModel<com.liferay.portlet.journal.model.JournalFeed> toCacheModel() {
733                    return _journalFeed.toCacheModel();
734            }
735    
736            public com.liferay.portlet.journal.model.JournalFeed toEscapedModel() {
737                    return new JournalFeedWrapper(_journalFeed.toEscapedModel());
738            }
739    
740            public com.liferay.portlet.journal.model.JournalFeed toUnescapedModel() {
741                    return new JournalFeedWrapper(_journalFeed.toUnescapedModel());
742            }
743    
744            @Override
745            public java.lang.String toString() {
746                    return _journalFeed.toString();
747            }
748    
749            public java.lang.String toXmlString() {
750                    return _journalFeed.toXmlString();
751            }
752    
753            public void persist()
754                    throws com.liferay.portal.kernel.exception.SystemException {
755                    _journalFeed.persist();
756            }
757    
758            /**
759             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
760             */
761            public JournalFeed getWrappedJournalFeed() {
762                    return _journalFeed;
763            }
764    
765            public JournalFeed getWrappedModel() {
766                    return _journalFeed;
767            }
768    
769            public void resetOriginalValues() {
770                    _journalFeed.resetOriginalValues();
771            }
772    
773            private JournalFeed _journalFeed;
774    }