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