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            @Override
252            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
253                    return _userGroupRoleLocalService.getIndexableActionableDynamicQuery();
254            }
255    
256            /**
257            * Returns the OSGi service identifier.
258            *
259            * @return the OSGi service identifier
260            */
261            @Override
262            public java.lang.String getOSGiServiceIdentifier() {
263                    return _userGroupRoleLocalService.getOSGiServiceIdentifier();
264            }
265    
266            @Override
267            public com.liferay.portal.model.PersistedModel getPersistedModel(
268                    java.io.Serializable primaryKeyObj)
269                    throws com.liferay.portal.kernel.exception.PortalException {
270                    return _userGroupRoleLocalService.getPersistedModel(primaryKeyObj);
271            }
272    
273            /**
274            * Returns the user group role with the primary key.
275            *
276            * @param userGroupRolePK the primary key of the user group role
277            * @return the user group role
278            * @throws PortalException if a user group role with the primary key could not be found
279            */
280            @Override
281            public com.liferay.portal.model.UserGroupRole getUserGroupRole(
282                    com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
283                    throws com.liferay.portal.kernel.exception.PortalException {
284                    return _userGroupRoleLocalService.getUserGroupRole(userGroupRolePK);
285            }
286    
287            /**
288            * Returns a range of all the user group roles.
289            *
290            * <p>
291            * 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.
292            * </p>
293            *
294            * @param start the lower bound of the range of user group roles
295            * @param end the upper bound of the range of user group roles (not inclusive)
296            * @return the range of user group roles
297            */
298            @Override
299            public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
300                    int start, int end) {
301                    return _userGroupRoleLocalService.getUserGroupRoles(start, end);
302            }
303    
304            @Override
305            public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
306                    long userId) {
307                    return _userGroupRoleLocalService.getUserGroupRoles(userId);
308            }
309    
310            @Override
311            public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
312                    long userId, long groupId) {
313                    return _userGroupRoleLocalService.getUserGroupRoles(userId, groupId);
314            }
315    
316            @Override
317            public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
318                    long userId, long groupId, int start, int end) {
319                    return _userGroupRoleLocalService.getUserGroupRoles(userId, groupId,
320                            start, end);
321            }
322    
323            @Override
324            public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRolesByGroup(
325                    long groupId) {
326                    return _userGroupRoleLocalService.getUserGroupRolesByGroup(groupId);
327            }
328    
329            @Override
330            public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRolesByGroupAndRole(
331                    long groupId, long roleId) {
332                    return _userGroupRoleLocalService.getUserGroupRolesByGroupAndRole(groupId,
333                            roleId);
334            }
335    
336            @Override
337            public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRolesByUserUserGroupAndGroup(
338                    long userId, long groupId) {
339                    return _userGroupRoleLocalService.getUserGroupRolesByUserUserGroupAndGroup(userId,
340                            groupId);
341            }
342    
343            /**
344            * Returns the number of user group roles.
345            *
346            * @return the number of user group roles
347            */
348            @Override
349            public int getUserGroupRolesCount() {
350                    return _userGroupRoleLocalService.getUserGroupRolesCount();
351            }
352    
353            @Override
354            public int getUserGroupRolesCount(long userId, long groupId) {
355                    return _userGroupRoleLocalService.getUserGroupRolesCount(userId, groupId);
356            }
357    
358            @Override
359            public boolean hasUserGroupRole(long userId, long groupId, long roleId) {
360                    return _userGroupRoleLocalService.hasUserGroupRole(userId, groupId,
361                            roleId);
362            }
363    
364            @Override
365            public boolean hasUserGroupRole(long userId, long groupId, long roleId,
366                    boolean inherit) {
367                    return _userGroupRoleLocalService.hasUserGroupRole(userId, groupId,
368                            roleId, inherit);
369            }
370    
371            @Override
372            public boolean hasUserGroupRole(long userId, long groupId,
373                    java.lang.String roleName)
374                    throws com.liferay.portal.kernel.exception.PortalException {
375                    return _userGroupRoleLocalService.hasUserGroupRole(userId, groupId,
376                            roleName);
377            }
378    
379            @Override
380            public boolean hasUserGroupRole(long userId, long groupId,
381                    java.lang.String roleName, boolean inherit)
382                    throws com.liferay.portal.kernel.exception.PortalException {
383                    return _userGroupRoleLocalService.hasUserGroupRole(userId, groupId,
384                            roleName, inherit);
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            @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    }