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.bookmarks.model;
016    
017    import com.liferay.portal.model.ModelWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link BookmarksFolder}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       BookmarksFolder
026     * @generated
027     */
028    public class BookmarksFolderWrapper implements BookmarksFolder,
029            ModelWrapper<BookmarksFolder> {
030            public BookmarksFolderWrapper(BookmarksFolder bookmarksFolder) {
031                    _bookmarksFolder = bookmarksFolder;
032            }
033    
034            public Class<?> getModelClass() {
035                    return BookmarksFolder.class;
036            }
037    
038            public String getModelClassName() {
039                    return BookmarksFolder.class.getName();
040            }
041    
042            /**
043            * Returns the primary key of this bookmarks folder.
044            *
045            * @return the primary key of this bookmarks folder
046            */
047            public long getPrimaryKey() {
048                    return _bookmarksFolder.getPrimaryKey();
049            }
050    
051            /**
052            * Sets the primary key of this bookmarks folder.
053            *
054            * @param primaryKey the primary key of this bookmarks folder
055            */
056            public void setPrimaryKey(long primaryKey) {
057                    _bookmarksFolder.setPrimaryKey(primaryKey);
058            }
059    
060            /**
061            * Returns the uuid of this bookmarks folder.
062            *
063            * @return the uuid of this bookmarks folder
064            */
065            public java.lang.String getUuid() {
066                    return _bookmarksFolder.getUuid();
067            }
068    
069            /**
070            * Sets the uuid of this bookmarks folder.
071            *
072            * @param uuid the uuid of this bookmarks folder
073            */
074            public void setUuid(java.lang.String uuid) {
075                    _bookmarksFolder.setUuid(uuid);
076            }
077    
078            /**
079            * Returns the folder ID of this bookmarks folder.
080            *
081            * @return the folder ID of this bookmarks folder
082            */
083            public long getFolderId() {
084                    return _bookmarksFolder.getFolderId();
085            }
086    
087            /**
088            * Sets the folder ID of this bookmarks folder.
089            *
090            * @param folderId the folder ID of this bookmarks folder
091            */
092            public void setFolderId(long folderId) {
093                    _bookmarksFolder.setFolderId(folderId);
094            }
095    
096            /**
097            * Returns the group ID of this bookmarks folder.
098            *
099            * @return the group ID of this bookmarks folder
100            */
101            public long getGroupId() {
102                    return _bookmarksFolder.getGroupId();
103            }
104    
105            /**
106            * Sets the group ID of this bookmarks folder.
107            *
108            * @param groupId the group ID of this bookmarks folder
109            */
110            public void setGroupId(long groupId) {
111                    _bookmarksFolder.setGroupId(groupId);
112            }
113    
114            /**
115            * Returns the company ID of this bookmarks folder.
116            *
117            * @return the company ID of this bookmarks folder
118            */
119            public long getCompanyId() {
120                    return _bookmarksFolder.getCompanyId();
121            }
122    
123            /**
124            * Sets the company ID of this bookmarks folder.
125            *
126            * @param companyId the company ID of this bookmarks folder
127            */
128            public void setCompanyId(long companyId) {
129                    _bookmarksFolder.setCompanyId(companyId);
130            }
131    
132            /**
133            * Returns the user ID of this bookmarks folder.
134            *
135            * @return the user ID of this bookmarks folder
136            */
137            public long getUserId() {
138                    return _bookmarksFolder.getUserId();
139            }
140    
141            /**
142            * Sets the user ID of this bookmarks folder.
143            *
144            * @param userId the user ID of this bookmarks folder
145            */
146            public void setUserId(long userId) {
147                    _bookmarksFolder.setUserId(userId);
148            }
149    
150            /**
151            * Returns the user uuid of this bookmarks folder.
152            *
153            * @return the user uuid of this bookmarks folder
154            * @throws SystemException if a system exception occurred
155            */
156            public java.lang.String getUserUuid()
157                    throws com.liferay.portal.kernel.exception.SystemException {
158                    return _bookmarksFolder.getUserUuid();
159            }
160    
161            /**
162            * Sets the user uuid of this bookmarks folder.
163            *
164            * @param userUuid the user uuid of this bookmarks folder
165            */
166            public void setUserUuid(java.lang.String userUuid) {
167                    _bookmarksFolder.setUserUuid(userUuid);
168            }
169    
170            /**
171            * Returns the user name of this bookmarks folder.
172            *
173            * @return the user name of this bookmarks folder
174            */
175            public java.lang.String getUserName() {
176                    return _bookmarksFolder.getUserName();
177            }
178    
179            /**
180            * Sets the user name of this bookmarks folder.
181            *
182            * @param userName the user name of this bookmarks folder
183            */
184            public void setUserName(java.lang.String userName) {
185                    _bookmarksFolder.setUserName(userName);
186            }
187    
188            /**
189            * Returns the create date of this bookmarks folder.
190            *
191            * @return the create date of this bookmarks folder
192            */
193            public java.util.Date getCreateDate() {
194                    return _bookmarksFolder.getCreateDate();
195            }
196    
197            /**
198            * Sets the create date of this bookmarks folder.
199            *
200            * @param createDate the create date of this bookmarks folder
201            */
202            public void setCreateDate(java.util.Date createDate) {
203                    _bookmarksFolder.setCreateDate(createDate);
204            }
205    
206            /**
207            * Returns the modified date of this bookmarks folder.
208            *
209            * @return the modified date of this bookmarks folder
210            */
211            public java.util.Date getModifiedDate() {
212                    return _bookmarksFolder.getModifiedDate();
213            }
214    
215            /**
216            * Sets the modified date of this bookmarks folder.
217            *
218            * @param modifiedDate the modified date of this bookmarks folder
219            */
220            public void setModifiedDate(java.util.Date modifiedDate) {
221                    _bookmarksFolder.setModifiedDate(modifiedDate);
222            }
223    
224            /**
225            * Returns the resource block ID of this bookmarks folder.
226            *
227            * @return the resource block ID of this bookmarks folder
228            */
229            public long getResourceBlockId() {
230                    return _bookmarksFolder.getResourceBlockId();
231            }
232    
233            /**
234            * Sets the resource block ID of this bookmarks folder.
235            *
236            * @param resourceBlockId the resource block ID of this bookmarks folder
237            */
238            public void setResourceBlockId(long resourceBlockId) {
239                    _bookmarksFolder.setResourceBlockId(resourceBlockId);
240            }
241    
242            /**
243            * Returns the parent folder ID of this bookmarks folder.
244            *
245            * @return the parent folder ID of this bookmarks folder
246            */
247            public long getParentFolderId() {
248                    return _bookmarksFolder.getParentFolderId();
249            }
250    
251            /**
252            * Sets the parent folder ID of this bookmarks folder.
253            *
254            * @param parentFolderId the parent folder ID of this bookmarks folder
255            */
256            public void setParentFolderId(long parentFolderId) {
257                    _bookmarksFolder.setParentFolderId(parentFolderId);
258            }
259    
260            /**
261            * Returns the name of this bookmarks folder.
262            *
263            * @return the name of this bookmarks folder
264            */
265            public java.lang.String getName() {
266                    return _bookmarksFolder.getName();
267            }
268    
269            /**
270            * Sets the name of this bookmarks folder.
271            *
272            * @param name the name of this bookmarks folder
273            */
274            public void setName(java.lang.String name) {
275                    _bookmarksFolder.setName(name);
276            }
277    
278            /**
279            * Returns the description of this bookmarks folder.
280            *
281            * @return the description of this bookmarks folder
282            */
283            public java.lang.String getDescription() {
284                    return _bookmarksFolder.getDescription();
285            }
286    
287            /**
288            * Sets the description of this bookmarks folder.
289            *
290            * @param description the description of this bookmarks folder
291            */
292            public void setDescription(java.lang.String description) {
293                    _bookmarksFolder.setDescription(description);
294            }
295    
296            public boolean isNew() {
297                    return _bookmarksFolder.isNew();
298            }
299    
300            public void setNew(boolean n) {
301                    _bookmarksFolder.setNew(n);
302            }
303    
304            public boolean isCachedModel() {
305                    return _bookmarksFolder.isCachedModel();
306            }
307    
308            public void setCachedModel(boolean cachedModel) {
309                    _bookmarksFolder.setCachedModel(cachedModel);
310            }
311    
312            public boolean isEscapedModel() {
313                    return _bookmarksFolder.isEscapedModel();
314            }
315    
316            public java.io.Serializable getPrimaryKeyObj() {
317                    return _bookmarksFolder.getPrimaryKeyObj();
318            }
319    
320            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
321                    _bookmarksFolder.setPrimaryKeyObj(primaryKeyObj);
322            }
323    
324            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
325                    return _bookmarksFolder.getExpandoBridge();
326            }
327    
328            public void setExpandoBridgeAttributes(
329                    com.liferay.portal.service.ServiceContext serviceContext) {
330                    _bookmarksFolder.setExpandoBridgeAttributes(serviceContext);
331            }
332    
333            @Override
334            public java.lang.Object clone() {
335                    return new BookmarksFolderWrapper((BookmarksFolder)_bookmarksFolder.clone());
336            }
337    
338            public int compareTo(
339                    com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder) {
340                    return _bookmarksFolder.compareTo(bookmarksFolder);
341            }
342    
343            @Override
344            public int hashCode() {
345                    return _bookmarksFolder.hashCode();
346            }
347    
348            public com.liferay.portal.model.CacheModel<com.liferay.portlet.bookmarks.model.BookmarksFolder> toCacheModel() {
349                    return _bookmarksFolder.toCacheModel();
350            }
351    
352            public com.liferay.portlet.bookmarks.model.BookmarksFolder toEscapedModel() {
353                    return new BookmarksFolderWrapper(_bookmarksFolder.toEscapedModel());
354            }
355    
356            @Override
357            public java.lang.String toString() {
358                    return _bookmarksFolder.toString();
359            }
360    
361            public java.lang.String toXmlString() {
362                    return _bookmarksFolder.toXmlString();
363            }
364    
365            public void persist()
366                    throws com.liferay.portal.kernel.exception.SystemException {
367                    _bookmarksFolder.persist();
368            }
369    
370            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getAncestors()
371                    throws com.liferay.portal.kernel.exception.PortalException,
372                            com.liferay.portal.kernel.exception.SystemException {
373                    return _bookmarksFolder.getAncestors();
374            }
375    
376            public com.liferay.portlet.bookmarks.model.BookmarksFolder getParentFolder()
377                    throws com.liferay.portal.kernel.exception.PortalException,
378                            com.liferay.portal.kernel.exception.SystemException {
379                    return _bookmarksFolder.getParentFolder();
380            }
381    
382            public boolean isRoot() {
383                    return _bookmarksFolder.isRoot();
384            }
385    
386            /**
387             * @deprecated Renamed to {@link #getWrappedModel}
388             */
389            public BookmarksFolder getWrappedBookmarksFolder() {
390                    return _bookmarksFolder;
391            }
392    
393            public BookmarksFolder getWrappedModel() {
394                    return _bookmarksFolder;
395            }
396    
397            public void resetOriginalValues() {
398                    _bookmarksFolder.resetOriginalValues();
399            }
400    
401            private BookmarksFolder _bookmarksFolder;
402    }