001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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            * @throws SystemException if a system exception occurred
041            */
042            @Override
043            public com.liferay.portal.model.UserGroupRole addUserGroupRole(
044                    com.liferay.portal.model.UserGroupRole userGroupRole)
045                    throws com.liferay.portal.kernel.exception.SystemException {
046                    return _userGroupRoleLocalService.addUserGroupRole(userGroupRole);
047            }
048    
049            /**
050            * Creates a new user group role with the primary key. Does not add the user group role to the database.
051            *
052            * @param userGroupRolePK the primary key for the new user group role
053            * @return the new user group role
054            */
055            @Override
056            public com.liferay.portal.model.UserGroupRole createUserGroupRole(
057                    com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK) {
058                    return _userGroupRoleLocalService.createUserGroupRole(userGroupRolePK);
059            }
060    
061            /**
062            * Deletes the user group role with the primary key from the database. Also notifies the appropriate model listeners.
063            *
064            * @param userGroupRolePK the primary key of the user group role
065            * @return the user group role that was removed
066            * @throws PortalException if a user group role with the primary key could not be found
067            * @throws SystemException if a system exception occurred
068            */
069            @Override
070            public com.liferay.portal.model.UserGroupRole deleteUserGroupRole(
071                    com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
072                    throws com.liferay.portal.kernel.exception.PortalException,
073                            com.liferay.portal.kernel.exception.SystemException {
074                    return _userGroupRoleLocalService.deleteUserGroupRole(userGroupRolePK);
075            }
076    
077            /**
078            * Deletes the user group role from the database. Also notifies the appropriate model listeners.
079            *
080            * @param userGroupRole the user group role
081            * @return the user group role that was removed
082            * @throws SystemException if a system exception occurred
083            */
084            @Override
085            public com.liferay.portal.model.UserGroupRole deleteUserGroupRole(
086                    com.liferay.portal.model.UserGroupRole userGroupRole)
087                    throws com.liferay.portal.kernel.exception.SystemException {
088                    return _userGroupRoleLocalService.deleteUserGroupRole(userGroupRole);
089            }
090    
091            @Override
092            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
093                    return _userGroupRoleLocalService.dynamicQuery();
094            }
095    
096            /**
097            * Performs a dynamic query on the database and returns the matching rows.
098            *
099            * @param dynamicQuery the dynamic query
100            * @return the matching rows
101            * @throws SystemException if a system exception occurred
102            */
103            @Override
104            @SuppressWarnings("rawtypes")
105            public java.util.List dynamicQuery(
106                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
107                    throws com.liferay.portal.kernel.exception.SystemException {
108                    return _userGroupRoleLocalService.dynamicQuery(dynamicQuery);
109            }
110    
111            /**
112            * Performs a dynamic query on the database and returns a range of the matching rows.
113            *
114            * <p>
115            * 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.
116            * </p>
117            *
118            * @param dynamicQuery the dynamic query
119            * @param start the lower bound of the range of model instances
120            * @param end the upper bound of the range of model instances (not inclusive)
121            * @return the range of matching rows
122            * @throws SystemException if a system exception occurred
123            */
124            @Override
125            @SuppressWarnings("rawtypes")
126            public java.util.List dynamicQuery(
127                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
128                    int end) throws com.liferay.portal.kernel.exception.SystemException {
129                    return _userGroupRoleLocalService.dynamicQuery(dynamicQuery, start, end);
130            }
131    
132            /**
133            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
134            *
135            * <p>
136            * 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.
137            * </p>
138            *
139            * @param dynamicQuery the dynamic query
140            * @param start the lower bound of the range of model instances
141            * @param end the upper bound of the range of model instances (not inclusive)
142            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
143            * @return the ordered range of matching rows
144            * @throws SystemException if a system exception occurred
145            */
146            @Override
147            @SuppressWarnings("rawtypes")
148            public java.util.List dynamicQuery(
149                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
150                    int end,
151                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
152                    throws com.liferay.portal.kernel.exception.SystemException {
153                    return _userGroupRoleLocalService.dynamicQuery(dynamicQuery, start,
154                            end, orderByComparator);
155            }
156    
157            /**
158            * Returns the number of rows that match the dynamic query.
159            *
160            * @param dynamicQuery the dynamic query
161            * @return the number of rows that match the dynamic query
162            * @throws SystemException if a system exception occurred
163            */
164            @Override
165            public long dynamicQueryCount(
166                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
167                    throws com.liferay.portal.kernel.exception.SystemException {
168                    return _userGroupRoleLocalService.dynamicQueryCount(dynamicQuery);
169            }
170    
171            /**
172            * Returns the number of rows that match the dynamic query.
173            *
174            * @param dynamicQuery the dynamic query
175            * @param projection the projection to apply to the query
176            * @return the number of rows that match the dynamic query
177            * @throws SystemException if a system exception occurred
178            */
179            @Override
180            public long dynamicQueryCount(
181                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
182                    com.liferay.portal.kernel.dao.orm.Projection projection)
183                    throws com.liferay.portal.kernel.exception.SystemException {
184                    return _userGroupRoleLocalService.dynamicQueryCount(dynamicQuery,
185                            projection);
186            }
187    
188            @Override
189            public com.liferay.portal.model.UserGroupRole fetchUserGroupRole(
190                    com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
191                    throws com.liferay.portal.kernel.exception.SystemException {
192                    return _userGroupRoleLocalService.fetchUserGroupRole(userGroupRolePK);
193            }
194    
195            /**
196            * Returns the user group role with the primary key.
197            *
198            * @param userGroupRolePK the primary key of the user group role
199            * @return the user group role
200            * @throws PortalException if a user group role with the primary key could not be found
201            * @throws SystemException if a system exception occurred
202            */
203            @Override
204            public com.liferay.portal.model.UserGroupRole getUserGroupRole(
205                    com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
206                    throws com.liferay.portal.kernel.exception.PortalException,
207                            com.liferay.portal.kernel.exception.SystemException {
208                    return _userGroupRoleLocalService.getUserGroupRole(userGroupRolePK);
209            }
210    
211            @Override
212            public com.liferay.portal.model.PersistedModel getPersistedModel(
213                    java.io.Serializable primaryKeyObj)
214                    throws com.liferay.portal.kernel.exception.PortalException,
215                            com.liferay.portal.kernel.exception.SystemException {
216                    return _userGroupRoleLocalService.getPersistedModel(primaryKeyObj);
217            }
218    
219            /**
220            * Returns a range of all the user group roles.
221            *
222            * <p>
223            * 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.
224            * </p>
225            *
226            * @param start the lower bound of the range of user group roles
227            * @param end the upper bound of the range of user group roles (not inclusive)
228            * @return the range of user group roles
229            * @throws SystemException if a system exception occurred
230            */
231            @Override
232            public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
233                    int start, int end)
234                    throws com.liferay.portal.kernel.exception.SystemException {
235                    return _userGroupRoleLocalService.getUserGroupRoles(start, end);
236            }
237    
238            /**
239            * Returns the number of user group roles.
240            *
241            * @return the number of user group roles
242            * @throws SystemException if a system exception occurred
243            */
244            @Override
245            public int getUserGroupRolesCount()
246                    throws com.liferay.portal.kernel.exception.SystemException {
247                    return _userGroupRoleLocalService.getUserGroupRolesCount();
248            }
249    
250            /**
251            * Updates the user group role in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
252            *
253            * @param userGroupRole the user group role
254            * @return the user group role that was updated
255            * @throws SystemException if a system exception occurred
256            */
257            @Override
258            public com.liferay.portal.model.UserGroupRole updateUserGroupRole(
259                    com.liferay.portal.model.UserGroupRole userGroupRole)
260                    throws com.liferay.portal.kernel.exception.SystemException {
261                    return _userGroupRoleLocalService.updateUserGroupRole(userGroupRole);
262            }
263    
264            /**
265            * Returns the Spring bean ID for this bean.
266            *
267            * @return the Spring bean ID for this bean
268            */
269            @Override
270            public java.lang.String getBeanIdentifier() {
271                    return _userGroupRoleLocalService.getBeanIdentifier();
272            }
273    
274            /**
275            * Sets the Spring bean ID for this bean.
276            *
277            * @param beanIdentifier the Spring bean ID for this bean
278            */
279            @Override
280            public void setBeanIdentifier(java.lang.String beanIdentifier) {
281                    _userGroupRoleLocalService.setBeanIdentifier(beanIdentifier);
282            }
283    
284            @Override
285            public java.util.List<com.liferay.portal.model.UserGroupRole> addUserGroupRoles(
286                    long userId, long groupId, long[] roleIds)
287                    throws com.liferay.portal.kernel.exception.SystemException {
288                    return _userGroupRoleLocalService.addUserGroupRoles(userId, groupId,
289                            roleIds);
290            }
291    
292            @Override
293            public java.util.List<com.liferay.portal.model.UserGroupRole> addUserGroupRoles(
294                    long[] userIds, long groupId, long roleId)
295                    throws com.liferay.portal.kernel.exception.SystemException {
296                    return _userGroupRoleLocalService.addUserGroupRoles(userIds, groupId,
297                            roleId);
298            }
299    
300            @Override
301            public void deleteUserGroupRoles(long userId, long groupId, long[] roleIds)
302                    throws com.liferay.portal.kernel.exception.SystemException {
303                    _userGroupRoleLocalService.deleteUserGroupRoles(userId, groupId, roleIds);
304            }
305    
306            @Override
307            public void deleteUserGroupRoles(long userId, long[] groupIds)
308                    throws com.liferay.portal.kernel.exception.SystemException {
309                    _userGroupRoleLocalService.deleteUserGroupRoles(userId, groupIds);
310            }
311    
312            @Override
313            public void deleteUserGroupRoles(long[] userIds, long groupId)
314                    throws com.liferay.portal.kernel.exception.SystemException {
315                    _userGroupRoleLocalService.deleteUserGroupRoles(userIds, groupId);
316            }
317    
318            @Override
319            public void deleteUserGroupRoles(long[] userIds, long groupId, int roleType)
320                    throws com.liferay.portal.kernel.exception.SystemException {
321                    _userGroupRoleLocalService.deleteUserGroupRoles(userIds, groupId,
322                            roleType);
323            }
324    
325            @Override
326            public void deleteUserGroupRoles(long[] userIds, long groupId, long roleId)
327                    throws com.liferay.portal.kernel.exception.SystemException {
328                    _userGroupRoleLocalService.deleteUserGroupRoles(userIds, groupId, roleId);
329            }
330    
331            @Override
332            public void deleteUserGroupRolesByGroupId(long groupId)
333                    throws com.liferay.portal.kernel.exception.SystemException {
334                    _userGroupRoleLocalService.deleteUserGroupRolesByGroupId(groupId);
335            }
336    
337            @Override
338            public void deleteUserGroupRolesByRoleId(long roleId)
339                    throws com.liferay.portal.kernel.exception.SystemException {
340                    _userGroupRoleLocalService.deleteUserGroupRolesByRoleId(roleId);
341            }
342    
343            @Override
344            public void deleteUserGroupRolesByUserId(long userId)
345                    throws com.liferay.portal.kernel.exception.SystemException {
346                    _userGroupRoleLocalService.deleteUserGroupRolesByUserId(userId);
347            }
348    
349            @Override
350            public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
351                    long userId) throws com.liferay.portal.kernel.exception.SystemException {
352                    return _userGroupRoleLocalService.getUserGroupRoles(userId);
353            }
354    
355            @Override
356            public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
357                    long userId, long groupId)
358                    throws com.liferay.portal.kernel.exception.SystemException {
359                    return _userGroupRoleLocalService.getUserGroupRoles(userId, groupId);
360            }
361    
362            @Override
363            public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
364                    long userId, long groupId, int start, int end)
365                    throws com.liferay.portal.kernel.exception.SystemException {
366                    return _userGroupRoleLocalService.getUserGroupRoles(userId, groupId,
367                            start, end);
368            }
369    
370            @Override
371            public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRolesByGroup(
372                    long groupId)
373                    throws com.liferay.portal.kernel.exception.SystemException {
374                    return _userGroupRoleLocalService.getUserGroupRolesByGroup(groupId);
375            }
376    
377            @Override
378            public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRolesByGroupAndRole(
379                    long groupId, long roleId)
380                    throws com.liferay.portal.kernel.exception.SystemException {
381                    return _userGroupRoleLocalService.getUserGroupRolesByGroupAndRole(groupId,
382                            roleId);
383            }
384    
385            @Override
386            public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRolesByUserUserGroupAndGroup(
387                    long userId, long groupId)
388                    throws com.liferay.portal.kernel.exception.SystemException {
389                    return _userGroupRoleLocalService.getUserGroupRolesByUserUserGroupAndGroup(userId,
390                            groupId);
391            }
392    
393            @Override
394            public int getUserGroupRolesCount(long userId, long groupId)
395                    throws com.liferay.portal.kernel.exception.SystemException {
396                    return _userGroupRoleLocalService.getUserGroupRolesCount(userId, groupId);
397            }
398    
399            @Override
400            public boolean hasUserGroupRole(long userId, long groupId, long roleId)
401                    throws com.liferay.portal.kernel.exception.SystemException {
402                    return _userGroupRoleLocalService.hasUserGroupRole(userId, groupId,
403                            roleId);
404            }
405    
406            @Override
407            public boolean hasUserGroupRole(long userId, long groupId, long roleId,
408                    boolean inherit)
409                    throws com.liferay.portal.kernel.exception.SystemException {
410                    return _userGroupRoleLocalService.hasUserGroupRole(userId, groupId,
411                            roleId, inherit);
412            }
413    
414            @Override
415            public boolean hasUserGroupRole(long userId, long groupId,
416                    java.lang.String roleName)
417                    throws com.liferay.portal.kernel.exception.PortalException,
418                            com.liferay.portal.kernel.exception.SystemException {
419                    return _userGroupRoleLocalService.hasUserGroupRole(userId, groupId,
420                            roleName);
421            }
422    
423            @Override
424            public boolean hasUserGroupRole(long userId, long groupId,
425                    java.lang.String roleName, boolean inherit)
426                    throws com.liferay.portal.kernel.exception.PortalException,
427                            com.liferay.portal.kernel.exception.SystemException {
428                    return _userGroupRoleLocalService.hasUserGroupRole(userId, groupId,
429                            roleName, inherit);
430            }
431    
432            /**
433             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
434             */
435            public UserGroupRoleLocalService getWrappedUserGroupRoleLocalService() {
436                    return _userGroupRoleLocalService;
437            }
438    
439            /**
440             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
441             */
442            public void setWrappedUserGroupRoleLocalService(
443                    UserGroupRoleLocalService userGroupRoleLocalService) {
444                    _userGroupRoleLocalService = userGroupRoleLocalService;
445            }
446    
447            @Override
448            public UserGroupRoleLocalService getWrappedService() {
449                    return _userGroupRoleLocalService;
450            }
451    
452            @Override
453            public void setWrappedService(
454                    UserGroupRoleLocalService userGroupRoleLocalService) {
455                    _userGroupRoleLocalService = userGroupRoleLocalService;
456            }
457    
458            private UserGroupRoleLocalService _userGroupRoleLocalService;
459    }