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 Role}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       Role
024     * @generated
025     */
026    public class RoleWrapper implements Role {
027            public RoleWrapper(Role role) {
028                    _role = role;
029            }
030    
031            /**
032            * Gets the primary key of this role.
033            *
034            * @return the primary key of this role
035            */
036            public long getPrimaryKey() {
037                    return _role.getPrimaryKey();
038            }
039    
040            /**
041            * Sets the primary key of this role
042            *
043            * @param pk the primary key of this role
044            */
045            public void setPrimaryKey(long pk) {
046                    _role.setPrimaryKey(pk);
047            }
048    
049            /**
050            * Gets the role id of this role.
051            *
052            * @return the role id of this role
053            */
054            public long getRoleId() {
055                    return _role.getRoleId();
056            }
057    
058            /**
059            * Sets the role id of this role.
060            *
061            * @param roleId the role id of this role
062            */
063            public void setRoleId(long roleId) {
064                    _role.setRoleId(roleId);
065            }
066    
067            /**
068            * Gets the company id of this role.
069            *
070            * @return the company id of this role
071            */
072            public long getCompanyId() {
073                    return _role.getCompanyId();
074            }
075    
076            /**
077            * Sets the company id of this role.
078            *
079            * @param companyId the company id of this role
080            */
081            public void setCompanyId(long companyId) {
082                    _role.setCompanyId(companyId);
083            }
084    
085            /**
086            * Gets the class name of the model instance this role is polymorphically associated with.
087            *
088            * @return the class name of the model instance this role is polymorphically associated with
089            */
090            public java.lang.String getClassName() {
091                    return _role.getClassName();
092            }
093    
094            /**
095            * Gets the class name id of this role.
096            *
097            * @return the class name id of this role
098            */
099            public long getClassNameId() {
100                    return _role.getClassNameId();
101            }
102    
103            /**
104            * Sets the class name id of this role.
105            *
106            * @param classNameId the class name id of this role
107            */
108            public void setClassNameId(long classNameId) {
109                    _role.setClassNameId(classNameId);
110            }
111    
112            /**
113            * Gets the class p k of this role.
114            *
115            * @return the class p k of this role
116            */
117            public long getClassPK() {
118                    return _role.getClassPK();
119            }
120    
121            /**
122            * Sets the class p k of this role.
123            *
124            * @param classPK the class p k of this role
125            */
126            public void setClassPK(long classPK) {
127                    _role.setClassPK(classPK);
128            }
129    
130            /**
131            * Gets the name of this role.
132            *
133            * @return the name of this role
134            */
135            public java.lang.String getName() {
136                    return _role.getName();
137            }
138    
139            /**
140            * Sets the name of this role.
141            *
142            * @param name the name of this role
143            */
144            public void setName(java.lang.String name) {
145                    _role.setName(name);
146            }
147    
148            /**
149            * Gets the title of this role.
150            *
151            * @return the title of this role
152            */
153            public java.lang.String getTitle() {
154                    return _role.getTitle();
155            }
156    
157            /**
158            * Gets the localized title of this role. Uses the default language if no localization exists for the requested language.
159            *
160            * @param locale the locale to get the localized title for
161            * @return the localized title of this role
162            */
163            public java.lang.String getTitle(java.util.Locale locale) {
164                    return _role.getTitle(locale);
165            }
166    
167            /**
168            * Gets the localized title of this role, optionally using the default language if no localization exists for the requested language.
169            *
170            * @param locale the local to get the localized title for
171            * @param useDefault whether to use the default language if no localization exists for the requested language
172            * @return the localized title of this role. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
173            */
174            public java.lang.String getTitle(java.util.Locale locale, boolean useDefault) {
175                    return _role.getTitle(locale, useDefault);
176            }
177    
178            /**
179            * Gets the localized title of this role. Uses the default language if no localization exists for the requested language.
180            *
181            * @param languageId the id of the language to get the localized title for
182            * @return the localized title of this role
183            */
184            public java.lang.String getTitle(java.lang.String languageId) {
185                    return _role.getTitle(languageId);
186            }
187    
188            /**
189            * Gets the localized title of this role, optionally using the default language if no localization exists for the requested language.
190            *
191            * @param languageId the id of the language to get the localized title for
192            * @param useDefault whether to use the default language if no localization exists for the requested language
193            * @return the localized title of this role
194            */
195            public java.lang.String getTitle(java.lang.String languageId,
196                    boolean useDefault) {
197                    return _role.getTitle(languageId, useDefault);
198            }
199    
200            /**
201            * Gets a map of the locales and localized title of this role.
202            *
203            * @return the locales and localized title
204            */
205            public java.util.Map<java.util.Locale, java.lang.String> getTitleMap() {
206                    return _role.getTitleMap();
207            }
208    
209            /**
210            * Sets the title of this role.
211            *
212            * @param title the title of this role
213            */
214            public void setTitle(java.lang.String title) {
215                    _role.setTitle(title);
216            }
217    
218            /**
219            * Sets the localized title of this role.
220            *
221            * @param locale the locale to set the localized title for
222            * @param title the localized title of this role
223            */
224            public void setTitle(java.util.Locale locale, java.lang.String title) {
225                    _role.setTitle(locale, title);
226            }
227    
228            /**
229            * Sets the localized titles of this role from the map of locales and localized titles.
230            *
231            * @param titleMap the locales and localized titles of this role
232            */
233            public void setTitleMap(
234                    java.util.Map<java.util.Locale, java.lang.String> titleMap) {
235                    _role.setTitleMap(titleMap);
236            }
237    
238            /**
239            * Gets the description of this role.
240            *
241            * @return the description of this role
242            */
243            public java.lang.String getDescription() {
244                    return _role.getDescription();
245            }
246    
247            /**
248            * Sets the description of this role.
249            *
250            * @param description the description of this role
251            */
252            public void setDescription(java.lang.String description) {
253                    _role.setDescription(description);
254            }
255    
256            /**
257            * Gets the type of this role.
258            *
259            * @return the type of this role
260            */
261            public int getType() {
262                    return _role.getType();
263            }
264    
265            /**
266            * Sets the type of this role.
267            *
268            * @param type the type of this role
269            */
270            public void setType(int type) {
271                    _role.setType(type);
272            }
273    
274            /**
275            * Gets the subtype of this role.
276            *
277            * @return the subtype of this role
278            */
279            public java.lang.String getSubtype() {
280                    return _role.getSubtype();
281            }
282    
283            /**
284            * Sets the subtype of this role.
285            *
286            * @param subtype the subtype of this role
287            */
288            public void setSubtype(java.lang.String subtype) {
289                    _role.setSubtype(subtype);
290            }
291    
292            public boolean isNew() {
293                    return _role.isNew();
294            }
295    
296            public void setNew(boolean n) {
297                    _role.setNew(n);
298            }
299    
300            public boolean isCachedModel() {
301                    return _role.isCachedModel();
302            }
303    
304            public void setCachedModel(boolean cachedModel) {
305                    _role.setCachedModel(cachedModel);
306            }
307    
308            public boolean isEscapedModel() {
309                    return _role.isEscapedModel();
310            }
311    
312            public void setEscapedModel(boolean escapedModel) {
313                    _role.setEscapedModel(escapedModel);
314            }
315    
316            public java.io.Serializable getPrimaryKeyObj() {
317                    return _role.getPrimaryKeyObj();
318            }
319    
320            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
321                    return _role.getExpandoBridge();
322            }
323    
324            public void setExpandoBridgeAttributes(
325                    com.liferay.portal.service.ServiceContext serviceContext) {
326                    _role.setExpandoBridgeAttributes(serviceContext);
327            }
328    
329            public java.lang.Object clone() {
330                    return _role.clone();
331            }
332    
333            public int compareTo(com.liferay.portal.model.Role role) {
334                    return _role.compareTo(role);
335            }
336    
337            public int hashCode() {
338                    return _role.hashCode();
339            }
340    
341            public com.liferay.portal.model.Role toEscapedModel() {
342                    return _role.toEscapedModel();
343            }
344    
345            public java.lang.String toString() {
346                    return _role.toString();
347            }
348    
349            public java.lang.String toXmlString() {
350                    return _role.toXmlString();
351            }
352    
353            public java.lang.String getDescriptiveName()
354                    throws com.liferay.portal.kernel.exception.PortalException,
355                            com.liferay.portal.kernel.exception.SystemException {
356                    return _role.getDescriptiveName();
357            }
358    
359            public java.lang.String getTypeLabel() {
360                    return _role.getTypeLabel();
361            }
362    
363            public boolean isTeam() {
364                    return _role.isTeam();
365            }
366    
367            public Role getWrappedRole() {
368                    return _role;
369            }
370    
371            private Role _role;
372    }