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 userId, long groupId, long[] roleIds) {
111                    _userGroupRoleLocalService.deleteUserGroupRoles(userId, groupId, roleIds);
112            }
113    
114            @Override
115            public void deleteUserGroupRoles(long userId, long[] groupIds) {
116                    _userGroupRoleLocalService.deleteUserGroupRoles(userId, groupIds);
117            }
118    
119            @Override
120            public void deleteUserGroupRoles(long[] userIds, long groupId) {
121                    _userGroupRoleLocalService.deleteUserGroupRoles(userIds, groupId);
122            }
123    
124            @Override
125            public void deleteUserGroupRoles(long[] userIds, long groupId, long roleId) {
126                    _userGroupRoleLocalService.deleteUserGroupRoles(userIds, groupId, roleId);
127            }
128    
129            @Override
130            public void deleteUserGroupRoles(long[] userIds, long groupId, int roleType) {
131                    _userGroupRoleLocalService.deleteUserGroupRoles(userIds, groupId,
132                            roleType);
133            }
134    
135            @Override
136            public void deleteUserGroupRolesByGroupId(long groupId) {
137                    _userGroupRoleLocalService.deleteUserGroupRolesByGroupId(groupId);
138            }
139    
140            @Override
141            public void deleteUserGroupRolesByRoleId(long roleId) {
142                    _userGroupRoleLocalService.deleteUserGroupRolesByRoleId(roleId);
143            }
144    
145            @Override
146            public void deleteUserGroupRolesByUserId(long userId) {
147                    _userGroupRoleLocalService.deleteUserGroupRolesByUserId(userId);
148            }
149    
150            @Override
151            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
152                    return _userGroupRoleLocalService.dynamicQuery();
153            }
154    
155            /**
156            * Performs a dynamic query on the database and returns the matching rows.
157            *
158            * @param dynamicQuery the dynamic query
159            * @return the matching rows
160            */
161            @Override
162            public <T> java.util.List<T> dynamicQuery(
163                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
164                    return _userGroupRoleLocalService.dynamicQuery(dynamicQuery);
165            }
166    
167            /**
168            * Performs a dynamic query on the database and returns a range of the matching rows.
169            *
170            * <p>
171            * 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.
172            * </p>
173            *
174            * @param dynamicQuery the dynamic query
175            * @param start the lower bound of the range of model instances
176            * @param end the upper bound of the range of model instances (not inclusive)
177            * @return the range of matching rows
178            */
179            @Override
180            public <T> java.util.List<T> dynamicQuery(
181                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
182                    int end) {
183                    return _userGroupRoleLocalService.dynamicQuery(dynamicQuery, start, end);
184            }
185    
186            /**
187            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
188            *
189            * <p>
190            * 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.
191            * </p>
192            *
193            * @param dynamicQuery the dynamic query
194            * @param start the lower bound of the range of model instances
195            * @param end the upper bound of the range of model instances (not inclusive)
196            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
197            * @return the ordered range of matching rows
198            */
199            @Override
200            public <T> java.util.List<T> dynamicQuery(
201                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
202                    int end,
203                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
204                    return _userGroupRoleLocalService.dynamicQuery(dynamicQuery, start,
205                            end, orderByComparator);
206            }
207    
208            /**
209            * Returns the number of rows that match the dynamic query.
210            *
211            * @param dynamicQuery the dynamic query
212            * @return the number of rows that match the dynamic query
213            */
214            @Override
215            public long dynamicQueryCount(
216                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
217                    return _userGroupRoleLocalService.dynamicQueryCount(dynamicQuery);
218            }
219    
220            /**
221            * Returns the number of rows that match the dynamic query.
222            *
223            * @param dynamicQuery the dynamic query
224            * @param projection the projection to apply to the query
225            * @return the number of rows that match the dynamic query
226            */
227            @Override
228            public long dynamicQueryCount(
229                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
230                    com.liferay.portal.kernel.dao.orm.Projection projection) {
231                    return _userGroupRoleLocalService.dynamicQueryCount(dynamicQuery,
232                            projection);
233            }
234    
235            @Override
236            public com.liferay.portal.model.UserGroupRole fetchUserGroupRole(
237                    com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK) {
238                    return _userGroupRoleLocalService.fetchUserGroupRole(userGroupRolePK);
239            }
240    
241            @Override
242            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
243                    return _userGroupRoleLocalService.getActionableDynamicQuery();
244            }
245    
246            /**
247            * Returns the Spring bean ID for this bean.
248            *
249            * @return the Spring bean ID for this bean
250            */
251            @Override
252            public java.lang.String getBeanIdentifier() {
253                    return _userGroupRoleLocalService.getBeanIdentifier();
254            }
255    
256            @Override
257            public com.liferay.portal.model.PersistedModel getPersistedModel(
258                    java.io.Serializable primaryKeyObj)
259                    throws com.liferay.portal.kernel.exception.PortalException {
260                    return _userGroupRoleLocalService.getPersistedModel(primaryKeyObj);
261            }
262    
263            /**
264            * Returns the user group role with the primary key.
265            *
266            * @param userGroupRolePK the primary key of the user group role
267            * @return the user group role
268            * @throws PortalException if a user group role with the primary key could not be found
269            */
270            @Override
271            public com.liferay.portal.model.UserGroupRole getUserGroupRole(
272                    com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
273                    throws com.liferay.portal.kernel.exception.PortalException {
274                    return _userGroupRoleLocalService.getUserGroupRole(userGroupRolePK);
275            }
276    
277            /**
278            * Returns a range of all the user group roles.
279            *
280            * <p>
281            * 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.
282            * </p>
283            *
284            * @param start the lower bound of the range of user group roles
285            * @param end the upper bound of the range of user group roles (not inclusive)
286            * @return the range of user group roles
287            */
288            @Override
289            public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
290                    int start, int end) {
291                    return _userGroupRoleLocalService.getUserGroupRoles(start, end);
292            }
293    
294            @Override
295            public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
296                    long userId) {
297                    return _userGroupRoleLocalService.getUserGroupRoles(userId);
298            }
299    
300            @Override
301            public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
302                    long userId, long groupId) {
303                    return _userGroupRoleLocalService.getUserGroupRoles(userId, groupId);
304            }
305    
306            @Override
307            public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRolesByGroup(
308                    long groupId) {
309                    return _userGroupRoleLocalService.getUserGroupRolesByGroup(groupId);
310            }
311    
312            @Override
313            public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRolesByGroupAndRole(
314                    long groupId, long roleId) {
315                    return _userGroupRoleLocalService.getUserGroupRolesByGroupAndRole(groupId,
316                            roleId);
317            }
318    
319            @Override
320            public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRolesByUserUserGroupAndGroup(
321                    long userId, long groupId) {
322                    return _userGroupRoleLocalService.getUserGroupRolesByUserUserGroupAndGroup(userId,
323                            groupId);
324            }
325    
326            /**
327            * Returns the number of user group roles.
328            *
329            * @return the number of user group roles
330            */
331            @Override
332            public int getUserGroupRolesCount() {
333                    return _userGroupRoleLocalService.getUserGroupRolesCount();
334            }
335    
336            @Override
337            public boolean hasUserGroupRole(long userId, long groupId, long roleId) {
338                    return _userGroupRoleLocalService.hasUserGroupRole(userId, groupId,
339                            roleId);
340            }
341    
342            @Override
343            public boolean hasUserGroupRole(long userId, long groupId, long roleId,
344                    boolean inherit) {
345                    return _userGroupRoleLocalService.hasUserGroupRole(userId, groupId,
346                            roleId, inherit);
347            }
348    
349            @Override
350            public boolean hasUserGroupRole(long userId, long groupId,
351                    java.lang.String roleName)
352                    throws com.liferay.portal.kernel.exception.PortalException {
353                    return _userGroupRoleLocalService.hasUserGroupRole(userId, groupId,
354                            roleName);
355            }
356    
357            @Override
358            public boolean hasUserGroupRole(long userId, long groupId,
359                    java.lang.String roleName, boolean inherit)
360                    throws com.liferay.portal.kernel.exception.PortalException {
361                    return _userGroupRoleLocalService.hasUserGroupRole(userId, groupId,
362                            roleName, inherit);
363            }
364    
365            /**
366            * Sets the Spring bean ID for this bean.
367            *
368            * @param beanIdentifier the Spring bean ID for this bean
369            */
370            @Override
371            public void setBeanIdentifier(java.lang.String beanIdentifier) {
372                    _userGroupRoleLocalService.setBeanIdentifier(beanIdentifier);
373            }
374    
375            /**
376            * Updates the user group role in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
377            *
378            * @param userGroupRole the user group role
379            * @return the user group role that was updated
380            */
381            @Override
382            public com.liferay.portal.model.UserGroupRole updateUserGroupRole(
383                    com.liferay.portal.model.UserGroupRole userGroupRole) {
384                    return _userGroupRoleLocalService.updateUserGroupRole(userGroupRole);
385            }
386    
387            /**
388             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
389             */
390            @Deprecated
391            public UserGroupRoleLocalService getWrappedUserGroupRoleLocalService() {
392                    return _userGroupRoleLocalService;
393            }
394    
395            /**
396             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
397             */
398            @Deprecated
399            public void setWrappedUserGroupRoleLocalService(
400                    UserGroupRoleLocalService userGroupRoleLocalService) {
401                    _userGroupRoleLocalService = userGroupRoleLocalService;
402            }
403    
404            @Override
405            public UserGroupRoleLocalService getWrappedService() {
406                    return _userGroupRoleLocalService;
407            }
408    
409            @Override
410            public void setWrappedService(
411                    UserGroupRoleLocalService userGroupRoleLocalService) {
412                    _userGroupRoleLocalService = userGroupRoleLocalService;
413            }
414    
415            private UserGroupRoleLocalService _userGroupRoleLocalService;
416    }