001
014
015 package com.liferay.portal.model;
016
017 import java.util.HashMap;
018 import java.util.Map;
019
020
029 public class UserGroupRoleWrapper implements UserGroupRole,
030 ModelWrapper<UserGroupRole> {
031 public UserGroupRoleWrapper(UserGroupRole userGroupRole) {
032 _userGroupRole = userGroupRole;
033 }
034
035 public Class<?> getModelClass() {
036 return UserGroupRole.class;
037 }
038
039 public String getModelClassName() {
040 return UserGroupRole.class.getName();
041 }
042
043 public Map<String, Object> getModelAttributes() {
044 Map<String, Object> attributes = new HashMap<String, Object>();
045
046 attributes.put("userId", getUserId());
047 attributes.put("groupId", getGroupId());
048 attributes.put("roleId", getRoleId());
049
050 return attributes;
051 }
052
053 public void setModelAttributes(Map<String, Object> attributes) {
054 Long userId = (Long)attributes.get("userId");
055
056 if (userId != null) {
057 setUserId(userId);
058 }
059
060 Long groupId = (Long)attributes.get("groupId");
061
062 if (groupId != null) {
063 setGroupId(groupId);
064 }
065
066 Long roleId = (Long)attributes.get("roleId");
067
068 if (roleId != null) {
069 setRoleId(roleId);
070 }
071 }
072
073
078 public com.liferay.portal.service.persistence.UserGroupRolePK getPrimaryKey() {
079 return _userGroupRole.getPrimaryKey();
080 }
081
082
087 public void setPrimaryKey(
088 com.liferay.portal.service.persistence.UserGroupRolePK primaryKey) {
089 _userGroupRole.setPrimaryKey(primaryKey);
090 }
091
092
097 public long getUserId() {
098 return _userGroupRole.getUserId();
099 }
100
101
106 public void setUserId(long userId) {
107 _userGroupRole.setUserId(userId);
108 }
109
110
116 public java.lang.String getUserUuid()
117 throws com.liferay.portal.kernel.exception.SystemException {
118 return _userGroupRole.getUserUuid();
119 }
120
121
126 public void setUserUuid(java.lang.String userUuid) {
127 _userGroupRole.setUserUuid(userUuid);
128 }
129
130
135 public long getGroupId() {
136 return _userGroupRole.getGroupId();
137 }
138
139
144 public void setGroupId(long groupId) {
145 _userGroupRole.setGroupId(groupId);
146 }
147
148
153 public long getRoleId() {
154 return _userGroupRole.getRoleId();
155 }
156
157
162 public void setRoleId(long roleId) {
163 _userGroupRole.setRoleId(roleId);
164 }
165
166 public boolean isNew() {
167 return _userGroupRole.isNew();
168 }
169
170 public void setNew(boolean n) {
171 _userGroupRole.setNew(n);
172 }
173
174 public boolean isCachedModel() {
175 return _userGroupRole.isCachedModel();
176 }
177
178 public void setCachedModel(boolean cachedModel) {
179 _userGroupRole.setCachedModel(cachedModel);
180 }
181
182 public boolean isEscapedModel() {
183 return _userGroupRole.isEscapedModel();
184 }
185
186 public java.io.Serializable getPrimaryKeyObj() {
187 return _userGroupRole.getPrimaryKeyObj();
188 }
189
190 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
191 _userGroupRole.setPrimaryKeyObj(primaryKeyObj);
192 }
193
194 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
195 return _userGroupRole.getExpandoBridge();
196 }
197
198 public void setExpandoBridgeAttributes(
199 com.liferay.portal.model.BaseModel<?> baseModel) {
200 _userGroupRole.setExpandoBridgeAttributes(baseModel);
201 }
202
203 public void setExpandoBridgeAttributes(
204 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
205 _userGroupRole.setExpandoBridgeAttributes(expandoBridge);
206 }
207
208 public void setExpandoBridgeAttributes(
209 com.liferay.portal.service.ServiceContext serviceContext) {
210 _userGroupRole.setExpandoBridgeAttributes(serviceContext);
211 }
212
213 @Override
214 public java.lang.Object clone() {
215 return new UserGroupRoleWrapper((UserGroupRole)_userGroupRole.clone());
216 }
217
218 public int compareTo(com.liferay.portal.model.UserGroupRole userGroupRole) {
219 return _userGroupRole.compareTo(userGroupRole);
220 }
221
222 @Override
223 public int hashCode() {
224 return _userGroupRole.hashCode();
225 }
226
227 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.UserGroupRole> toCacheModel() {
228 return _userGroupRole.toCacheModel();
229 }
230
231 public com.liferay.portal.model.UserGroupRole toEscapedModel() {
232 return new UserGroupRoleWrapper(_userGroupRole.toEscapedModel());
233 }
234
235 public com.liferay.portal.model.UserGroupRole toUnescapedModel() {
236 return new UserGroupRoleWrapper(_userGroupRole.toUnescapedModel());
237 }
238
239 @Override
240 public java.lang.String toString() {
241 return _userGroupRole.toString();
242 }
243
244 public java.lang.String toXmlString() {
245 return _userGroupRole.toXmlString();
246 }
247
248 public void persist()
249 throws com.liferay.portal.kernel.exception.SystemException {
250 _userGroupRole.persist();
251 }
252
253 public com.liferay.portal.model.Group getGroup()
254 throws com.liferay.portal.kernel.exception.PortalException,
255 com.liferay.portal.kernel.exception.SystemException {
256 return _userGroupRole.getGroup();
257 }
258
259 public com.liferay.portal.model.Role getRole()
260 throws com.liferay.portal.kernel.exception.PortalException,
261 com.liferay.portal.kernel.exception.SystemException {
262 return _userGroupRole.getRole();
263 }
264
265 public com.liferay.portal.model.User getUser()
266 throws com.liferay.portal.kernel.exception.PortalException,
267 com.liferay.portal.kernel.exception.SystemException {
268 return _userGroupRole.getUser();
269 }
270
271
274 public UserGroupRole getWrappedUserGroupRole() {
275 return _userGroupRole;
276 }
277
278 public UserGroupRole getWrappedModel() {
279 return _userGroupRole;
280 }
281
282 public void resetOriginalValues() {
283 _userGroupRole.resetOriginalValues();
284 }
285
286 private UserGroupRole _userGroupRole;
287 }