001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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            public OrgGroupPermissionWrapper(OrgGroupPermission orgGroupPermission) {
028                    _orgGroupPermission = orgGroupPermission;
029            }
030    
031            public Class<?> getModelClass() {
032                    return OrgGroupPermission.class;
033            }
034    
035            public String getModelClassName() {
036                    return OrgGroupPermission.class.getName();
037            }
038    
039            /**
040            * Gets the primary key of this org group permission.
041            *
042            * @return the primary key of this org group permission
043            */
044            public com.liferay.portal.service.persistence.OrgGroupPermissionPK getPrimaryKey() {
045                    return _orgGroupPermission.getPrimaryKey();
046            }
047    
048            /**
049            * Sets the primary key of this org group permission
050            *
051            * @param primaryKey the primary key of this org group permission
052            */
053            public void setPrimaryKey(
054                    com.liferay.portal.service.persistence.OrgGroupPermissionPK primaryKey) {
055                    _orgGroupPermission.setPrimaryKey(primaryKey);
056            }
057    
058            /**
059            * Gets the organization ID of this org group permission.
060            *
061            * @return the organization ID of this org group permission
062            */
063            public long getOrganizationId() {
064                    return _orgGroupPermission.getOrganizationId();
065            }
066    
067            /**
068            * Sets the organization ID of this org group permission.
069            *
070            * @param organizationId the organization ID of this org group permission
071            */
072            public void setOrganizationId(long organizationId) {
073                    _orgGroupPermission.setOrganizationId(organizationId);
074            }
075    
076            /**
077            * Gets the group ID of this org group permission.
078            *
079            * @return the group ID of this org group permission
080            */
081            public long getGroupId() {
082                    return _orgGroupPermission.getGroupId();
083            }
084    
085            /**
086            * Sets the group ID of this org group permission.
087            *
088            * @param groupId the group ID of this org group permission
089            */
090            public void setGroupId(long groupId) {
091                    _orgGroupPermission.setGroupId(groupId);
092            }
093    
094            /**
095            * Gets the permission ID of this org group permission.
096            *
097            * @return the permission ID of this org group permission
098            */
099            public long getPermissionId() {
100                    return _orgGroupPermission.getPermissionId();
101            }
102    
103            /**
104            * Sets the permission ID of this org group permission.
105            *
106            * @param permissionId the permission ID of this org group permission
107            */
108            public void setPermissionId(long permissionId) {
109                    _orgGroupPermission.setPermissionId(permissionId);
110            }
111    
112            public boolean isNew() {
113                    return _orgGroupPermission.isNew();
114            }
115    
116            public void setNew(boolean n) {
117                    _orgGroupPermission.setNew(n);
118            }
119    
120            public boolean isCachedModel() {
121                    return _orgGroupPermission.isCachedModel();
122            }
123    
124            public void setCachedModel(boolean cachedModel) {
125                    _orgGroupPermission.setCachedModel(cachedModel);
126            }
127    
128            public boolean isEscapedModel() {
129                    return _orgGroupPermission.isEscapedModel();
130            }
131    
132            public void setEscapedModel(boolean escapedModel) {
133                    _orgGroupPermission.setEscapedModel(escapedModel);
134            }
135    
136            public java.io.Serializable getPrimaryKeyObj() {
137                    return _orgGroupPermission.getPrimaryKeyObj();
138            }
139    
140            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
141                    _orgGroupPermission.setPrimaryKeyObj(primaryKeyObj);
142            }
143    
144            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
145                    return _orgGroupPermission.getExpandoBridge();
146            }
147    
148            public void setExpandoBridgeAttributes(
149                    com.liferay.portal.service.ServiceContext serviceContext) {
150                    _orgGroupPermission.setExpandoBridgeAttributes(serviceContext);
151            }
152    
153            @Override
154            public java.lang.Object clone() {
155                    return new OrgGroupPermissionWrapper((OrgGroupPermission)_orgGroupPermission.clone());
156            }
157    
158            public int compareTo(
159                    com.liferay.portal.model.OrgGroupPermission orgGroupPermission) {
160                    return _orgGroupPermission.compareTo(orgGroupPermission);
161            }
162    
163            @Override
164            public int hashCode() {
165                    return _orgGroupPermission.hashCode();
166            }
167    
168            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.OrgGroupPermission> toCacheModel() {
169                    return _orgGroupPermission.toCacheModel();
170            }
171    
172            public com.liferay.portal.model.OrgGroupPermission toEscapedModel() {
173                    return new OrgGroupPermissionWrapper(_orgGroupPermission.toEscapedModel());
174            }
175    
176            @Override
177            public java.lang.String toString() {
178                    return _orgGroupPermission.toString();
179            }
180    
181            public java.lang.String toXmlString() {
182                    return _orgGroupPermission.toXmlString();
183            }
184    
185            public boolean containsGroup(
186                    java.util.List<com.liferay.portal.model.Group> groups) {
187                    return _orgGroupPermission.containsGroup(groups);
188            }
189    
190            public boolean containsOrganization(
191                    java.util.List<com.liferay.portal.model.Organization> organizations) {
192                    return _orgGroupPermission.containsOrganization(organizations);
193            }
194    
195            public OrgGroupPermission getWrappedOrgGroupPermission() {
196                    return _orgGroupPermission;
197            }
198    
199            public void resetOriginalValues() {
200                    _orgGroupPermission.resetOriginalValues();
201            }
202    
203            private OrgGroupPermission _orgGroupPermission;
204    }