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.service.ServiceContext serviceContext) {
200 _userGroupRole.setExpandoBridgeAttributes(serviceContext);
201 }
202
203 @Override
204 public java.lang.Object clone() {
205 return new UserGroupRoleWrapper((UserGroupRole)_userGroupRole.clone());
206 }
207
208 public int compareTo(com.liferay.portal.model.UserGroupRole userGroupRole) {
209 return _userGroupRole.compareTo(userGroupRole);
210 }
211
212 @Override
213 public int hashCode() {
214 return _userGroupRole.hashCode();
215 }
216
217 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.UserGroupRole> toCacheModel() {
218 return _userGroupRole.toCacheModel();
219 }
220
221 public com.liferay.portal.model.UserGroupRole toEscapedModel() {
222 return new UserGroupRoleWrapper(_userGroupRole.toEscapedModel());
223 }
224
225 public com.liferay.portal.model.UserGroupRole toUnescapedModel() {
226 return new UserGroupRoleWrapper(_userGroupRole.toUnescapedModel());
227 }
228
229 @Override
230 public java.lang.String toString() {
231 return _userGroupRole.toString();
232 }
233
234 public java.lang.String toXmlString() {
235 return _userGroupRole.toXmlString();
236 }
237
238 public void persist()
239 throws com.liferay.portal.kernel.exception.SystemException {
240 _userGroupRole.persist();
241 }
242
243 public com.liferay.portal.model.Group getGroup()
244 throws com.liferay.portal.kernel.exception.PortalException,
245 com.liferay.portal.kernel.exception.SystemException {
246 return _userGroupRole.getGroup();
247 }
248
249 public com.liferay.portal.model.Role getRole()
250 throws com.liferay.portal.kernel.exception.PortalException,
251 com.liferay.portal.kernel.exception.SystemException {
252 return _userGroupRole.getRole();
253 }
254
255 public com.liferay.portal.model.User getUser()
256 throws com.liferay.portal.kernel.exception.PortalException,
257 com.liferay.portal.kernel.exception.SystemException {
258 return _userGroupRole.getUser();
259 }
260
261
264 public UserGroupRole getWrappedUserGroupRole() {
265 return _userGroupRole;
266 }
267
268 public UserGroupRole getWrappedModel() {
269 return _userGroupRole;
270 }
271
272 public void resetOriginalValues() {
273 _userGroupRole.resetOriginalValues();
274 }
275
276 private UserGroupRole _userGroupRole;
277 }