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 java.lang.String getTitle(java.util.Locale locale) {
104         return _role.getTitle(locale);
105     }
106 
107     public java.lang.String getTitle(java.util.Locale locale, boolean useDefault) {
108         return _role.getTitle(locale, useDefault);
109     }
110 
111     public java.lang.String getTitle(java.lang.String languageId) {
112         return _role.getTitle(languageId);
113     }
114 
115     public java.lang.String getTitle(java.lang.String languageId,
116         boolean useDefault) {
117         return _role.getTitle(languageId, useDefault);
118     }
119 
120     public java.util.Map<java.util.Locale, String> getTitleMap() {
121         return _role.getTitleMap();
122     }
123 
124     public void setTitle(java.lang.String title) {
125         _role.setTitle(title);
126     }
127 
128     public void setTitle(java.util.Locale locale, java.lang.String title) {
129         _role.setTitle(locale, title);
130     }
131 
132     public void setTitleMap(java.util.Map<java.util.Locale, String> titleMap) {
133         _role.setTitleMap(titleMap);
134     }
135 
136     public java.lang.String getDescription() {
137         return _role.getDescription();
138     }
139 
140     public void setDescription(java.lang.String description) {
141         _role.setDescription(description);
142     }
143 
144     public int getType() {
145         return _role.getType();
146     }
147 
148     public void setType(int type) {
149         _role.setType(type);
150     }
151 
152     public java.lang.String getSubtype() {
153         return _role.getSubtype();
154     }
155 
156     public void setSubtype(java.lang.String subtype) {
157         _role.setSubtype(subtype);
158     }
159 
160     public com.liferay.portal.model.Role toEscapedModel() {
161         return _role.toEscapedModel();
162     }
163 
164     public boolean isNew() {
165         return _role.isNew();
166     }
167 
168     public boolean setNew(boolean n) {
169         return _role.setNew(n);
170     }
171 
172     public boolean isCachedModel() {
173         return _role.isCachedModel();
174     }
175 
176     public void setCachedModel(boolean cachedModel) {
177         _role.setCachedModel(cachedModel);
178     }
179 
180     public boolean isEscapedModel() {
181         return _role.isEscapedModel();
182     }
183 
184     public void setEscapedModel(boolean escapedModel) {
185         _role.setEscapedModel(escapedModel);
186     }
187 
188     public java.io.Serializable getPrimaryKeyObj() {
189         return _role.getPrimaryKeyObj();
190     }
191 
192     public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
193         return _role.getExpandoBridge();
194     }
195 
196     public void setExpandoBridgeAttributes(
197         com.liferay.portal.service.ServiceContext serviceContext) {
198         _role.setExpandoBridgeAttributes(serviceContext);
199     }
200 
201     public java.lang.Object clone() {
202         return _role.clone();
203     }
204 
205     public int compareTo(com.liferay.portal.model.Role role) {
206         return _role.compareTo(role);
207     }
208 
209     public int hashCode() {
210         return _role.hashCode();
211     }
212 
213     public java.lang.String toString() {
214         return _role.toString();
215     }
216 
217     public java.lang.String toXmlString() {
218         return _role.toXmlString();
219     }
220 
221     public java.lang.String getTypeLabel() {
222         return _role.getTypeLabel();
223     }
224 
225     public void setTitle(java.lang.String title, java.util.Locale locale) {
226         _role.setTitle(title, locale);
227     }
228 
229     public Role getWrappedRole() {
230         return _role;
231     }
232 
233     private Role _role;
234 }