001    /**
002     * Copyright (c) 2000-2012 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    /**
018     * <p>
019     * This class is a wrapper for {@link UserGroupRoleLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       UserGroupRoleLocalService
024     * @generated
025     */
026    public class UserGroupRoleLocalServiceWrapper
027            implements UserGroupRoleLocalService,
028                    ServiceWrapper<UserGroupRoleLocalService> {
029            public UserGroupRoleLocalServiceWrapper(
030                    UserGroupRoleLocalService userGroupRoleLocalService) {
031                    _userGroupRoleLocalService = userGroupRoleLocalService;
032            }
033    
034            /**
035            * Adds the user group role to the database. Also notifies the appropriate model listeners.
036            *
037            * @param userGroupRole the user group role
038            * @return the user group role that was added
039            * @throws SystemException if a system exception occurred
040            */
041            public com.liferay.portal.model.UserGroupRole addUserGroupRole(
042                    com.liferay.portal.model.UserGroupRole userGroupRole)
043                    throws com.liferay.portal.kernel.exception.SystemException {
044                    return _userGroupRoleLocalService.addUserGroupRole(userGroupRole);
045            }
046    
047            /**
048            * Creates a new user group role with the primary key. Does not add the user group role to the database.
049            *
050            * @param userGroupRolePK the primary key for the new user group role
051            * @return the new user group role
052            */
053            public com.liferay.portal.model.UserGroupRole createUserGroupRole(
054                    com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK) {
055                    return _userGroupRoleLocalService.createUserGroupRole(userGroupRolePK);
056            }
057    
058            /**
059            * Deletes the user group role with the primary key from the database. Also notifies the appropriate model listeners.
060            *
061            * @param userGroupRolePK the primary key of the user group role
062            * @throws PortalException if a user group role with the primary key could not be found
063            * @throws SystemException if a system exception occurred
064            */
065            public void deleteUserGroupRole(
066                    com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
067                    throws com.liferay.portal.kernel.exception.PortalException,
068                            com.liferay.portal.kernel.exception.SystemException {
069                    _userGroupRoleLocalService.deleteUserGroupRole(userGroupRolePK);
070            }
071    
072            /**
073            * Deletes the user group role from the database. Also notifies the appropriate model listeners.
074            *
075            * @param userGroupRole the user group role
076            * @throws SystemException if a system exception occurred
077            */
078            public void deleteUserGroupRole(
079                    com.liferay.portal.model.UserGroupRole userGroupRole)
080                    throws com.liferay.portal.kernel.exception.SystemException {
081                    _userGroupRoleLocalService.deleteUserGroupRole(userGroupRole);
082            }
083    
084            /**
085            * Performs a dynamic query on the database and returns the matching rows.
086            *
087            * @param dynamicQuery the dynamic query
088            * @return the matching rows
089            * @throws SystemException if a system exception occurred
090            */
091            @SuppressWarnings("rawtypes")
092            public java.util.List dynamicQuery(
093                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
094                    throws com.liferay.portal.kernel.exception.SystemException {
095                    return _userGroupRoleLocalService.dynamicQuery(dynamicQuery);
096            }
097    
098            /**
099            * Performs a dynamic query on the database and returns a range of the matching rows.
100            *
101            * <p>
102            * 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.
103            * </p>
104            *
105            * @param dynamicQuery the dynamic query
106            * @param start the lower bound of the range of model instances
107            * @param end the upper bound of the range of model instances (not inclusive)
108            * @return the range of matching rows
109            * @throws SystemException if a system exception occurred
110            */
111            @SuppressWarnings("rawtypes")
112            public java.util.List dynamicQuery(
113                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
114                    int end) throws com.liferay.portal.kernel.exception.SystemException {
115                    return _userGroupRoleLocalService.dynamicQuery(dynamicQuery, start, end);
116            }
117    
118            /**
119            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
120            *
121            * <p>
122            * 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.
123            * </p>
124            *
125            * @param dynamicQuery the dynamic query
126            * @param start the lower bound of the range of model instances
127            * @param end the upper bound of the range of model instances (not inclusive)
128            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
129            * @return the ordered range of matching rows
130            * @throws SystemException if a system exception occurred
131            */
132            @SuppressWarnings("rawtypes")
133            public java.util.List dynamicQuery(
134                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
135                    int end,
136                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
137                    throws com.liferay.portal.kernel.exception.SystemException {
138                    return _userGroupRoleLocalService.dynamicQuery(dynamicQuery, start,
139                            end, orderByComparator);
140            }
141    
142            /**
143            * Returns the number of rows that match the dynamic query.
144            *
145            * @param dynamicQuery the dynamic query
146            * @return the number of rows that match the dynamic query
147            * @throws SystemException if a system exception occurred
148            */
149            public long dynamicQueryCount(
150                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
151                    throws com.liferay.portal.kernel.exception.SystemException {
152                    return _userGroupRoleLocalService.dynamicQueryCount(dynamicQuery);
153            }
154    
155            public com.liferay.portal.model.UserGroupRole fetchUserGroupRole(
156                    com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
157                    throws com.liferay.portal.kernel.exception.SystemException {
158                    return _userGroupRoleLocalService.fetchUserGroupRole(userGroupRolePK);
159            }
160    
161            /**
162            * Returns the user group role with the primary key.
163            *
164            * @param userGroupRolePK the primary key of the user group role
165            * @return the user group role
166            * @throws PortalException if a user group role with the primary key could not be found
167            * @throws SystemException if a system exception occurred
168            */
169            public com.liferay.portal.model.UserGroupRole getUserGroupRole(
170                    com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
171                    throws com.liferay.portal.kernel.exception.PortalException,
172                            com.liferay.portal.kernel.exception.SystemException {
173                    return _userGroupRoleLocalService.getUserGroupRole(userGroupRolePK);
174            }
175    
176            public com.liferay.portal.model.PersistedModel getPersistedModel(
177                    java.io.Serializable primaryKeyObj)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException {
180                    return _userGroupRoleLocalService.getPersistedModel(primaryKeyObj);
181            }
182    
183            /**
184            * Returns a range of all the user group roles.
185            *
186            * <p>
187            * 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.
188            * </p>
189            *
190            * @param start the lower bound of the range of user group roles
191            * @param end the upper bound of the range of user group roles (not inclusive)
192            * @return the range of user group roles
193            * @throws SystemException if a system exception occurred
194            */
195            public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
196                    int start, int end)
197                    throws com.liferay.portal.kernel.exception.SystemException {
198                    return _userGroupRoleLocalService.getUserGroupRoles(start, end);
199            }
200    
201            /**
202            * Returns the number of user group roles.
203            *
204            * @return the number of user group roles
205            * @throws SystemException if a system exception occurred
206            */
207            public int getUserGroupRolesCount()
208                    throws com.liferay.portal.kernel.exception.SystemException {
209                    return _userGroupRoleLocalService.getUserGroupRolesCount();
210            }
211    
212            /**
213            * Updates the user group role in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
214            *
215            * @param userGroupRole the user group role
216            * @return the user group role that was updated
217            * @throws SystemException if a system exception occurred
218            */
219            public com.liferay.portal.model.UserGroupRole updateUserGroupRole(
220                    com.liferay.portal.model.UserGroupRole userGroupRole)
221                    throws com.liferay.portal.kernel.exception.SystemException {
222                    return _userGroupRoleLocalService.updateUserGroupRole(userGroupRole);
223            }
224    
225            /**
226            * Updates the user group role in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
227            *
228            * @param userGroupRole the user group role
229            * @param merge whether to merge the user group role with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
230            * @return the user group role that was updated
231            * @throws SystemException if a system exception occurred
232            */
233            public com.liferay.portal.model.UserGroupRole updateUserGroupRole(
234                    com.liferay.portal.model.UserGroupRole userGroupRole, boolean merge)
235                    throws com.liferay.portal.kernel.exception.SystemException {
236                    return _userGroupRoleLocalService.updateUserGroupRole(userGroupRole,
237                            merge);
238            }
239    
240            /**
241            * Returns the Spring bean ID for this bean.
242            *
243            * @return the Spring bean ID for this bean
244            */
245            public java.lang.String getBeanIdentifier() {
246                    return _userGroupRoleLocalService.getBeanIdentifier();
247            }
248    
249            /**
250            * Sets the Spring bean ID for this bean.
251            *
252            * @param beanIdentifier the Spring bean ID for this bean
253            */
254            public void setBeanIdentifier(java.lang.String beanIdentifier) {
255                    _userGroupRoleLocalService.setBeanIdentifier(beanIdentifier);
256            }
257    
258            public void addUserGroupRoles(long userId, long groupId, long[] roleIds)
259                    throws com.liferay.portal.kernel.exception.PortalException,
260                            com.liferay.portal.kernel.exception.SystemException {
261                    _userGroupRoleLocalService.addUserGroupRoles(userId, groupId, roleIds);
262            }
263    
264            public void addUserGroupRoles(long[] userIds, long groupId, long roleId)
265                    throws com.liferay.portal.kernel.exception.PortalException,
266                            com.liferay.portal.kernel.exception.SystemException {
267                    _userGroupRoleLocalService.addUserGroupRoles(userIds, groupId, roleId);
268            }
269    
270            public void deleteUserGroupRoles(long userId, long groupId, long[] roleIds)
271                    throws com.liferay.portal.kernel.exception.SystemException {
272                    _userGroupRoleLocalService.deleteUserGroupRoles(userId, groupId, roleIds);
273            }
274    
275            public void deleteUserGroupRoles(long userId, long[] groupIds)
276                    throws com.liferay.portal.kernel.exception.SystemException {
277                    _userGroupRoleLocalService.deleteUserGroupRoles(userId, groupIds);
278            }
279    
280            public void deleteUserGroupRoles(long[] userIds, long groupId)
281                    throws com.liferay.portal.kernel.exception.SystemException {
282                    _userGroupRoleLocalService.deleteUserGroupRoles(userIds, groupId);
283            }
284    
285            public void deleteUserGroupRoles(long[] userIds, long groupId, long roleId)
286                    throws com.liferay.portal.kernel.exception.SystemException {
287                    _userGroupRoleLocalService.deleteUserGroupRoles(userIds, groupId, roleId);
288            }
289    
290            public void deleteUserGroupRolesByGroupId(long groupId)
291                    throws com.liferay.portal.kernel.exception.SystemException {
292                    _userGroupRoleLocalService.deleteUserGroupRolesByGroupId(groupId);
293            }
294    
295            public void deleteUserGroupRolesByRoleId(long roleId)
296                    throws com.liferay.portal.kernel.exception.SystemException {
297                    _userGroupRoleLocalService.deleteUserGroupRolesByRoleId(roleId);
298            }
299    
300            public void deleteUserGroupRolesByUserId(long userId)
301                    throws com.liferay.portal.kernel.exception.SystemException {
302                    _userGroupRoleLocalService.deleteUserGroupRolesByUserId(userId);
303            }
304    
305            public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
306                    long userId) throws com.liferay.portal.kernel.exception.SystemException {
307                    return _userGroupRoleLocalService.getUserGroupRoles(userId);
308            }
309    
310            public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
311                    long userId, long groupId)
312                    throws com.liferay.portal.kernel.exception.SystemException {
313                    return _userGroupRoleLocalService.getUserGroupRoles(userId, groupId);
314            }
315    
316            public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRolesByGroupAndRole(
317                    long groupId, long roleId)
318                    throws com.liferay.portal.kernel.exception.SystemException {
319                    return _userGroupRoleLocalService.getUserGroupRolesByGroupAndRole(groupId,
320                            roleId);
321            }
322    
323            public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRolesByUserUserGroupAndGroup(
324                    long userId, long groupId)
325                    throws com.liferay.portal.kernel.exception.SystemException {
326                    return _userGroupRoleLocalService.getUserGroupRolesByUserUserGroupAndGroup(userId,
327                            groupId);
328            }
329    
330            public boolean hasUserGroupRole(long userId, long groupId, long roleId)
331                    throws com.liferay.portal.kernel.exception.SystemException {
332                    return _userGroupRoleLocalService.hasUserGroupRole(userId, groupId,
333                            roleId);
334            }
335    
336            public boolean hasUserGroupRole(long userId, long groupId, long roleId,
337                    boolean inherit)
338                    throws com.liferay.portal.kernel.exception.SystemException {
339                    return _userGroupRoleLocalService.hasUserGroupRole(userId, groupId,
340                            roleId, inherit);
341            }
342    
343            public boolean hasUserGroupRole(long userId, long groupId,
344                    java.lang.String roleName)
345                    throws com.liferay.portal.kernel.exception.PortalException,
346                            com.liferay.portal.kernel.exception.SystemException {
347                    return _userGroupRoleLocalService.hasUserGroupRole(userId, groupId,
348                            roleName);
349            }
350    
351            public boolean hasUserGroupRole(long userId, long groupId,
352                    java.lang.String roleName, boolean inherit)
353                    throws com.liferay.portal.kernel.exception.PortalException,
354                            com.liferay.portal.kernel.exception.SystemException {
355                    return _userGroupRoleLocalService.hasUserGroupRole(userId, groupId,
356                            roleName, inherit);
357            }
358    
359            /**
360             * @deprecated Renamed to {@link #getWrappedService}
361             */
362            public UserGroupRoleLocalService getWrappedUserGroupRoleLocalService() {
363                    return _userGroupRoleLocalService;
364            }
365    
366            /**
367             * @deprecated Renamed to {@link #setWrappedService}
368             */
369            public void setWrappedUserGroupRoleLocalService(
370                    UserGroupRoleLocalService userGroupRoleLocalService) {
371                    _userGroupRoleLocalService = userGroupRoleLocalService;
372            }
373    
374            public UserGroupRoleLocalService getWrappedService() {
375                    return _userGroupRoleLocalService;
376            }
377    
378            public void setWrappedService(
379                    UserGroupRoleLocalService userGroupRoleLocalService) {
380                    _userGroupRoleLocalService = userGroupRoleLocalService;
381            }
382    
383            private UserGroupRoleLocalService _userGroupRoleLocalService;
384    }