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