001    /**
002     * Copyright (c) 2000-2013 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     * Provides a wrapper for {@link UserGroupRoleLocalService}.
019     *
020     * @author Brian Wing Shun Chan
021     * @see UserGroupRoleLocalService
022     * @generated
023     */
024    public class UserGroupRoleLocalServiceWrapper
025            implements UserGroupRoleLocalService,
026                    ServiceWrapper<UserGroupRoleLocalService> {
027            public UserGroupRoleLocalServiceWrapper(
028                    UserGroupRoleLocalService userGroupRoleLocalService) {
029                    _userGroupRoleLocalService = userGroupRoleLocalService;
030            }
031    
032            /**
033            * Adds the user group role to the database. Also notifies the appropriate model listeners.
034            *
035            * @param userGroupRole the user group role
036            * @return the user group role that was added
037            * @throws SystemException if a system exception occurred
038            */
039            @Override
040            public com.liferay.portal.model.UserGroupRole addUserGroupRole(
041                    com.liferay.portal.model.UserGroupRole userGroupRole)
042                    throws com.liferay.portal.kernel.exception.SystemException {
043                    return _userGroupRoleLocalService.addUserGroupRole(userGroupRole);
044            }
045    
046            /**
047            * Creates a new user group role with the primary key. Does not add the user group role to the database.
048            *
049            * @param userGroupRolePK the primary key for the new user group role
050            * @return the new user group role
051            */
052            @Override
053            public com.liferay.portal.model.UserGroupRole createUserGroupRole(
054                    com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK) {
055                    return _userGroupRoleLocalService.createUserGroupRole(userGroupRolePK);
056            }
057    
058            /**
059            * Deletes the user group role with the primary key from the database. Also notifies the appropriate model listeners.
060            *
061            * @param userGroupRolePK the primary key of the user group role
062            * @return the user group role that was removed
063            * @throws PortalException if a user group role with the primary key could not be found
064            * @throws SystemException if a system exception occurred
065            */
066            @Override
067            public com.liferay.portal.model.UserGroupRole deleteUserGroupRole(
068                    com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
069                    throws com.liferay.portal.kernel.exception.PortalException,
070                            com.liferay.portal.kernel.exception.SystemException {
071                    return _userGroupRoleLocalService.deleteUserGroupRole(userGroupRolePK);
072            }
073    
074            /**
075            * Deletes the user group role from the database. Also notifies the appropriate model listeners.
076            *
077            * @param userGroupRole the user group role
078            * @return the user group role that was removed
079            * @throws SystemException if a system exception occurred
080            */
081            @Override
082            public com.liferay.portal.model.UserGroupRole deleteUserGroupRole(
083                    com.liferay.portal.model.UserGroupRole userGroupRole)
084                    throws com.liferay.portal.kernel.exception.SystemException {
085                    return _userGroupRoleLocalService.deleteUserGroupRole(userGroupRole);
086            }
087    
088            @Override
089            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
090                    return _userGroupRoleLocalService.dynamicQuery();
091            }
092    
093            /**
094            * Performs a dynamic query on the database and returns the matching rows.
095            *
096            * @param dynamicQuery the dynamic query
097            * @return the matching rows
098            * @throws SystemException if a system exception occurred
099            */
100            @Override
101            @SuppressWarnings("rawtypes")
102            public java.util.List dynamicQuery(
103                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
104                    throws com.liferay.portal.kernel.exception.SystemException {
105                    return _userGroupRoleLocalService.dynamicQuery(dynamicQuery);
106            }
107    
108            /**
109            * Performs a dynamic query on the database and returns a range of the matching rows.
110            *
111            * <p>
112            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupRoleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
113            * </p>
114            *
115            * @param dynamicQuery the dynamic query
116            * @param start the lower bound of the range of model instances
117            * @param end the upper bound of the range of model instances (not inclusive)
118            * @return the range of matching rows
119            * @throws SystemException if a system exception occurred
120            */
121            @Override
122            @SuppressWarnings("rawtypes")
123            public java.util.List dynamicQuery(
124                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
125                    int end) throws com.liferay.portal.kernel.exception.SystemException {
126                    return _userGroupRoleLocalService.dynamicQuery(dynamicQuery, start, end);
127            }
128    
129            /**
130            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
131            *
132            * <p>
133            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupRoleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
134            * </p>
135            *
136            * @param dynamicQuery the dynamic query
137            * @param start the lower bound of the range of model instances
138            * @param end the upper bound of the range of model instances (not inclusive)
139            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
140            * @return the ordered range of matching rows
141            * @throws SystemException if a system exception occurred
142            */
143            @Override
144            @SuppressWarnings("rawtypes")
145            public java.util.List dynamicQuery(
146                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
147                    int end,
148                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149                    throws com.liferay.portal.kernel.exception.SystemException {
150                    return _userGroupRoleLocalService.dynamicQuery(dynamicQuery, start,
151                            end, orderByComparator);
152            }
153    
154            /**
155            * Returns the number of rows that match the dynamic query.
156            *
157            * @param dynamicQuery the dynamic query
158            * @return the number of rows that match the dynamic query
159            * @throws SystemException if a system exception occurred
160            */
161            @Override
162            public long dynamicQueryCount(
163                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
164                    throws com.liferay.portal.kernel.exception.SystemException {
165                    return _userGroupRoleLocalService.dynamicQueryCount(dynamicQuery);
166            }
167    
168            /**
169            * Returns the number of rows that match the dynamic query.
170            *
171            * @param dynamicQuery the dynamic query
172            * @param projection the projection to apply to the query
173            * @return the number of rows that match the dynamic query
174            * @throws SystemException if a system exception occurred
175            */
176            @Override
177            public long dynamicQueryCount(
178                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
179                    com.liferay.portal.kernel.dao.orm.Projection projection)
180                    throws com.liferay.portal.kernel.exception.SystemException {
181                    return _userGroupRoleLocalService.dynamicQueryCount(dynamicQuery,
182                            projection);
183            }
184    
185            @Override
186            public com.liferay.portal.model.UserGroupRole fetchUserGroupRole(
187                    com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
188                    throws com.liferay.portal.kernel.exception.SystemException {
189                    return _userGroupRoleLocalService.fetchUserGroupRole(userGroupRolePK);
190            }
191    
192            /**
193            * Returns the user group role with the primary key.
194            *
195            * @param userGroupRolePK the primary key of the user group role
196            * @return the user group role
197            * @throws PortalException if a user group role with the primary key could not be found
198            * @throws SystemException if a system exception occurred
199            */
200            @Override
201            public com.liferay.portal.model.UserGroupRole getUserGroupRole(
202                    com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
203                    throws com.liferay.portal.kernel.exception.PortalException,
204                            com.liferay.portal.kernel.exception.SystemException {
205                    return _userGroupRoleLocalService.getUserGroupRole(userGroupRolePK);
206            }
207    
208            @Override
209            public com.liferay.portal.model.PersistedModel getPersistedModel(
210                    java.io.Serializable primaryKeyObj)
211                    throws com.liferay.portal.kernel.exception.PortalException,
212                            com.liferay.portal.kernel.exception.SystemException {
213                    return _userGroupRoleLocalService.getPersistedModel(primaryKeyObj);
214            }
215    
216            /**
217            * Returns a range of all the user group roles.
218            *
219            * <p>
220            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupRoleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
221            * </p>
222            *
223            * @param start the lower bound of the range of user group roles
224            * @param end the upper bound of the range of user group roles (not inclusive)
225            * @return the range of user group roles
226            * @throws SystemException if a system exception occurred
227            */
228            @Override
229            public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
230                    int start, int end)
231                    throws com.liferay.portal.kernel.exception.SystemException {
232                    return _userGroupRoleLocalService.getUserGroupRoles(start, end);
233            }
234    
235            /**
236            * Returns the number of user group roles.
237            *
238            * @return the number of user group roles
239            * @throws SystemException if a system exception occurred
240            */
241            @Override
242            public int getUserGroupRolesCount()
243                    throws com.liferay.portal.kernel.exception.SystemException {
244                    return _userGroupRoleLocalService.getUserGroupRolesCount();
245            }
246    
247            /**
248            * Updates the user group role in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
249            *
250            * @param userGroupRole the user group role
251            * @return the user group role that was updated
252            * @throws SystemException if a system exception occurred
253            */
254            @Override
255            public com.liferay.portal.model.UserGroupRole updateUserGroupRole(
256                    com.liferay.portal.model.UserGroupRole userGroupRole)
257                    throws com.liferay.portal.kernel.exception.SystemException {
258                    return _userGroupRoleLocalService.updateUserGroupRole(userGroupRole);
259            }
260    
261            /**
262            * Returns the Spring bean ID for this bean.
263            *
264            * @return the Spring bean ID for this bean
265            */
266            @Override
267            public java.lang.String getBeanIdentifier() {
268                    return _userGroupRoleLocalService.getBeanIdentifier();
269            }
270    
271            /**
272            * Sets the Spring bean ID for this bean.
273            *
274            * @param beanIdentifier the Spring bean ID for this bean
275            */
276            @Override
277            public void setBeanIdentifier(java.lang.String beanIdentifier) {
278                    _userGroupRoleLocalService.setBeanIdentifier(beanIdentifier);
279            }
280    
281            @Override
282            public java.util.List<com.liferay.portal.model.UserGroupRole> addUserGroupRoles(
283                    long userId, long groupId, long[] roleIds)
284                    throws com.liferay.portal.kernel.exception.SystemException {
285                    return _userGroupRoleLocalService.addUserGroupRoles(userId, groupId,
286                            roleIds);
287            }
288    
289            @Override
290            public java.util.List<com.liferay.portal.model.UserGroupRole> addUserGroupRoles(
291                    long[] userIds, long groupId, long roleId)
292                    throws com.liferay.portal.kernel.exception.SystemException {
293                    return _userGroupRoleLocalService.addUserGroupRoles(userIds, groupId,
294                            roleId);
295            }
296    
297            @Override
298            public void deleteUserGroupRoles(long userId, long groupId, long[] roleIds)
299                    throws com.liferay.portal.kernel.exception.SystemException {
300                    _userGroupRoleLocalService.deleteUserGroupRoles(userId, groupId, roleIds);
301            }
302    
303            @Override
304            public void deleteUserGroupRoles(long userId, long[] groupIds)
305                    throws com.liferay.portal.kernel.exception.SystemException {
306                    _userGroupRoleLocalService.deleteUserGroupRoles(userId, groupIds);
307            }
308    
309            @Override
310            public void deleteUserGroupRoles(long[] userIds, long groupId)
311                    throws com.liferay.portal.kernel.exception.SystemException {
312                    _userGroupRoleLocalService.deleteUserGroupRoles(userIds, groupId);
313            }
314    
315            @Override
316            public void deleteUserGroupRoles(long[] userIds, long groupId, int roleType)
317                    throws com.liferay.portal.kernel.exception.SystemException {
318                    _userGroupRoleLocalService.deleteUserGroupRoles(userIds, groupId,
319                            roleType);
320            }
321    
322            @Override
323            public void deleteUserGroupRoles(long[] userIds, long groupId, long roleId)
324                    throws com.liferay.portal.kernel.exception.SystemException {
325                    _userGroupRoleLocalService.deleteUserGroupRoles(userIds, groupId, roleId);
326            }
327    
328            @Override
329            public void deleteUserGroupRolesByGroupId(long groupId)
330                    throws com.liferay.portal.kernel.exception.SystemException {
331                    _userGroupRoleLocalService.deleteUserGroupRolesByGroupId(groupId);
332            }
333    
334            @Override
335            public void deleteUserGroupRolesByRoleId(long roleId)
336                    throws com.liferay.portal.kernel.exception.SystemException {
337                    _userGroupRoleLocalService.deleteUserGroupRolesByRoleId(roleId);
338            }
339    
340            @Override
341            public void deleteUserGroupRolesByUserId(long userId)
342                    throws com.liferay.portal.kernel.exception.SystemException {
343                    _userGroupRoleLocalService.deleteUserGroupRolesByUserId(userId);
344            }
345    
346            @Override
347            public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
348                    long userId) throws com.liferay.portal.kernel.exception.SystemException {
349                    return _userGroupRoleLocalService.getUserGroupRoles(userId);
350            }
351    
352            @Override
353            public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
354                    long userId, long groupId)
355                    throws com.liferay.portal.kernel.exception.SystemException {
356                    return _userGroupRoleLocalService.getUserGroupRoles(userId, groupId);
357            }
358    
359            @Override
360            public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRolesByGroup(
361                    long groupId)
362                    throws com.liferay.portal.kernel.exception.SystemException {
363                    return _userGroupRoleLocalService.getUserGroupRolesByGroup(groupId);
364            }
365    
366            @Override
367            public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRolesByGroupAndRole(
368                    long groupId, long roleId)
369                    throws com.liferay.portal.kernel.exception.SystemException {
370                    return _userGroupRoleLocalService.getUserGroupRolesByGroupAndRole(groupId,
371                            roleId);
372            }
373    
374            @Override
375            public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRolesByUserUserGroupAndGroup(
376                    long userId, long groupId)
377                    throws com.liferay.portal.kernel.exception.SystemException {
378                    return _userGroupRoleLocalService.getUserGroupRolesByUserUserGroupAndGroup(userId,
379                            groupId);
380            }
381    
382            @Override
383            public boolean hasUserGroupRole(long userId, long groupId, long roleId)
384                    throws com.liferay.portal.kernel.exception.SystemException {
385                    return _userGroupRoleLocalService.hasUserGroupRole(userId, groupId,
386                            roleId);
387            }
388    
389            @Override
390            public boolean hasUserGroupRole(long userId, long groupId, long roleId,
391                    boolean inherit)
392                    throws com.liferay.portal.kernel.exception.SystemException {
393                    return _userGroupRoleLocalService.hasUserGroupRole(userId, groupId,
394                            roleId, inherit);
395            }
396    
397            @Override
398            public boolean hasUserGroupRole(long userId, long groupId,
399                    java.lang.String roleName)
400                    throws com.liferay.portal.kernel.exception.PortalException,
401                            com.liferay.portal.kernel.exception.SystemException {
402                    return _userGroupRoleLocalService.hasUserGroupRole(userId, groupId,
403                            roleName);
404            }
405    
406            @Override
407            public boolean hasUserGroupRole(long userId, long groupId,
408                    java.lang.String roleName, boolean inherit)
409                    throws com.liferay.portal.kernel.exception.PortalException,
410                            com.liferay.portal.kernel.exception.SystemException {
411                    return _userGroupRoleLocalService.hasUserGroupRole(userId, groupId,
412                            roleName, inherit);
413            }
414    
415            /**
416             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
417             */
418            public UserGroupRoleLocalService getWrappedUserGroupRoleLocalService() {
419                    return _userGroupRoleLocalService;
420            }
421    
422            /**
423             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
424             */
425            public void setWrappedUserGroupRoleLocalService(
426                    UserGroupRoleLocalService userGroupRoleLocalService) {
427                    _userGroupRoleLocalService = userGroupRoleLocalService;
428            }
429    
430            @Override
431            public UserGroupRoleLocalService getWrappedService() {
432                    return _userGroupRoleLocalService;
433            }
434    
435            @Override
436            public void setWrappedService(
437                    UserGroupRoleLocalService userGroupRoleLocalService) {
438                    _userGroupRoleLocalService = userGroupRoleLocalService;
439            }
440    
441            private UserGroupRoleLocalService _userGroupRoleLocalService;
442    }