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