1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.model;
24  
25  
26  /**
27   * <a href="RoleSoap.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class is a wrapper for {@link Role}.
36   * </p>
37   *
38   * @author    Brian Wing Shun Chan
39   * @see       Role
40   * @generated
41   */
42  public class RoleWrapper implements Role {
43      public RoleWrapper(Role role) {
44          _role = role;
45      }
46  
47      public long getPrimaryKey() {
48          return _role.getPrimaryKey();
49      }
50  
51      public void setPrimaryKey(long pk) {
52          _role.setPrimaryKey(pk);
53      }
54  
55      public long getRoleId() {
56          return _role.getRoleId();
57      }
58  
59      public void setRoleId(long roleId) {
60          _role.setRoleId(roleId);
61      }
62  
63      public long getCompanyId() {
64          return _role.getCompanyId();
65      }
66  
67      public void setCompanyId(long companyId) {
68          _role.setCompanyId(companyId);
69      }
70  
71      public java.lang.String getClassName() {
72          return _role.getClassName();
73      }
74  
75      public long getClassNameId() {
76          return _role.getClassNameId();
77      }
78  
79      public void setClassNameId(long classNameId) {
80          _role.setClassNameId(classNameId);
81      }
82  
83      public long getClassPK() {
84          return _role.getClassPK();
85      }
86  
87      public void setClassPK(long classPK) {
88          _role.setClassPK(classPK);
89      }
90  
91      public java.lang.String getName() {
92          return _role.getName();
93      }
94  
95      public void setName(java.lang.String name) {
96          _role.setName(name);
97      }
98  
99      public java.lang.String getTitle() {
100         return _role.getTitle();
101     }
102 
103     public void setTitle(java.lang.String title) {
104         _role.setTitle(title);
105     }
106 
107     public java.lang.String getDescription() {
108         return _role.getDescription();
109     }
110 
111     public void setDescription(java.lang.String description) {
112         _role.setDescription(description);
113     }
114 
115     public int getType() {
116         return _role.getType();
117     }
118 
119     public void setType(int type) {
120         _role.setType(type);
121     }
122 
123     public java.lang.String getSubtype() {
124         return _role.getSubtype();
125     }
126 
127     public void setSubtype(java.lang.String subtype) {
128         _role.setSubtype(subtype);
129     }
130 
131     public com.liferay.portal.model.Role toEscapedModel() {
132         return _role.toEscapedModel();
133     }
134 
135     public boolean isNew() {
136         return _role.isNew();
137     }
138 
139     public boolean setNew(boolean n) {
140         return _role.setNew(n);
141     }
142 
143     public boolean isCachedModel() {
144         return _role.isCachedModel();
145     }
146 
147     public void setCachedModel(boolean cachedModel) {
148         _role.setCachedModel(cachedModel);
149     }
150 
151     public boolean isEscapedModel() {
152         return _role.isEscapedModel();
153     }
154 
155     public void setEscapedModel(boolean escapedModel) {
156         _role.setEscapedModel(escapedModel);
157     }
158 
159     public java.io.Serializable getPrimaryKeyObj() {
160         return _role.getPrimaryKeyObj();
161     }
162 
163     public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
164         return _role.getExpandoBridge();
165     }
166 
167     public void setExpandoBridgeAttributes(
168         com.liferay.portal.service.ServiceContext serviceContext) {
169         _role.setExpandoBridgeAttributes(serviceContext);
170     }
171 
172     public java.lang.Object clone() {
173         return _role.clone();
174     }
175 
176     public int compareTo(com.liferay.portal.model.Role role) {
177         return _role.compareTo(role);
178     }
179 
180     public int hashCode() {
181         return _role.hashCode();
182     }
183 
184     public java.lang.String toString() {
185         return _role.toString();
186     }
187 
188     public java.lang.String toXmlString() {
189         return _role.toXmlString();
190     }
191 
192     public java.lang.String getTitle(java.util.Locale locale) {
193         return _role.getTitle(locale);
194     }
195 
196     public java.lang.String getTitle(java.util.Locale locale, boolean useDefault) {
197         return _role.getTitle(locale, useDefault);
198     }
199 
200     public java.lang.String getTitle(java.lang.String localeLanguageId) {
201         return _role.getTitle(localeLanguageId);
202     }
203 
204     public java.lang.String getTitle(java.lang.String localeLanguageId,
205         boolean useDefault) {
206         return _role.getTitle(localeLanguageId, useDefault);
207     }
208 
209     public java.lang.String getTypeLabel() {
210         return _role.getTypeLabel();
211     }
212 
213     public void setTitle(java.lang.String title, java.util.Locale locale) {
214         _role.setTitle(title, locale);
215     }
216 
217     public Role getWrappedRole() {
218         return _role;
219     }
220 
221     private Role _role;
222 }