001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.model;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link PortletPreferences}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       PortletPreferences
024     * @generated
025     */
026    public class PortletPreferencesWrapper implements PortletPreferences {
027            public PortletPreferencesWrapper(PortletPreferences portletPreferences) {
028                    _portletPreferences = portletPreferences;
029            }
030    
031            /**
032            * Gets the primary key of this portlet preferences.
033            *
034            * @return the primary key of this portlet preferences
035            */
036            public long getPrimaryKey() {
037                    return _portletPreferences.getPrimaryKey();
038            }
039    
040            /**
041            * Sets the primary key of this portlet preferences
042            *
043            * @param pk the primary key of this portlet preferences
044            */
045            public void setPrimaryKey(long pk) {
046                    _portletPreferences.setPrimaryKey(pk);
047            }
048    
049            /**
050            * Gets the portlet preferences id of this portlet preferences.
051            *
052            * @return the portlet preferences id of this portlet preferences
053            */
054            public long getPortletPreferencesId() {
055                    return _portletPreferences.getPortletPreferencesId();
056            }
057    
058            /**
059            * Sets the portlet preferences id of this portlet preferences.
060            *
061            * @param portletPreferencesId the portlet preferences id of this portlet preferences
062            */
063            public void setPortletPreferencesId(long portletPreferencesId) {
064                    _portletPreferences.setPortletPreferencesId(portletPreferencesId);
065            }
066    
067            /**
068            * Gets the owner id of this portlet preferences.
069            *
070            * @return the owner id of this portlet preferences
071            */
072            public long getOwnerId() {
073                    return _portletPreferences.getOwnerId();
074            }
075    
076            /**
077            * Sets the owner id of this portlet preferences.
078            *
079            * @param ownerId the owner id of this portlet preferences
080            */
081            public void setOwnerId(long ownerId) {
082                    _portletPreferences.setOwnerId(ownerId);
083            }
084    
085            /**
086            * Gets the owner type of this portlet preferences.
087            *
088            * @return the owner type of this portlet preferences
089            */
090            public int getOwnerType() {
091                    return _portletPreferences.getOwnerType();
092            }
093    
094            /**
095            * Sets the owner type of this portlet preferences.
096            *
097            * @param ownerType the owner type of this portlet preferences
098            */
099            public void setOwnerType(int ownerType) {
100                    _portletPreferences.setOwnerType(ownerType);
101            }
102    
103            /**
104            * Gets the plid of this portlet preferences.
105            *
106            * @return the plid of this portlet preferences
107            */
108            public long getPlid() {
109                    return _portletPreferences.getPlid();
110            }
111    
112            /**
113            * Sets the plid of this portlet preferences.
114            *
115            * @param plid the plid of this portlet preferences
116            */
117            public void setPlid(long plid) {
118                    _portletPreferences.setPlid(plid);
119            }
120    
121            /**
122            * Gets the portlet id of this portlet preferences.
123            *
124            * @return the portlet id of this portlet preferences
125            */
126            public java.lang.String getPortletId() {
127                    return _portletPreferences.getPortletId();
128            }
129    
130            /**
131            * Sets the portlet id of this portlet preferences.
132            *
133            * @param portletId the portlet id of this portlet preferences
134            */
135            public void setPortletId(java.lang.String portletId) {
136                    _portletPreferences.setPortletId(portletId);
137            }
138    
139            /**
140            * Gets the preferences of this portlet preferences.
141            *
142            * @return the preferences of this portlet preferences
143            */
144            public java.lang.String getPreferences() {
145                    return _portletPreferences.getPreferences();
146            }
147    
148            /**
149            * Sets the preferences of this portlet preferences.
150            *
151            * @param preferences the preferences of this portlet preferences
152            */
153            public void setPreferences(java.lang.String preferences) {
154                    _portletPreferences.setPreferences(preferences);
155            }
156    
157            public boolean isNew() {
158                    return _portletPreferences.isNew();
159            }
160    
161            public void setNew(boolean n) {
162                    _portletPreferences.setNew(n);
163            }
164    
165            public boolean isCachedModel() {
166                    return _portletPreferences.isCachedModel();
167            }
168    
169            public void setCachedModel(boolean cachedModel) {
170                    _portletPreferences.setCachedModel(cachedModel);
171            }
172    
173            public boolean isEscapedModel() {
174                    return _portletPreferences.isEscapedModel();
175            }
176    
177            public void setEscapedModel(boolean escapedModel) {
178                    _portletPreferences.setEscapedModel(escapedModel);
179            }
180    
181            public java.io.Serializable getPrimaryKeyObj() {
182                    return _portletPreferences.getPrimaryKeyObj();
183            }
184    
185            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
186                    return _portletPreferences.getExpandoBridge();
187            }
188    
189            public void setExpandoBridgeAttributes(
190                    com.liferay.portal.service.ServiceContext serviceContext) {
191                    _portletPreferences.setExpandoBridgeAttributes(serviceContext);
192            }
193    
194            public java.lang.Object clone() {
195                    return _portletPreferences.clone();
196            }
197    
198            public int compareTo(
199                    com.liferay.portal.model.PortletPreferences portletPreferences) {
200                    return _portletPreferences.compareTo(portletPreferences);
201            }
202    
203            public int hashCode() {
204                    return _portletPreferences.hashCode();
205            }
206    
207            public com.liferay.portal.model.PortletPreferences toEscapedModel() {
208                    return _portletPreferences.toEscapedModel();
209            }
210    
211            public java.lang.String toString() {
212                    return _portletPreferences.toString();
213            }
214    
215            public java.lang.String toXmlString() {
216                    return _portletPreferences.toXmlString();
217            }
218    
219            public PortletPreferences getWrappedPortletPreferences() {
220                    return _portletPreferences;
221            }
222    
223            private PortletPreferences _portletPreferences;
224    }