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 OrgGroupRole}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       OrgGroupRole
024     * @generated
025     */
026    public class OrgGroupRoleWrapper implements OrgGroupRole {
027            public OrgGroupRoleWrapper(OrgGroupRole orgGroupRole) {
028                    _orgGroupRole = orgGroupRole;
029            }
030    
031            public Class<?> getModelClass() {
032                    return OrgGroupRole.class;
033            }
034    
035            public String getModelClassName() {
036                    return OrgGroupRole.class.getName();
037            }
038    
039            /**
040            * Gets the primary key of this org group role.
041            *
042            * @return the primary key of this org group role
043            */
044            public com.liferay.portal.service.persistence.OrgGroupRolePK getPrimaryKey() {
045                    return _orgGroupRole.getPrimaryKey();
046            }
047    
048            /**
049            * Sets the primary key of this org group role
050            *
051            * @param primaryKey the primary key of this org group role
052            */
053            public void setPrimaryKey(
054                    com.liferay.portal.service.persistence.OrgGroupRolePK primaryKey) {
055                    _orgGroupRole.setPrimaryKey(primaryKey);
056            }
057    
058            /**
059            * Gets the organization ID of this org group role.
060            *
061            * @return the organization ID of this org group role
062            */
063            public long getOrganizationId() {
064                    return _orgGroupRole.getOrganizationId();
065            }
066    
067            /**
068            * Sets the organization ID of this org group role.
069            *
070            * @param organizationId the organization ID of this org group role
071            */
072            public void setOrganizationId(long organizationId) {
073                    _orgGroupRole.setOrganizationId(organizationId);
074            }
075    
076            /**
077            * Gets the group ID of this org group role.
078            *
079            * @return the group ID of this org group role
080            */
081            public long getGroupId() {
082                    return _orgGroupRole.getGroupId();
083            }
084    
085            /**
086            * Sets the group ID of this org group role.
087            *
088            * @param groupId the group ID of this org group role
089            */
090            public void setGroupId(long groupId) {
091                    _orgGroupRole.setGroupId(groupId);
092            }
093    
094            /**
095            * Gets the role ID of this org group role.
096            *
097            * @return the role ID of this org group role
098            */
099            public long getRoleId() {
100                    return _orgGroupRole.getRoleId();
101            }
102    
103            /**
104            * Sets the role ID of this org group role.
105            *
106            * @param roleId the role ID of this org group role
107            */
108            public void setRoleId(long roleId) {
109                    _orgGroupRole.setRoleId(roleId);
110            }
111    
112            public boolean isNew() {
113                    return _orgGroupRole.isNew();
114            }
115    
116            public void setNew(boolean n) {
117                    _orgGroupRole.setNew(n);
118            }
119    
120            public boolean isCachedModel() {
121                    return _orgGroupRole.isCachedModel();
122            }
123    
124            public void setCachedModel(boolean cachedModel) {
125                    _orgGroupRole.setCachedModel(cachedModel);
126            }
127    
128            public boolean isEscapedModel() {
129                    return _orgGroupRole.isEscapedModel();
130            }
131    
132            public void setEscapedModel(boolean escapedModel) {
133                    _orgGroupRole.setEscapedModel(escapedModel);
134            }
135    
136            public java.io.Serializable getPrimaryKeyObj() {
137                    return _orgGroupRole.getPrimaryKeyObj();
138            }
139    
140            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
141                    _orgGroupRole.setPrimaryKeyObj(primaryKeyObj);
142            }
143    
144            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
145                    return _orgGroupRole.getExpandoBridge();
146            }
147    
148            public void setExpandoBridgeAttributes(
149                    com.liferay.portal.service.ServiceContext serviceContext) {
150                    _orgGroupRole.setExpandoBridgeAttributes(serviceContext);
151            }
152    
153            @Override
154            public java.lang.Object clone() {
155                    return new OrgGroupRoleWrapper((OrgGroupRole)_orgGroupRole.clone());
156            }
157    
158            public int compareTo(com.liferay.portal.model.OrgGroupRole orgGroupRole) {
159                    return _orgGroupRole.compareTo(orgGroupRole);
160            }
161    
162            @Override
163            public int hashCode() {
164                    return _orgGroupRole.hashCode();
165            }
166    
167            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.OrgGroupRole> toCacheModel() {
168                    return _orgGroupRole.toCacheModel();
169            }
170    
171            public com.liferay.portal.model.OrgGroupRole toEscapedModel() {
172                    return new OrgGroupRoleWrapper(_orgGroupRole.toEscapedModel());
173            }
174    
175            @Override
176            public java.lang.String toString() {
177                    return _orgGroupRole.toString();
178            }
179    
180            public java.lang.String toXmlString() {
181                    return _orgGroupRole.toXmlString();
182            }
183    
184            public boolean containsOrganization(
185                    java.util.List<com.liferay.portal.model.Organization> organizations) {
186                    return _orgGroupRole.containsOrganization(organizations);
187            }
188    
189            public boolean containsGroup(
190                    java.util.List<com.liferay.portal.model.Group> groups) {
191                    return _orgGroupRole.containsGroup(groups);
192            }
193    
194            public OrgGroupRole getWrappedOrgGroupRole() {
195                    return _orgGroupRole;
196            }
197    
198            public void resetOriginalValues() {
199                    _orgGroupRole.resetOriginalValues();
200            }
201    
202            private OrgGroupRole _orgGroupRole;
203    }