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