001    /**
002     * Copyright (c) 2000-2010 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            public UserGroupGroupRoleLocalServiceWrapper(
029                    UserGroupGroupRoleLocalService userGroupGroupRoleLocalService) {
030                    _userGroupGroupRoleLocalService = userGroupGroupRoleLocalService;
031            }
032    
033            /**
034            * Adds the user group group role to the database. Also notifies the appropriate model listeners.
035            *
036            * @param userGroupGroupRole the user group group role to add
037            * @return the user group group role that was added
038            * @throws SystemException if a system exception occurred
039            */
040            public com.liferay.portal.model.UserGroupGroupRole addUserGroupGroupRole(
041                    com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole)
042                    throws com.liferay.portal.kernel.exception.SystemException {
043                    return _userGroupGroupRoleLocalService.addUserGroupGroupRole(userGroupGroupRole);
044            }
045    
046            /**
047            * Creates a new user group group role with the primary key. Does not add the user group group role to the database.
048            *
049            * @param userGroupGroupRolePK the primary key for the new user group group role
050            * @return the new user group group role
051            */
052            public com.liferay.portal.model.UserGroupGroupRole createUserGroupGroupRole(
053                    com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK) {
054                    return _userGroupGroupRoleLocalService.createUserGroupGroupRole(userGroupGroupRolePK);
055            }
056    
057            /**
058            * Deletes the user group group role with the primary key from the database. Also notifies the appropriate model listeners.
059            *
060            * @param userGroupGroupRolePK the primary key of the user group group role to delete
061            * @throws PortalException if a user group group role with the primary key could not be found
062            * @throws SystemException if a system exception occurred
063            */
064            public void deleteUserGroupGroupRole(
065                    com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK)
066                    throws com.liferay.portal.kernel.exception.PortalException,
067                            com.liferay.portal.kernel.exception.SystemException {
068                    _userGroupGroupRoleLocalService.deleteUserGroupGroupRole(userGroupGroupRolePK);
069            }
070    
071            /**
072            * Deletes the user group group role from the database. Also notifies the appropriate model listeners.
073            *
074            * @param userGroupGroupRole the user group group role to delete
075            * @throws SystemException if a system exception occurred
076            */
077            public void deleteUserGroupGroupRole(
078                    com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole)
079                    throws com.liferay.portal.kernel.exception.SystemException {
080                    _userGroupGroupRoleLocalService.deleteUserGroupGroupRole(userGroupGroupRole);
081            }
082    
083            /**
084            * Performs a dynamic query on the database and returns the matching rows.
085            *
086            * @param dynamicQuery the dynamic query to search with
087            * @return the matching rows
088            * @throws SystemException if a system exception occurred
089            */
090            @SuppressWarnings("rawtypes")
091            public java.util.List dynamicQuery(
092                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
093                    throws com.liferay.portal.kernel.exception.SystemException {
094                    return _userGroupGroupRoleLocalService.dynamicQuery(dynamicQuery);
095            }
096    
097            /**
098            * Performs a dynamic query on the database and returns a range of the matching rows.
099            *
100            * <p>
101            * 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.
102            * </p>
103            *
104            * @param dynamicQuery the dynamic query to search with
105            * @param start the lower bound of the range of model instances to return
106            * @param end the upper bound of the range of model instances to return (not inclusive)
107            * @return the range of matching rows
108            * @throws SystemException if a system exception occurred
109            */
110            @SuppressWarnings("rawtypes")
111            public java.util.List dynamicQuery(
112                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
113                    int end) throws com.liferay.portal.kernel.exception.SystemException {
114                    return _userGroupGroupRoleLocalService.dynamicQuery(dynamicQuery,
115                            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 to search with
126            * @param start the lower bound of the range of model instances to return
127            * @param end the upper bound of the range of model instances to return (not inclusive)
128            * @param orderByComparator the comparator to order the results by
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 _userGroupGroupRoleLocalService.dynamicQuery(dynamicQuery,
139                            start, end, orderByComparator);
140            }
141    
142            /**
143            * Counts the number of rows that match the dynamic query.
144            *
145            * @param dynamicQuery the dynamic query to search with
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 _userGroupGroupRoleLocalService.dynamicQueryCount(dynamicQuery);
153            }
154    
155            /**
156            * Gets the user group group role with the primary key.
157            *
158            * @param userGroupGroupRolePK the primary key of the user group group role to get
159            * @return the user group group role
160            * @throws PortalException if a user group group role with the primary key could not be found
161            * @throws SystemException if a system exception occurred
162            */
163            public com.liferay.portal.model.UserGroupGroupRole getUserGroupGroupRole(
164                    com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK)
165                    throws com.liferay.portal.kernel.exception.PortalException,
166                            com.liferay.portal.kernel.exception.SystemException {
167                    return _userGroupGroupRoleLocalService.getUserGroupGroupRole(userGroupGroupRolePK);
168            }
169    
170            /**
171            * Gets a range of all the user group group roles.
172            *
173            * <p>
174            * 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.
175            * </p>
176            *
177            * @param start the lower bound of the range of user group group roles to return
178            * @param end the upper bound of the range of user group group roles to return (not inclusive)
179            * @return the range of user group group roles
180            * @throws SystemException if a system exception occurred
181            */
182            public java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRoles(
183                    int start, int end)
184                    throws com.liferay.portal.kernel.exception.SystemException {
185                    return _userGroupGroupRoleLocalService.getUserGroupGroupRoles(start, end);
186            }
187    
188            /**
189            * Gets the number of user group group roles.
190            *
191            * @return the number of user group group roles
192            * @throws SystemException if a system exception occurred
193            */
194            public int getUserGroupGroupRolesCount()
195                    throws com.liferay.portal.kernel.exception.SystemException {
196                    return _userGroupGroupRoleLocalService.getUserGroupGroupRolesCount();
197            }
198    
199            /**
200            * Updates the user group group role in the database. Also notifies the appropriate model listeners.
201            *
202            * @param userGroupGroupRole the user group group role to update
203            * @return the user group group role that was updated
204            * @throws SystemException if a system exception occurred
205            */
206            public com.liferay.portal.model.UserGroupGroupRole updateUserGroupGroupRole(
207                    com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole)
208                    throws com.liferay.portal.kernel.exception.SystemException {
209                    return _userGroupGroupRoleLocalService.updateUserGroupGroupRole(userGroupGroupRole);
210            }
211    
212            /**
213            * Updates the user group group role in the database. Also notifies the appropriate model listeners.
214            *
215            * @param userGroupGroupRole the user group group role to update
216            * @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.
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                    boolean merge)
223                    throws com.liferay.portal.kernel.exception.SystemException {
224                    return _userGroupGroupRoleLocalService.updateUserGroupGroupRole(userGroupGroupRole,
225                            merge);
226            }
227    
228            public void addUserGroupGroupRoles(long userGroupId, long groupId,
229                    long[] roleIds)
230                    throws com.liferay.portal.kernel.exception.PortalException,
231                            com.liferay.portal.kernel.exception.SystemException {
232                    _userGroupGroupRoleLocalService.addUserGroupGroupRoles(userGroupId,
233                            groupId, roleIds);
234            }
235    
236            public void addUserGroupGroupRoles(long[] userGroupIds, long groupId,
237                    long roleId)
238                    throws com.liferay.portal.kernel.exception.PortalException,
239                            com.liferay.portal.kernel.exception.SystemException {
240                    _userGroupGroupRoleLocalService.addUserGroupGroupRoles(userGroupIds,
241                            groupId, roleId);
242            }
243    
244            public void deleteUserGroupGroupRoles(long userGroupId, long groupId,
245                    long[] roleIds)
246                    throws com.liferay.portal.kernel.exception.SystemException {
247                    _userGroupGroupRoleLocalService.deleteUserGroupGroupRoles(userGroupId,
248                            groupId, roleIds);
249            }
250    
251            public void deleteUserGroupGroupRoles(long userGroupId, long[] groupIds)
252                    throws com.liferay.portal.kernel.exception.SystemException {
253                    _userGroupGroupRoleLocalService.deleteUserGroupGroupRoles(userGroupId,
254                            groupIds);
255            }
256    
257            public void deleteUserGroupGroupRoles(long[] userGroupIds, long groupId)
258                    throws com.liferay.portal.kernel.exception.SystemException {
259                    _userGroupGroupRoleLocalService.deleteUserGroupGroupRoles(userGroupIds,
260                            groupId);
261            }
262    
263            public void deleteUserGroupGroupRoles(long[] userGroupIds, long groupId,
264                    long roleId) throws com.liferay.portal.kernel.exception.SystemException {
265                    _userGroupGroupRoleLocalService.deleteUserGroupGroupRoles(userGroupIds,
266                            groupId, roleId);
267            }
268    
269            public void deleteUserGroupGroupRolesByGroupId(long groupId)
270                    throws com.liferay.portal.kernel.exception.SystemException {
271                    _userGroupGroupRoleLocalService.deleteUserGroupGroupRolesByGroupId(groupId);
272            }
273    
274            public void deleteUserGroupGroupRolesByRoleId(long roleId)
275                    throws com.liferay.portal.kernel.exception.SystemException {
276                    _userGroupGroupRoleLocalService.deleteUserGroupGroupRolesByRoleId(roleId);
277            }
278    
279            public void deleteUserGroupGroupRolesByUserGroupId(long userGroupId)
280                    throws com.liferay.portal.kernel.exception.SystemException {
281                    _userGroupGroupRoleLocalService.deleteUserGroupGroupRolesByUserGroupId(userGroupId);
282            }
283    
284            public java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRoles(
285                    long userGroupId)
286                    throws com.liferay.portal.kernel.exception.SystemException {
287                    return _userGroupGroupRoleLocalService.getUserGroupGroupRoles(userGroupId);
288            }
289    
290            public java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRoles(
291                    long userGroupId, long groupId)
292                    throws com.liferay.portal.kernel.exception.SystemException {
293                    return _userGroupGroupRoleLocalService.getUserGroupGroupRoles(userGroupId,
294                            groupId);
295            }
296    
297            public java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRolesByGroupAndRole(
298                    long groupId, long roleId)
299                    throws com.liferay.portal.kernel.exception.SystemException {
300                    return _userGroupGroupRoleLocalService.getUserGroupGroupRolesByGroupAndRole(groupId,
301                            roleId);
302            }
303    
304            public boolean hasUserGroupGroupRole(long userGroupId, long groupId,
305                    long roleId) throws com.liferay.portal.kernel.exception.SystemException {
306                    return _userGroupGroupRoleLocalService.hasUserGroupGroupRole(userGroupId,
307                            groupId, roleId);
308            }
309    
310            public boolean hasUserGroupGroupRole(long userGroupId, long groupId,
311                    java.lang.String roleName)
312                    throws com.liferay.portal.kernel.exception.PortalException,
313                            com.liferay.portal.kernel.exception.SystemException {
314                    return _userGroupGroupRoleLocalService.hasUserGroupGroupRole(userGroupId,
315                            groupId, roleName);
316            }
317    
318            public UserGroupGroupRoleLocalService getWrappedUserGroupGroupRoleLocalService() {
319                    return _userGroupGroupRoleLocalService;
320            }
321    
322            private UserGroupGroupRoleLocalService _userGroupGroupRoleLocalService;
323    }