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.service;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link UserGroupGroupRoleLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       UserGroupGroupRoleLocalService
024     * @generated
025     */
026    public class UserGroupGroupRoleLocalServiceWrapper
027            implements UserGroupGroupRoleLocalService {
028            public UserGroupGroupRoleLocalServiceWrapper(
029                    UserGroupGroupRoleLocalService userGroupGroupRoleLocalService) {
030                    _userGroupGroupRoleLocalService = userGroupGroupRoleLocalService;
031            }
032    
033            /**
034            * Adds the user group group role to the database. Also notifies the appropriate model listeners.
035            *
036            * @param userGroupGroupRole the user group group role
037            * @return the user group group role that was added
038            * @throws SystemException if a system exception occurred
039            */
040            public com.liferay.portal.model.UserGroupGroupRole addUserGroupGroupRole(
041                    com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole)
042                    throws com.liferay.portal.kernel.exception.SystemException {
043                    return _userGroupGroupRoleLocalService.addUserGroupGroupRole(userGroupGroupRole);
044            }
045    
046            /**
047            * Creates a new user group group role with the primary key. Does not add the user group group role to the database.
048            *
049            * @param userGroupGroupRolePK the primary key for the new user group group role
050            * @return the new user group group role
051            */
052            public com.liferay.portal.model.UserGroupGroupRole createUserGroupGroupRole(
053                    com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK) {
054                    return _userGroupGroupRoleLocalService.createUserGroupGroupRole(userGroupGroupRolePK);
055            }
056    
057            /**
058            * Deletes the user group group role with the primary key from the database. Also notifies the appropriate model listeners.
059            *
060            * @param userGroupGroupRolePK the primary key of the user group group role
061            * @throws PortalException if a user group group role with the primary key could not be found
062            * @throws SystemException if a system exception occurred
063            */
064            public void deleteUserGroupGroupRole(
065                    com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK)
066                    throws com.liferay.portal.kernel.exception.PortalException,
067                            com.liferay.portal.kernel.exception.SystemException {
068                    _userGroupGroupRoleLocalService.deleteUserGroupGroupRole(userGroupGroupRolePK);
069            }
070    
071            /**
072            * Deletes the user group group role from the database. Also notifies the appropriate model listeners.
073            *
074            * @param userGroupGroupRole the user group group role
075            * @throws SystemException if a system exception occurred
076            */
077            public void deleteUserGroupGroupRole(
078                    com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole)
079                    throws com.liferay.portal.kernel.exception.SystemException {
080                    _userGroupGroupRoleLocalService.deleteUserGroupGroupRole(userGroupGroupRole);
081            }
082    
083            /**
084            * Performs a dynamic query on the database and returns the matching rows.
085            *
086            * @param dynamicQuery the dynamic query
087            * @return the matching rows
088            * @throws SystemException if a system exception occurred
089            */
090            @SuppressWarnings("rawtypes")
091            public java.util.List dynamicQuery(
092                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
093                    throws com.liferay.portal.kernel.exception.SystemException {
094                    return _userGroupGroupRoleLocalService.dynamicQuery(dynamicQuery);
095            }
096    
097            /**
098            * Performs a dynamic query on the database and returns a range of the matching rows.
099            *
100            * <p>
101            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
102            * </p>
103            *
104            * @param dynamicQuery the dynamic query
105            * @param start the lower bound of the range of model instances
106            * @param end the upper bound of the range of model instances (not inclusive)
107            * @return the range of matching rows
108            * @throws SystemException if a system exception occurred
109            */
110            @SuppressWarnings("rawtypes")
111            public java.util.List dynamicQuery(
112                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
113                    int end) throws com.liferay.portal.kernel.exception.SystemException {
114                    return _userGroupGroupRoleLocalService.dynamicQuery(dynamicQuery,
115                            start, end);
116            }
117    
118            /**
119            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
120            *
121            * <p>
122            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
123            * </p>
124            *
125            * @param dynamicQuery the dynamic query
126            * @param start the lower bound of the range of model instances
127            * @param end the upper bound of the range of model instances (not inclusive)
128            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
129            * @return the ordered range of matching rows
130            * @throws SystemException if a system exception occurred
131            */
132            @SuppressWarnings("rawtypes")
133            public java.util.List dynamicQuery(
134                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
135                    int end,
136                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
137                    throws com.liferay.portal.kernel.exception.SystemException {
138                    return _userGroupGroupRoleLocalService.dynamicQuery(dynamicQuery,
139                            start, end, orderByComparator);
140            }
141    
142            /**
143            * Returns the number of rows that match the dynamic query.
144            *
145            * @param dynamicQuery the dynamic query
146            * @return the number of rows that match the dynamic query
147            * @throws SystemException if a system exception occurred
148            */
149            public long dynamicQueryCount(
150                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
151                    throws com.liferay.portal.kernel.exception.SystemException {
152                    return _userGroupGroupRoleLocalService.dynamicQueryCount(dynamicQuery);
153            }
154    
155            /**
156            * Returns the user group group role with the primary key.
157            *
158            * @param userGroupGroupRolePK the primary key of the user group group role
159            * @return the user group group role
160            * @throws PortalException if a user group group role with the primary key could not be found
161            * @throws SystemException if a system exception occurred
162            */
163            public com.liferay.portal.model.UserGroupGroupRole getUserGroupGroupRole(
164                    com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK)
165                    throws com.liferay.portal.kernel.exception.PortalException,
166                            com.liferay.portal.kernel.exception.SystemException {
167                    return _userGroupGroupRoleLocalService.getUserGroupGroupRole(userGroupGroupRolePK);
168            }
169    
170            public com.liferay.portal.model.PersistedModel getPersistedModel(
171                    java.io.Serializable primaryKeyObj)
172                    throws com.liferay.portal.kernel.exception.PortalException,
173                            com.liferay.portal.kernel.exception.SystemException {
174                    return _userGroupGroupRoleLocalService.getPersistedModel(primaryKeyObj);
175            }
176    
177            /**
178            * Returns a range of all the user group group roles.
179            *
180            * <p>
181            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
182            * </p>
183            *
184            * @param start the lower bound of the range of user group group roles
185            * @param end the upper bound of the range of user group group roles (not inclusive)
186            * @return the range of user group group roles
187            * @throws SystemException if a system exception occurred
188            */
189            public java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRoles(
190                    int start, int end)
191                    throws com.liferay.portal.kernel.exception.SystemException {
192                    return _userGroupGroupRoleLocalService.getUserGroupGroupRoles(start, end);
193            }
194    
195            /**
196            * Returns the number of user group group roles.
197            *
198            * @return the number of user group group roles
199            * @throws SystemException if a system exception occurred
200            */
201            public int getUserGroupGroupRolesCount()
202                    throws com.liferay.portal.kernel.exception.SystemException {
203                    return _userGroupGroupRoleLocalService.getUserGroupGroupRolesCount();
204            }
205    
206            /**
207            * Updates the user group group role in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
208            *
209            * @param userGroupGroupRole the user group group role
210            * @return the user group group role that was updated
211            * @throws SystemException if a system exception occurred
212            */
213            public com.liferay.portal.model.UserGroupGroupRole updateUserGroupGroupRole(
214                    com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole)
215                    throws com.liferay.portal.kernel.exception.SystemException {
216                    return _userGroupGroupRoleLocalService.updateUserGroupGroupRole(userGroupGroupRole);
217            }
218    
219            /**
220            * Updates the user group group role in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
221            *
222            * @param userGroupGroupRole the user group group role
223            * @param merge whether to merge the user group group role with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
224            * @return the user group group role that was updated
225            * @throws SystemException if a system exception occurred
226            */
227            public com.liferay.portal.model.UserGroupGroupRole updateUserGroupGroupRole(
228                    com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole,
229                    boolean merge)
230                    throws com.liferay.portal.kernel.exception.SystemException {
231                    return _userGroupGroupRoleLocalService.updateUserGroupGroupRole(userGroupGroupRole,
232                            merge);
233            }
234    
235            /**
236            * Returns the Spring bean ID for this bean.
237            *
238            * @return the Spring bean ID for this bean
239            */
240            public java.lang.String getBeanIdentifier() {
241                    return _userGroupGroupRoleLocalService.getBeanIdentifier();
242            }
243    
244            /**
245            * Sets the Spring bean ID for this bean.
246            *
247            * @param beanIdentifier the Spring bean ID for this bean
248            */
249            public void setBeanIdentifier(java.lang.String beanIdentifier) {
250                    _userGroupGroupRoleLocalService.setBeanIdentifier(beanIdentifier);
251            }
252    
253            public void addUserGroupGroupRoles(long userGroupId, long groupId,
254                    long[] roleIds)
255                    throws com.liferay.portal.kernel.exception.PortalException,
256                            com.liferay.portal.kernel.exception.SystemException {
257                    _userGroupGroupRoleLocalService.addUserGroupGroupRoles(userGroupId,
258                            groupId, roleIds);
259            }
260    
261            public void addUserGroupGroupRoles(long[] userGroupIds, long groupId,
262                    long roleId)
263                    throws com.liferay.portal.kernel.exception.PortalException,
264                            com.liferay.portal.kernel.exception.SystemException {
265                    _userGroupGroupRoleLocalService.addUserGroupGroupRoles(userGroupIds,
266                            groupId, roleId);
267            }
268    
269            public void deleteUserGroupGroupRoles(long userGroupId, long groupId,
270                    long[] roleIds)
271                    throws com.liferay.portal.kernel.exception.SystemException {
272                    _userGroupGroupRoleLocalService.deleteUserGroupGroupRoles(userGroupId,
273                            groupId, roleIds);
274            }
275    
276            public void deleteUserGroupGroupRoles(long userGroupId, long[] groupIds)
277                    throws com.liferay.portal.kernel.exception.SystemException {
278                    _userGroupGroupRoleLocalService.deleteUserGroupGroupRoles(userGroupId,
279                            groupIds);
280            }
281    
282            public void deleteUserGroupGroupRoles(long[] userGroupIds, long groupId)
283                    throws com.liferay.portal.kernel.exception.SystemException {
284                    _userGroupGroupRoleLocalService.deleteUserGroupGroupRoles(userGroupIds,
285                            groupId);
286            }
287    
288            public void deleteUserGroupGroupRoles(long[] userGroupIds, long groupId,
289                    long roleId) throws com.liferay.portal.kernel.exception.SystemException {
290                    _userGroupGroupRoleLocalService.deleteUserGroupGroupRoles(userGroupIds,
291                            groupId, roleId);
292            }
293    
294            public void deleteUserGroupGroupRolesByGroupId(long groupId)
295                    throws com.liferay.portal.kernel.exception.SystemException {
296                    _userGroupGroupRoleLocalService.deleteUserGroupGroupRolesByGroupId(groupId);
297            }
298    
299            public void deleteUserGroupGroupRolesByRoleId(long roleId)
300                    throws com.liferay.portal.kernel.exception.SystemException {
301                    _userGroupGroupRoleLocalService.deleteUserGroupGroupRolesByRoleId(roleId);
302            }
303    
304            public void deleteUserGroupGroupRolesByUserGroupId(long userGroupId)
305                    throws com.liferay.portal.kernel.exception.SystemException {
306                    _userGroupGroupRoleLocalService.deleteUserGroupGroupRolesByUserGroupId(userGroupId);
307            }
308    
309            public java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRoles(
310                    long userGroupId)
311                    throws com.liferay.portal.kernel.exception.SystemException {
312                    return _userGroupGroupRoleLocalService.getUserGroupGroupRoles(userGroupId);
313            }
314    
315            public java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRoles(
316                    long userGroupId, long groupId)
317                    throws com.liferay.portal.kernel.exception.SystemException {
318                    return _userGroupGroupRoleLocalService.getUserGroupGroupRoles(userGroupId,
319                            groupId);
320            }
321    
322            public java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRolesByGroupAndRole(
323                    long groupId, long roleId)
324                    throws com.liferay.portal.kernel.exception.SystemException {
325                    return _userGroupGroupRoleLocalService.getUserGroupGroupRolesByGroupAndRole(groupId,
326                            roleId);
327            }
328    
329            public boolean hasUserGroupGroupRole(long userGroupId, long groupId,
330                    long roleId) throws com.liferay.portal.kernel.exception.SystemException {
331                    return _userGroupGroupRoleLocalService.hasUserGroupGroupRole(userGroupId,
332                            groupId, roleId);
333            }
334    
335            public boolean hasUserGroupGroupRole(long userGroupId, long groupId,
336                    java.lang.String roleName)
337                    throws com.liferay.portal.kernel.exception.PortalException,
338                            com.liferay.portal.kernel.exception.SystemException {
339                    return _userGroupGroupRoleLocalService.hasUserGroupGroupRole(userGroupId,
340                            groupId, roleName);
341            }
342    
343            public UserGroupGroupRoleLocalService getWrappedUserGroupGroupRoleLocalService() {
344                    return _userGroupGroupRoleLocalService;
345            }
346    
347            public void setWrappedUserGroupGroupRoleLocalService(
348                    UserGroupGroupRoleLocalService userGroupGroupRoleLocalService) {
349                    _userGroupGroupRoleLocalService = userGroupGroupRoleLocalService;
350            }
351    
352            private UserGroupGroupRoleLocalService _userGroupGroupRoleLocalService;
353    }