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 UserGroupGroupRoleLocalService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see UserGroupGroupRoleLocalService
024     * @generated
025     */
026    @ProviderType
027    public class UserGroupGroupRoleLocalServiceWrapper
028            implements UserGroupGroupRoleLocalService,
029                    ServiceWrapper<UserGroupGroupRoleLocalService> {
030            public UserGroupGroupRoleLocalServiceWrapper(
031                    UserGroupGroupRoleLocalService userGroupGroupRoleLocalService) {
032                    _userGroupGroupRoleLocalService = userGroupGroupRoleLocalService;
033            }
034    
035            /**
036            * Adds the user group group role to the database. Also notifies the appropriate model listeners.
037            *
038            * @param userGroupGroupRole the user group group role
039            * @return the user group group role that was added
040            */
041            @Override
042            public com.liferay.portal.model.UserGroupGroupRole addUserGroupGroupRole(
043                    com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole) {
044                    return _userGroupGroupRoleLocalService.addUserGroupGroupRole(userGroupGroupRole);
045            }
046    
047            @Override
048            public void addUserGroupGroupRoles(long userGroupId, long groupId,
049                    long[] roleIds) {
050                    _userGroupGroupRoleLocalService.addUserGroupGroupRoles(userGroupId,
051                            groupId, roleIds);
052            }
053    
054            @Override
055            public void addUserGroupGroupRoles(long[] userGroupIds, long groupId,
056                    long roleId) {
057                    _userGroupGroupRoleLocalService.addUserGroupGroupRoles(userGroupIds,
058                            groupId, roleId);
059            }
060    
061            /**
062            * Creates a new user group group role with the primary key. Does not add the user group group role to the database.
063            *
064            * @param userGroupGroupRolePK the primary key for the new user group group role
065            * @return the new user group group role
066            */
067            @Override
068            public com.liferay.portal.model.UserGroupGroupRole createUserGroupGroupRole(
069                    com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK) {
070                    return _userGroupGroupRoleLocalService.createUserGroupGroupRole(userGroupGroupRolePK);
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 _userGroupGroupRoleLocalService.deletePersistedModel(persistedModel);
081            }
082    
083            /**
084            * Deletes the user group group role from the database. Also notifies the appropriate model listeners.
085            *
086            * @param userGroupGroupRole the user group group role
087            * @return the user group group role that was removed
088            */
089            @Override
090            public com.liferay.portal.model.UserGroupGroupRole deleteUserGroupGroupRole(
091                    com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole) {
092                    return _userGroupGroupRoleLocalService.deleteUserGroupGroupRole(userGroupGroupRole);
093            }
094    
095            /**
096            * Deletes the user group group role with the primary key from the database. Also notifies the appropriate model listeners.
097            *
098            * @param userGroupGroupRolePK the primary key of the user group group role
099            * @return the user group group role that was removed
100            * @throws PortalException if a user group group role with the primary key could not be found
101            */
102            @Override
103            public com.liferay.portal.model.UserGroupGroupRole deleteUserGroupGroupRole(
104                    com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK)
105                    throws com.liferay.portal.kernel.exception.PortalException {
106                    return _userGroupGroupRoleLocalService.deleteUserGroupGroupRole(userGroupGroupRolePK);
107            }
108    
109            @Override
110            public void deleteUserGroupGroupRoles(long userGroupId, long groupId,
111                    long[] roleIds) {
112                    _userGroupGroupRoleLocalService.deleteUserGroupGroupRoles(userGroupId,
113                            groupId, roleIds);
114            }
115    
116            @Override
117            public void deleteUserGroupGroupRoles(long userGroupId, long[] groupIds) {
118                    _userGroupGroupRoleLocalService.deleteUserGroupGroupRoles(userGroupId,
119                            groupIds);
120            }
121    
122            @Override
123            public void deleteUserGroupGroupRoles(long[] userGroupIds, long groupId) {
124                    _userGroupGroupRoleLocalService.deleteUserGroupGroupRoles(userGroupIds,
125                            groupId);
126            }
127    
128            @Override
129            public void deleteUserGroupGroupRoles(long[] userGroupIds, long groupId,
130                    long roleId) {
131                    _userGroupGroupRoleLocalService.deleteUserGroupGroupRoles(userGroupIds,
132                            groupId, roleId);
133            }
134    
135            @Override
136            public void deleteUserGroupGroupRolesByGroupId(long groupId) {
137                    _userGroupGroupRoleLocalService.deleteUserGroupGroupRolesByGroupId(groupId);
138            }
139    
140            @Override
141            public void deleteUserGroupGroupRolesByRoleId(long roleId) {
142                    _userGroupGroupRoleLocalService.deleteUserGroupGroupRolesByRoleId(roleId);
143            }
144    
145            @Override
146            public void deleteUserGroupGroupRolesByUserGroupId(long userGroupId) {
147                    _userGroupGroupRoleLocalService.deleteUserGroupGroupRolesByUserGroupId(userGroupId);
148            }
149    
150            @Override
151            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
152                    return _userGroupGroupRoleLocalService.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 _userGroupGroupRoleLocalService.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.UserGroupGroupRoleModelImpl}. 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 _userGroupGroupRoleLocalService.dynamicQuery(dynamicQuery,
184                            start, end);
185            }
186    
187            /**
188            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
189            *
190            * <p>
191            * 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.UserGroupGroupRoleModelImpl}. 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.
192            * </p>
193            *
194            * @param dynamicQuery the dynamic query
195            * @param start the lower bound of the range of model instances
196            * @param end the upper bound of the range of model instances (not inclusive)
197            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
198            * @return the ordered range of matching rows
199            */
200            @Override
201            public <T> java.util.List<T> dynamicQuery(
202                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
203                    int end,
204                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
205                    return _userGroupGroupRoleLocalService.dynamicQuery(dynamicQuery,
206                            start, end, orderByComparator);
207            }
208    
209            /**
210            * Returns the number of rows matching the dynamic query.
211            *
212            * @param dynamicQuery the dynamic query
213            * @return the number of rows matching the dynamic query
214            */
215            @Override
216            public long dynamicQueryCount(
217                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
218                    return _userGroupGroupRoleLocalService.dynamicQueryCount(dynamicQuery);
219            }
220    
221            /**
222            * Returns the number of rows matching the dynamic query.
223            *
224            * @param dynamicQuery the dynamic query
225            * @param projection the projection to apply to the query
226            * @return the number of rows matching the dynamic query
227            */
228            @Override
229            public long dynamicQueryCount(
230                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
231                    com.liferay.portal.kernel.dao.orm.Projection projection) {
232                    return _userGroupGroupRoleLocalService.dynamicQueryCount(dynamicQuery,
233                            projection);
234            }
235    
236            @Override
237            public com.liferay.portal.model.UserGroupGroupRole fetchUserGroupGroupRole(
238                    com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK) {
239                    return _userGroupGroupRoleLocalService.fetchUserGroupGroupRole(userGroupGroupRolePK);
240            }
241    
242            @Override
243            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
244                    return _userGroupGroupRoleLocalService.getActionableDynamicQuery();
245            }
246    
247            /**
248            * Returns the Spring bean ID for this bean.
249            *
250            * @return the Spring bean ID for this bean
251            */
252            @Override
253            public java.lang.String getBeanIdentifier() {
254                    return _userGroupGroupRoleLocalService.getBeanIdentifier();
255            }
256    
257            @Override
258            public com.liferay.portal.model.PersistedModel getPersistedModel(
259                    java.io.Serializable primaryKeyObj)
260                    throws com.liferay.portal.kernel.exception.PortalException {
261                    return _userGroupGroupRoleLocalService.getPersistedModel(primaryKeyObj);
262            }
263    
264            /**
265            * Returns the user group group role with the primary key.
266            *
267            * @param userGroupGroupRolePK the primary key of the user group group role
268            * @return the user group group role
269            * @throws PortalException if a user group group role with the primary key could not be found
270            */
271            @Override
272            public com.liferay.portal.model.UserGroupGroupRole getUserGroupGroupRole(
273                    com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK)
274                    throws com.liferay.portal.kernel.exception.PortalException {
275                    return _userGroupGroupRoleLocalService.getUserGroupGroupRole(userGroupGroupRolePK);
276            }
277    
278            /**
279            * Returns a range of all the user group group roles.
280            *
281            * <p>
282            * 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.UserGroupGroupRoleModelImpl}. 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.
283            * </p>
284            *
285            * @param start the lower bound of the range of user group group roles
286            * @param end the upper bound of the range of user group group roles (not inclusive)
287            * @return the range of user group group roles
288            */
289            @Override
290            public java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRoles(
291                    int start, int end) {
292                    return _userGroupGroupRoleLocalService.getUserGroupGroupRoles(start, end);
293            }
294    
295            @Override
296            public java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRoles(
297                    long userGroupId) {
298                    return _userGroupGroupRoleLocalService.getUserGroupGroupRoles(userGroupId);
299            }
300    
301            @Override
302            public java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRoles(
303                    long userGroupId, long groupId) {
304                    return _userGroupGroupRoleLocalService.getUserGroupGroupRoles(userGroupId,
305                            groupId);
306            }
307    
308            @Override
309            public java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRolesByGroupAndRole(
310                    long groupId, long roleId) {
311                    return _userGroupGroupRoleLocalService.getUserGroupGroupRolesByGroupAndRole(groupId,
312                            roleId);
313            }
314    
315            @Override
316            public java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRolesByUser(
317                    long userId) {
318                    return _userGroupGroupRoleLocalService.getUserGroupGroupRolesByUser(userId);
319            }
320    
321            /**
322            * Returns the number of user group group roles.
323            *
324            * @return the number of user group group roles
325            */
326            @Override
327            public int getUserGroupGroupRolesCount() {
328                    return _userGroupGroupRoleLocalService.getUserGroupGroupRolesCount();
329            }
330    
331            @Override
332            public boolean hasUserGroupGroupRole(long userGroupId, long groupId,
333                    long roleId) {
334                    return _userGroupGroupRoleLocalService.hasUserGroupGroupRole(userGroupId,
335                            groupId, roleId);
336            }
337    
338            @Override
339            public boolean hasUserGroupGroupRole(long userGroupId, long groupId,
340                    java.lang.String roleName)
341                    throws com.liferay.portal.kernel.exception.PortalException {
342                    return _userGroupGroupRoleLocalService.hasUserGroupGroupRole(userGroupId,
343                            groupId, roleName);
344            }
345    
346            /**
347            * Sets the Spring bean ID for this bean.
348            *
349            * @param beanIdentifier the Spring bean ID for this bean
350            */
351            @Override
352            public void setBeanIdentifier(java.lang.String beanIdentifier) {
353                    _userGroupGroupRoleLocalService.setBeanIdentifier(beanIdentifier);
354            }
355    
356            /**
357            * Updates the user group group role in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
358            *
359            * @param userGroupGroupRole the user group group role
360            * @return the user group group role that was updated
361            */
362            @Override
363            public com.liferay.portal.model.UserGroupGroupRole updateUserGroupGroupRole(
364                    com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole) {
365                    return _userGroupGroupRoleLocalService.updateUserGroupGroupRole(userGroupGroupRole);
366            }
367    
368            /**
369             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
370             */
371            @Deprecated
372            public UserGroupGroupRoleLocalService getWrappedUserGroupGroupRoleLocalService() {
373                    return _userGroupGroupRoleLocalService;
374            }
375    
376            /**
377             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
378             */
379            @Deprecated
380            public void setWrappedUserGroupGroupRoleLocalService(
381                    UserGroupGroupRoleLocalService userGroupGroupRoleLocalService) {
382                    _userGroupGroupRoleLocalService = userGroupGroupRoleLocalService;
383            }
384    
385            @Override
386            public UserGroupGroupRoleLocalService getWrappedService() {
387                    return _userGroupGroupRoleLocalService;
388            }
389    
390            @Override
391            public void setWrappedService(
392                    UserGroupGroupRoleLocalService userGroupGroupRoleLocalService) {
393                    _userGroupGroupRoleLocalService = userGroupGroupRoleLocalService;
394            }
395    
396            private UserGroupGroupRoleLocalService _userGroupGroupRoleLocalService;
397    }