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