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