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