001    /**
002     * Copyright (c) 2000-2011 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            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            * Returns 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            * Returns 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            * Returns 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            * Returns 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 java.io.Serializable getPrimaryKeyObj() {
133                    return _orgGroupPermission.getPrimaryKeyObj();
134            }
135    
136            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
137                    _orgGroupPermission.setPrimaryKeyObj(primaryKeyObj);
138            }
139    
140            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
141                    return _orgGroupPermission.getExpandoBridge();
142            }
143    
144            public void setExpandoBridgeAttributes(
145                    com.liferay.portal.service.ServiceContext serviceContext) {
146                    _orgGroupPermission.setExpandoBridgeAttributes(serviceContext);
147            }
148    
149            @Override
150            public java.lang.Object clone() {
151                    return new OrgGroupPermissionWrapper((OrgGroupPermission)_orgGroupPermission.clone());
152            }
153    
154            public int compareTo(
155                    com.liferay.portal.model.OrgGroupPermission orgGroupPermission) {
156                    return _orgGroupPermission.compareTo(orgGroupPermission);
157            }
158    
159            @Override
160            public int hashCode() {
161                    return _orgGroupPermission.hashCode();
162            }
163    
164            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.OrgGroupPermission> toCacheModel() {
165                    return _orgGroupPermission.toCacheModel();
166            }
167    
168            public com.liferay.portal.model.OrgGroupPermission toEscapedModel() {
169                    return new OrgGroupPermissionWrapper(_orgGroupPermission.toEscapedModel());
170            }
171    
172            @Override
173            public java.lang.String toString() {
174                    return _orgGroupPermission.toString();
175            }
176    
177            public java.lang.String toXmlString() {
178                    return _orgGroupPermission.toXmlString();
179            }
180    
181            public boolean containsGroup(
182                    java.util.List<com.liferay.portal.model.Group> groups) {
183                    return _orgGroupPermission.containsGroup(groups);
184            }
185    
186            public boolean containsOrganization(
187                    java.util.List<com.liferay.portal.model.Organization> organizations) {
188                    return _orgGroupPermission.containsOrganization(organizations);
189            }
190    
191            public OrgGroupPermission getWrappedOrgGroupPermission() {
192                    return _orgGroupPermission;
193            }
194    
195            public void resetOriginalValues() {
196                    _orgGroupPermission.resetOriginalValues();
197            }
198    
199            private OrgGroupPermission _orgGroupPermission;
200    }