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 matching the dynamic query.
210            *
211            * @param dynamicQuery the dynamic query
212            * @return the number of rows matching 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 matching 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 matching 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> getUserGroupRoles(
308                    long userId, long groupId, int start, int end) {
309                    return _userGroupRoleLocalService.getUserGroupRoles(userId, groupId,
310                            start, end);
311            }
312    
313            @Override
314            public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRolesByGroup(
315                    long groupId) {
316                    return _userGroupRoleLocalService.getUserGroupRolesByGroup(groupId);
317            }
318    
319            @Override
320            public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRolesByGroupAndRole(
321                    long groupId, long roleId) {
322                    return _userGroupRoleLocalService.getUserGroupRolesByGroupAndRole(groupId,
323                            roleId);
324            }
325    
326            @Override
327            public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRolesByUserUserGroupAndGroup(
328                    long userId, long groupId) {
329                    return _userGroupRoleLocalService.getUserGroupRolesByUserUserGroupAndGroup(userId,
330                            groupId);
331            }
332    
333            /**
334            * Returns the number of user group roles.
335            *
336            * @return the number of user group roles
337            */
338            @Override
339            public int getUserGroupRolesCount() {
340                    return _userGroupRoleLocalService.getUserGroupRolesCount();
341            }
342    
343            @Override
344            public int getUserGroupRolesCount(long userId, long groupId) {
345                    return _userGroupRoleLocalService.getUserGroupRolesCount(userId, groupId);
346            }
347    
348            @Override
349            public boolean hasUserGroupRole(long userId, long groupId, long roleId) {
350                    return _userGroupRoleLocalService.hasUserGroupRole(userId, groupId,
351                            roleId);
352            }
353    
354            @Override
355            public boolean hasUserGroupRole(long userId, long groupId, long roleId,
356                    boolean inherit) {
357                    return _userGroupRoleLocalService.hasUserGroupRole(userId, groupId,
358                            roleId, inherit);
359            }
360    
361            @Override
362            public boolean hasUserGroupRole(long userId, long groupId,
363                    java.lang.String roleName)
364                    throws com.liferay.portal.kernel.exception.PortalException {
365                    return _userGroupRoleLocalService.hasUserGroupRole(userId, groupId,
366                            roleName);
367            }
368    
369            @Override
370            public boolean hasUserGroupRole(long userId, long groupId,
371                    java.lang.String roleName, boolean inherit)
372                    throws com.liferay.portal.kernel.exception.PortalException {
373                    return _userGroupRoleLocalService.hasUserGroupRole(userId, groupId,
374                            roleName, inherit);
375            }
376    
377            /**
378            * Sets the Spring bean ID for this bean.
379            *
380            * @param beanIdentifier the Spring bean ID for this bean
381            */
382            @Override
383            public void setBeanIdentifier(java.lang.String beanIdentifier) {
384                    _userGroupRoleLocalService.setBeanIdentifier(beanIdentifier);
385            }
386    
387            /**
388            * Updates the user group role in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
389            *
390            * @param userGroupRole the user group role
391            * @return the user group role that was updated
392            */
393            @Override
394            public com.liferay.portal.model.UserGroupRole updateUserGroupRole(
395                    com.liferay.portal.model.UserGroupRole userGroupRole) {
396                    return _userGroupRoleLocalService.updateUserGroupRole(userGroupRole);
397            }
398    
399            /**
400             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
401             */
402            @Deprecated
403            public UserGroupRoleLocalService getWrappedUserGroupRoleLocalService() {
404                    return _userGroupRoleLocalService;
405            }
406    
407            /**
408             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
409             */
410            @Deprecated
411            public void setWrappedUserGroupRoleLocalService(
412                    UserGroupRoleLocalService userGroupRoleLocalService) {
413                    _userGroupRoleLocalService = userGroupRoleLocalService;
414            }
415    
416            @Override
417            public UserGroupRoleLocalService getWrappedService() {
418                    return _userGroupRoleLocalService;
419            }
420    
421            @Override
422            public void setWrappedService(
423                    UserGroupRoleLocalService userGroupRoleLocalService) {
424                    _userGroupRoleLocalService = userGroupRoleLocalService;
425            }
426    
427            private UserGroupRoleLocalService _userGroupRoleLocalService;
428    }