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