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            @Override
254            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
255                    return _userGroupGroupRoleLocalService.getIndexableActionableDynamicQuery();
256            }
257    
258            /**
259            * Returns the OSGi service identifier.
260            *
261            * @return the OSGi service identifier
262            */
263            @Override
264            public java.lang.String getOSGiServiceIdentifier() {
265                    return _userGroupGroupRoleLocalService.getOSGiServiceIdentifier();
266            }
267    
268            @Override
269            public com.liferay.portal.model.PersistedModel getPersistedModel(
270                    java.io.Serializable primaryKeyObj)
271                    throws com.liferay.portal.kernel.exception.PortalException {
272                    return _userGroupGroupRoleLocalService.getPersistedModel(primaryKeyObj);
273            }
274    
275            /**
276            * Returns the user group group role with the primary key.
277            *
278            * @param userGroupGroupRolePK the primary key of the user group group role
279            * @return the user group group role
280            * @throws PortalException if a user group group role with the primary key could not be found
281            */
282            @Override
283            public com.liferay.portal.model.UserGroupGroupRole getUserGroupGroupRole(
284                    com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK)
285                    throws com.liferay.portal.kernel.exception.PortalException {
286                    return _userGroupGroupRoleLocalService.getUserGroupGroupRole(userGroupGroupRolePK);
287            }
288    
289            /**
290            * Returns a range of all the user group group roles.
291            *
292            * <p>
293            * 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.
294            * </p>
295            *
296            * @param start the lower bound of the range of user group group roles
297            * @param end the upper bound of the range of user group group roles (not inclusive)
298            * @return the range of user group group roles
299            */
300            @Override
301            public java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRoles(
302                    int start, int end) {
303                    return _userGroupGroupRoleLocalService.getUserGroupGroupRoles(start, end);
304            }
305    
306            @Override
307            public java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRoles(
308                    long userGroupId) {
309                    return _userGroupGroupRoleLocalService.getUserGroupGroupRoles(userGroupId);
310            }
311    
312            @Override
313            public java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRoles(
314                    long userGroupId, long groupId) {
315                    return _userGroupGroupRoleLocalService.getUserGroupGroupRoles(userGroupId,
316                            groupId);
317            }
318    
319            @Override
320            public java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRolesByGroupAndRole(
321                    long groupId, long roleId) {
322                    return _userGroupGroupRoleLocalService.getUserGroupGroupRolesByGroupAndRole(groupId,
323                            roleId);
324            }
325    
326            @Override
327            public java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRolesByUser(
328                    long userId) {
329                    return _userGroupGroupRoleLocalService.getUserGroupGroupRolesByUser(userId);
330            }
331    
332            /**
333            * Returns the number of user group group roles.
334            *
335            * @return the number of user group group roles
336            */
337            @Override
338            public int getUserGroupGroupRolesCount() {
339                    return _userGroupGroupRoleLocalService.getUserGroupGroupRolesCount();
340            }
341    
342            @Override
343            public boolean hasUserGroupGroupRole(long userGroupId, long groupId,
344                    long roleId) {
345                    return _userGroupGroupRoleLocalService.hasUserGroupGroupRole(userGroupId,
346                            groupId, roleId);
347            }
348    
349            @Override
350            public boolean hasUserGroupGroupRole(long userGroupId, long groupId,
351                    java.lang.String roleName)
352                    throws com.liferay.portal.kernel.exception.PortalException {
353                    return _userGroupGroupRoleLocalService.hasUserGroupGroupRole(userGroupId,
354                            groupId, roleName);
355            }
356    
357            /**
358            * Updates the user group group role in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
359            *
360            * @param userGroupGroupRole the user group group role
361            * @return the user group group role that was updated
362            */
363            @Override
364            public com.liferay.portal.model.UserGroupGroupRole updateUserGroupGroupRole(
365                    com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole) {
366                    return _userGroupGroupRoleLocalService.updateUserGroupGroupRole(userGroupGroupRole);
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    }