001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.model;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link OrgGroupPermission}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       OrgGroupPermission
024     * @generated
025     */
026    public class OrgGroupPermissionWrapper implements OrgGroupPermission,
027            ModelWrapper<OrgGroupPermission> {
028            public OrgGroupPermissionWrapper(OrgGroupPermission orgGroupPermission) {
029                    _orgGroupPermission = orgGroupPermission;
030            }
031    
032            public Class<?> getModelClass() {
033                    return OrgGroupPermission.class;
034            }
035    
036            public String getModelClassName() {
037                    return OrgGroupPermission.class.getName();
038            }
039    
040            /**
041            * Returns the primary key of this org group permission.
042            *
043            * @return the primary key of this org group permission
044            */
045            public com.liferay.portal.service.persistence.OrgGroupPermissionPK getPrimaryKey() {
046                    return _orgGroupPermission.getPrimaryKey();
047            }
048    
049            /**
050            * Sets the primary key of this org group permission.
051            *
052            * @param primaryKey the primary key of this org group permission
053            */
054            public void setPrimaryKey(
055                    com.liferay.portal.service.persistence.OrgGroupPermissionPK primaryKey) {
056                    _orgGroupPermission.setPrimaryKey(primaryKey);
057            }
058    
059            /**
060            * Returns the organization ID of this org group permission.
061            *
062            * @return the organization ID of this org group permission
063            */
064            public long getOrganizationId() {
065                    return _orgGroupPermission.getOrganizationId();
066            }
067    
068            /**
069            * Sets the organization ID of this org group permission.
070            *
071            * @param organizationId the organization ID of this org group permission
072            */
073            public void setOrganizationId(long organizationId) {
074                    _orgGroupPermission.setOrganizationId(organizationId);
075            }
076    
077            /**
078            * Returns the group ID of this org group permission.
079            *
080            * @return the group ID of this org group permission
081            */
082            public long getGroupId() {
083                    return _orgGroupPermission.getGroupId();
084            }
085    
086            /**
087            * Sets the group ID of this org group permission.
088            *
089            * @param groupId the group ID of this org group permission
090            */
091            public void setGroupId(long groupId) {
092                    _orgGroupPermission.setGroupId(groupId);
093            }
094    
095            /**
096            * Returns the permission ID of this org group permission.
097            *
098            * @return the permission ID of this org group permission
099            */
100            public long getPermissionId() {
101                    return _orgGroupPermission.getPermissionId();
102            }
103    
104            /**
105            * Sets the permission ID of this org group permission.
106            *
107            * @param permissionId the permission ID of this org group permission
108            */
109            public void setPermissionId(long permissionId) {
110                    _orgGroupPermission.setPermissionId(permissionId);
111            }
112    
113            public boolean isNew() {
114                    return _orgGroupPermission.isNew();
115            }
116    
117            public void setNew(boolean n) {
118                    _orgGroupPermission.setNew(n);
119            }
120    
121            public boolean isCachedModel() {
122                    return _orgGroupPermission.isCachedModel();
123            }
124    
125            public void setCachedModel(boolean cachedModel) {
126                    _orgGroupPermission.setCachedModel(cachedModel);
127            }
128    
129            public boolean isEscapedModel() {
130                    return _orgGroupPermission.isEscapedModel();
131            }
132    
133            public java.io.Serializable getPrimaryKeyObj() {
134                    return _orgGroupPermission.getPrimaryKeyObj();
135            }
136    
137            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
138                    _orgGroupPermission.setPrimaryKeyObj(primaryKeyObj);
139            }
140    
141            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
142                    return _orgGroupPermission.getExpandoBridge();
143            }
144    
145            public void setExpandoBridgeAttributes(
146                    com.liferay.portal.service.ServiceContext serviceContext) {
147                    _orgGroupPermission.setExpandoBridgeAttributes(serviceContext);
148            }
149    
150            @Override
151            public java.lang.Object clone() {
152                    return new OrgGroupPermissionWrapper((OrgGroupPermission)_orgGroupPermission.clone());
153            }
154    
155            public int compareTo(
156                    com.liferay.portal.model.OrgGroupPermission orgGroupPermission) {
157                    return _orgGroupPermission.compareTo(orgGroupPermission);
158            }
159    
160            @Override
161            public int hashCode() {
162                    return _orgGroupPermission.hashCode();
163            }
164    
165            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.OrgGroupPermission> toCacheModel() {
166                    return _orgGroupPermission.toCacheModel();
167            }
168    
169            public com.liferay.portal.model.OrgGroupPermission toEscapedModel() {
170                    return new OrgGroupPermissionWrapper(_orgGroupPermission.toEscapedModel());
171            }
172    
173            @Override
174            public java.lang.String toString() {
175                    return _orgGroupPermission.toString();
176            }
177    
178            public java.lang.String toXmlString() {
179                    return _orgGroupPermission.toXmlString();
180            }
181    
182            public boolean containsGroup(
183                    java.util.List<com.liferay.portal.model.Group> groups) {
184                    return _orgGroupPermission.containsGroup(groups);
185            }
186    
187            public boolean containsOrganization(
188                    java.util.List<com.liferay.portal.model.Organization> organizations) {
189                    return _orgGroupPermission.containsOrganization(organizations);
190            }
191    
192            /**
193             * @deprecated Renamed to {@link #getWrappedModel}
194             */
195            public OrgGroupPermission getWrappedOrgGroupPermission() {
196                    return _orgGroupPermission;
197            }
198    
199            public OrgGroupPermission getWrappedModel() {
200                    return _orgGroupPermission;
201            }
202    
203            public void resetOriginalValues() {
204                    _orgGroupPermission.resetOriginalValues();
205            }
206    
207            private OrgGroupPermission _orgGroupPermission;
208    }