001
014
015 package com.liferay.portal.model;
016
017 import java.util.HashMap;
018 import java.util.Map;
019
020
029 public class OrgGroupRoleWrapper implements OrgGroupRole,
030 ModelWrapper<OrgGroupRole> {
031 public OrgGroupRoleWrapper(OrgGroupRole orgGroupRole) {
032 _orgGroupRole = orgGroupRole;
033 }
034
035 public Class<?> getModelClass() {
036 return OrgGroupRole.class;
037 }
038
039 public String getModelClassName() {
040 return OrgGroupRole.class.getName();
041 }
042
043 public Map<String, Object> getModelAttributes() {
044 Map<String, Object> attributes = new HashMap<String, Object>();
045
046 attributes.put("organizationId", getOrganizationId());
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 organizationId = (Long)attributes.get("organizationId");
055
056 if (organizationId != null) {
057 setOrganizationId(organizationId);
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.OrgGroupRolePK getPrimaryKey() {
079 return _orgGroupRole.getPrimaryKey();
080 }
081
082
087 public void setPrimaryKey(
088 com.liferay.portal.service.persistence.OrgGroupRolePK primaryKey) {
089 _orgGroupRole.setPrimaryKey(primaryKey);
090 }
091
092
097 public long getOrganizationId() {
098 return _orgGroupRole.getOrganizationId();
099 }
100
101
106 public void setOrganizationId(long organizationId) {
107 _orgGroupRole.setOrganizationId(organizationId);
108 }
109
110
115 public long getGroupId() {
116 return _orgGroupRole.getGroupId();
117 }
118
119
124 public void setGroupId(long groupId) {
125 _orgGroupRole.setGroupId(groupId);
126 }
127
128
133 public long getRoleId() {
134 return _orgGroupRole.getRoleId();
135 }
136
137
142 public void setRoleId(long roleId) {
143 _orgGroupRole.setRoleId(roleId);
144 }
145
146 public boolean isNew() {
147 return _orgGroupRole.isNew();
148 }
149
150 public void setNew(boolean n) {
151 _orgGroupRole.setNew(n);
152 }
153
154 public boolean isCachedModel() {
155 return _orgGroupRole.isCachedModel();
156 }
157
158 public void setCachedModel(boolean cachedModel) {
159 _orgGroupRole.setCachedModel(cachedModel);
160 }
161
162 public boolean isEscapedModel() {
163 return _orgGroupRole.isEscapedModel();
164 }
165
166 public java.io.Serializable getPrimaryKeyObj() {
167 return _orgGroupRole.getPrimaryKeyObj();
168 }
169
170 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
171 _orgGroupRole.setPrimaryKeyObj(primaryKeyObj);
172 }
173
174 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
175 return _orgGroupRole.getExpandoBridge();
176 }
177
178 public void setExpandoBridgeAttributes(
179 com.liferay.portal.model.BaseModel<?> baseModel) {
180 _orgGroupRole.setExpandoBridgeAttributes(baseModel);
181 }
182
183 public void setExpandoBridgeAttributes(
184 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
185 _orgGroupRole.setExpandoBridgeAttributes(expandoBridge);
186 }
187
188 public void setExpandoBridgeAttributes(
189 com.liferay.portal.service.ServiceContext serviceContext) {
190 _orgGroupRole.setExpandoBridgeAttributes(serviceContext);
191 }
192
193 @Override
194 public java.lang.Object clone() {
195 return new OrgGroupRoleWrapper((OrgGroupRole)_orgGroupRole.clone());
196 }
197
198 public int compareTo(com.liferay.portal.model.OrgGroupRole orgGroupRole) {
199 return _orgGroupRole.compareTo(orgGroupRole);
200 }
201
202 @Override
203 public int hashCode() {
204 return _orgGroupRole.hashCode();
205 }
206
207 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.OrgGroupRole> toCacheModel() {
208 return _orgGroupRole.toCacheModel();
209 }
210
211 public com.liferay.portal.model.OrgGroupRole toEscapedModel() {
212 return new OrgGroupRoleWrapper(_orgGroupRole.toEscapedModel());
213 }
214
215 public com.liferay.portal.model.OrgGroupRole toUnescapedModel() {
216 return new OrgGroupRoleWrapper(_orgGroupRole.toUnescapedModel());
217 }
218
219 @Override
220 public java.lang.String toString() {
221 return _orgGroupRole.toString();
222 }
223
224 public java.lang.String toXmlString() {
225 return _orgGroupRole.toXmlString();
226 }
227
228 public boolean containsGroup(
229 java.util.List<com.liferay.portal.model.Group> groups) {
230 return _orgGroupRole.containsGroup(groups);
231 }
232
233 public boolean containsOrganization(
234 java.util.List<com.liferay.portal.model.Organization> organizations) {
235 return _orgGroupRole.containsOrganization(organizations);
236 }
237
238
241 public OrgGroupRole getWrappedOrgGroupRole() {
242 return _orgGroupRole;
243 }
244
245 public OrgGroupRole getWrappedModel() {
246 return _orgGroupRole;
247 }
248
249 public void resetOriginalValues() {
250 _orgGroupRole.resetOriginalValues();
251 }
252
253 private OrgGroupRole _orgGroupRole;
254 }