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 GroupLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       GroupLocalService
024     * @generated
025     */
026    public class GroupLocalServiceWrapper implements GroupLocalService {
027            public GroupLocalServiceWrapper(GroupLocalService groupLocalService) {
028                    _groupLocalService = groupLocalService;
029            }
030    
031            /**
032            * Adds the group to the database. Also notifies the appropriate model listeners.
033            *
034            * @param group the group to add
035            * @return the group that was added
036            * @throws SystemException if a system exception occurred
037            */
038            public com.liferay.portal.model.Group addGroup(
039                    com.liferay.portal.model.Group group)
040                    throws com.liferay.portal.kernel.exception.SystemException {
041                    return _groupLocalService.addGroup(group);
042            }
043    
044            /**
045            * Creates a new group with the primary key. Does not add the group to the database.
046            *
047            * @param groupId the primary key for the new group
048            * @return the new group
049            */
050            public com.liferay.portal.model.Group createGroup(long groupId) {
051                    return _groupLocalService.createGroup(groupId);
052            }
053    
054            /**
055            * Deletes the group with the primary key from the database. Also notifies the appropriate model listeners.
056            *
057            * @param groupId the primary key of the group to delete
058            * @throws PortalException if a group with the primary key could not be found
059            * @throws SystemException if a system exception occurred
060            */
061            public void deleteGroup(long groupId)
062                    throws com.liferay.portal.kernel.exception.PortalException,
063                            com.liferay.portal.kernel.exception.SystemException {
064                    _groupLocalService.deleteGroup(groupId);
065            }
066    
067            /**
068            * Deletes the group from the database. Also notifies the appropriate model listeners.
069            *
070            * @param group the group to delete
071            * @throws SystemException if a system exception occurred
072            */
073            public void deleteGroup(com.liferay.portal.model.Group group)
074                    throws com.liferay.portal.kernel.exception.SystemException {
075                    _groupLocalService.deleteGroup(group);
076            }
077    
078            /**
079            * Performs a dynamic query on the database and returns the matching rows.
080            *
081            * @param dynamicQuery the dynamic query to search with
082            * @return the matching rows
083            * @throws SystemException if a system exception occurred
084            */
085            @SuppressWarnings("rawtypes")
086            public java.util.List dynamicQuery(
087                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
088                    throws com.liferay.portal.kernel.exception.SystemException {
089                    return _groupLocalService.dynamicQuery(dynamicQuery);
090            }
091    
092            /**
093            * Performs a dynamic query on the database and returns a range of the matching rows.
094            *
095            * <p>
096            * 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.
097            * </p>
098            *
099            * @param dynamicQuery the dynamic query to search with
100            * @param start the lower bound of the range of model instances to return
101            * @param end the upper bound of the range of model instances to return (not inclusive)
102            * @return the range of matching rows
103            * @throws SystemException if a system exception occurred
104            */
105            @SuppressWarnings("rawtypes")
106            public java.util.List dynamicQuery(
107                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
108                    int end) throws com.liferay.portal.kernel.exception.SystemException {
109                    return _groupLocalService.dynamicQuery(dynamicQuery, start, end);
110            }
111    
112            /**
113            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
114            *
115            * <p>
116            * 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.
117            * </p>
118            *
119            * @param dynamicQuery the dynamic query to search with
120            * @param start the lower bound of the range of model instances to return
121            * @param end the upper bound of the range of model instances to return (not inclusive)
122            * @param orderByComparator the comparator to order the results by
123            * @return the ordered range of matching rows
124            * @throws SystemException if a system exception occurred
125            */
126            @SuppressWarnings("rawtypes")
127            public java.util.List dynamicQuery(
128                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
129                    int end,
130                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
131                    throws com.liferay.portal.kernel.exception.SystemException {
132                    return _groupLocalService.dynamicQuery(dynamicQuery, start, end,
133                            orderByComparator);
134            }
135    
136            /**
137            * Counts the number of rows that match the dynamic query.
138            *
139            * @param dynamicQuery the dynamic query to search with
140            * @return the number of rows that match the dynamic query
141            * @throws SystemException if a system exception occurred
142            */
143            public long dynamicQueryCount(
144                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
145                    throws com.liferay.portal.kernel.exception.SystemException {
146                    return _groupLocalService.dynamicQueryCount(dynamicQuery);
147            }
148    
149            /**
150            * Gets the group with the primary key.
151            *
152            * @param groupId the primary key of the group to get
153            * @return the group
154            * @throws PortalException if a group with the primary key could not be found
155            * @throws SystemException if a system exception occurred
156            */
157            public com.liferay.portal.model.Group getGroup(long groupId)
158                    throws com.liferay.portal.kernel.exception.PortalException,
159                            com.liferay.portal.kernel.exception.SystemException {
160                    return _groupLocalService.getGroup(groupId);
161            }
162    
163            /**
164            * Gets a range of all the groups.
165            *
166            * <p>
167            * 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.
168            * </p>
169            *
170            * @param start the lower bound of the range of groups to return
171            * @param end the upper bound of the range of groups to return (not inclusive)
172            * @return the range of groups
173            * @throws SystemException if a system exception occurred
174            */
175            public java.util.List<com.liferay.portal.model.Group> getGroups(int start,
176                    int end) throws com.liferay.portal.kernel.exception.SystemException {
177                    return _groupLocalService.getGroups(start, end);
178            }
179    
180            /**
181            * Gets the number of groups.
182            *
183            * @return the number of groups
184            * @throws SystemException if a system exception occurred
185            */
186            public int getGroupsCount()
187                    throws com.liferay.portal.kernel.exception.SystemException {
188                    return _groupLocalService.getGroupsCount();
189            }
190    
191            /**
192            * Updates the group in the database. Also notifies the appropriate model listeners.
193            *
194            * @param group the group to update
195            * @return the group that was updated
196            * @throws SystemException if a system exception occurred
197            */
198            public com.liferay.portal.model.Group updateGroup(
199                    com.liferay.portal.model.Group group)
200                    throws com.liferay.portal.kernel.exception.SystemException {
201                    return _groupLocalService.updateGroup(group);
202            }
203    
204            /**
205            * Updates the group in the database. Also notifies the appropriate model listeners.
206            *
207            * @param group the group to update
208            * @param merge whether to merge the 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.
209            * @return the group that was updated
210            * @throws SystemException if a system exception occurred
211            */
212            public com.liferay.portal.model.Group updateGroup(
213                    com.liferay.portal.model.Group group, boolean merge)
214                    throws com.liferay.portal.kernel.exception.SystemException {
215                    return _groupLocalService.updateGroup(group, merge);
216            }
217    
218            public com.liferay.portal.model.Group addGroup(long userId,
219                    java.lang.String className, long classPK, java.lang.String name,
220                    java.lang.String description, int type, java.lang.String friendlyURL,
221                    boolean active, com.liferay.portal.service.ServiceContext serviceContext)
222                    throws com.liferay.portal.kernel.exception.PortalException,
223                            com.liferay.portal.kernel.exception.SystemException {
224                    return _groupLocalService.addGroup(userId, className, classPK, name,
225                            description, type, friendlyURL, active, serviceContext);
226            }
227    
228            public com.liferay.portal.model.Group addGroup(long userId,
229                    java.lang.String className, long classPK, long liveGroupId,
230                    java.lang.String name, java.lang.String description, int type,
231                    java.lang.String friendlyURL, boolean active,
232                    com.liferay.portal.service.ServiceContext serviceContext)
233                    throws com.liferay.portal.kernel.exception.PortalException,
234                            com.liferay.portal.kernel.exception.SystemException {
235                    return _groupLocalService.addGroup(userId, className, classPK,
236                            liveGroupId, name, description, type, friendlyURL, active,
237                            serviceContext);
238            }
239    
240            public void addRoleGroups(long roleId, long[] groupIds)
241                    throws com.liferay.portal.kernel.exception.SystemException {
242                    _groupLocalService.addRoleGroups(roleId, groupIds);
243            }
244    
245            public void addUserGroups(long userId, long[] groupIds)
246                    throws com.liferay.portal.kernel.exception.SystemException {
247                    _groupLocalService.addUserGroups(userId, groupIds);
248            }
249    
250            public void checkCompanyGroup(long companyId)
251                    throws com.liferay.portal.kernel.exception.PortalException,
252                            com.liferay.portal.kernel.exception.SystemException {
253                    _groupLocalService.checkCompanyGroup(companyId);
254            }
255    
256            public void checkSystemGroups(long companyId)
257                    throws com.liferay.portal.kernel.exception.PortalException,
258                            com.liferay.portal.kernel.exception.SystemException {
259                    _groupLocalService.checkSystemGroups(companyId);
260            }
261    
262            public com.liferay.portal.model.Group getCompanyGroup(long companyId)
263                    throws com.liferay.portal.kernel.exception.PortalException,
264                            com.liferay.portal.kernel.exception.SystemException {
265                    return _groupLocalService.getCompanyGroup(companyId);
266            }
267    
268            public java.util.List<com.liferay.portal.model.Group> getCompanyGroups(
269                    long companyId, int start, int end)
270                    throws com.liferay.portal.kernel.exception.SystemException {
271                    return _groupLocalService.getCompanyGroups(companyId, start, end);
272            }
273    
274            public int getCompanyGroupsCount(long companyId)
275                    throws com.liferay.portal.kernel.exception.SystemException {
276                    return _groupLocalService.getCompanyGroupsCount(companyId);
277            }
278    
279            public com.liferay.portal.model.Group getFriendlyURLGroup(long companyId,
280                    java.lang.String friendlyURL)
281                    throws com.liferay.portal.kernel.exception.PortalException,
282                            com.liferay.portal.kernel.exception.SystemException {
283                    return _groupLocalService.getFriendlyURLGroup(companyId, friendlyURL);
284            }
285    
286            public com.liferay.portal.model.Group getGroup(long companyId,
287                    java.lang.String name)
288                    throws com.liferay.portal.kernel.exception.PortalException,
289                            com.liferay.portal.kernel.exception.SystemException {
290                    return _groupLocalService.getGroup(companyId, name);
291            }
292    
293            public java.util.List<com.liferay.portal.model.Group> getGroups(
294                    long[] groupIds)
295                    throws com.liferay.portal.kernel.exception.PortalException,
296                            com.liferay.portal.kernel.exception.SystemException {
297                    return _groupLocalService.getGroups(groupIds);
298            }
299    
300            public com.liferay.portal.model.Group getLayoutGroup(long companyId,
301                    long plid)
302                    throws com.liferay.portal.kernel.exception.PortalException,
303                            com.liferay.portal.kernel.exception.SystemException {
304                    return _groupLocalService.getLayoutGroup(companyId, plid);
305            }
306    
307            public com.liferay.portal.model.Group getLayoutPrototypeGroup(
308                    long companyId, long layoutPrototypeId)
309                    throws com.liferay.portal.kernel.exception.PortalException,
310                            com.liferay.portal.kernel.exception.SystemException {
311                    return _groupLocalService.getLayoutPrototypeGroup(companyId,
312                            layoutPrototypeId);
313            }
314    
315            public com.liferay.portal.model.Group getLayoutSetPrototypeGroup(
316                    long companyId, long layoutSetPrototypeId)
317                    throws com.liferay.portal.kernel.exception.PortalException,
318                            com.liferay.portal.kernel.exception.SystemException {
319                    return _groupLocalService.getLayoutSetPrototypeGroup(companyId,
320                            layoutSetPrototypeId);
321            }
322    
323            public java.util.List<com.liferay.portal.model.Group> getLiveGroups()
324                    throws com.liferay.portal.kernel.exception.SystemException {
325                    return _groupLocalService.getLiveGroups();
326            }
327    
328            public java.util.List<com.liferay.portal.model.Group> getNoLayoutsGroups(
329                    java.lang.String className, boolean privateLayout, int start, int end)
330                    throws com.liferay.portal.kernel.exception.SystemException {
331                    return _groupLocalService.getNoLayoutsGroups(className, privateLayout,
332                            start, end);
333            }
334    
335            public java.util.List<com.liferay.portal.model.Group> getNullFriendlyURLGroups()
336                    throws com.liferay.portal.kernel.exception.SystemException {
337                    return _groupLocalService.getNullFriendlyURLGroups();
338            }
339    
340            public com.liferay.portal.model.Group getOrganizationGroup(long companyId,
341                    long organizationId)
342                    throws com.liferay.portal.kernel.exception.PortalException,
343                            com.liferay.portal.kernel.exception.SystemException {
344                    return _groupLocalService.getOrganizationGroup(companyId, organizationId);
345            }
346    
347            public java.util.List<com.liferay.portal.model.Group> getOrganizationsGroups(
348                    java.util.List<com.liferay.portal.model.Organization> organizations) {
349                    return _groupLocalService.getOrganizationsGroups(organizations);
350            }
351    
352            public java.util.List<com.liferay.portal.model.Group> getOrganizationsRelatedGroups(
353                    java.util.List<com.liferay.portal.model.Organization> organizations)
354                    throws com.liferay.portal.kernel.exception.SystemException {
355                    return _groupLocalService.getOrganizationsRelatedGroups(organizations);
356            }
357    
358            public java.util.List<com.liferay.portal.model.Group> getRoleGroups(
359                    long roleId) throws com.liferay.portal.kernel.exception.SystemException {
360                    return _groupLocalService.getRoleGroups(roleId);
361            }
362    
363            public com.liferay.portal.model.Group getStagingGroup(long liveGroupId)
364                    throws com.liferay.portal.kernel.exception.PortalException,
365                            com.liferay.portal.kernel.exception.SystemException {
366                    return _groupLocalService.getStagingGroup(liveGroupId);
367            }
368    
369            public com.liferay.portal.model.Group getUserGroup(long companyId,
370                    long userId)
371                    throws com.liferay.portal.kernel.exception.PortalException,
372                            com.liferay.portal.kernel.exception.SystemException {
373                    return _groupLocalService.getUserGroup(companyId, userId);
374            }
375    
376            public com.liferay.portal.model.Group getUserGroupGroup(long companyId,
377                    long userGroupId)
378                    throws com.liferay.portal.kernel.exception.PortalException,
379                            com.liferay.portal.kernel.exception.SystemException {
380                    return _groupLocalService.getUserGroupGroup(companyId, userGroupId);
381            }
382    
383            public java.util.List<com.liferay.portal.model.Group> getUserGroups(
384                    long userId)
385                    throws com.liferay.portal.kernel.exception.PortalException,
386                            com.liferay.portal.kernel.exception.SystemException {
387                    return _groupLocalService.getUserGroups(userId);
388            }
389    
390            public java.util.List<com.liferay.portal.model.Group> getUserGroups(
391                    long userId, boolean inherit)
392                    throws com.liferay.portal.kernel.exception.PortalException,
393                            com.liferay.portal.kernel.exception.SystemException {
394                    return _groupLocalService.getUserGroups(userId, inherit);
395            }
396    
397            public java.util.List<com.liferay.portal.model.Group> getUserGroups(
398                    long userId, int start, int end)
399                    throws com.liferay.portal.kernel.exception.PortalException,
400                            com.liferay.portal.kernel.exception.SystemException {
401                    return _groupLocalService.getUserGroups(userId, start, end);
402            }
403    
404            public java.util.List<com.liferay.portal.model.Group> getUserGroups(
405                    long userId, boolean inherit, int start, int end)
406                    throws com.liferay.portal.kernel.exception.PortalException,
407                            com.liferay.portal.kernel.exception.SystemException {
408                    return _groupLocalService.getUserGroups(userId, inherit, start, end);
409            }
410    
411            public java.util.List<com.liferay.portal.model.Group> getUserGroupsGroups(
412                    java.util.List<com.liferay.portal.model.UserGroup> userGroups)
413                    throws com.liferay.portal.kernel.exception.PortalException,
414                            com.liferay.portal.kernel.exception.SystemException {
415                    return _groupLocalService.getUserGroupsGroups(userGroups);
416            }
417    
418            public java.util.List<com.liferay.portal.model.Group> getUserGroupsRelatedGroups(
419                    java.util.List<com.liferay.portal.model.UserGroup> userGroups)
420                    throws com.liferay.portal.kernel.exception.SystemException {
421                    return _groupLocalService.getUserGroupsRelatedGroups(userGroups);
422            }
423    
424            public java.util.List<com.liferay.portal.model.Group> getUserOrganizationsGroups(
425                    long userId, int start, int end)
426                    throws com.liferay.portal.kernel.exception.PortalException,
427                            com.liferay.portal.kernel.exception.SystemException {
428                    return _groupLocalService.getUserOrganizationsGroups(userId, start, end);
429            }
430    
431            public boolean hasRoleGroup(long roleId, long groupId)
432                    throws com.liferay.portal.kernel.exception.SystemException {
433                    return _groupLocalService.hasRoleGroup(roleId, groupId);
434            }
435    
436            public boolean hasStagingGroup(long liveGroupId)
437                    throws com.liferay.portal.kernel.exception.SystemException {
438                    return _groupLocalService.hasStagingGroup(liveGroupId);
439            }
440    
441            public boolean hasUserGroup(long userId, long groupId)
442                    throws com.liferay.portal.kernel.exception.SystemException {
443                    return _groupLocalService.hasUserGroup(userId, groupId);
444            }
445    
446            public java.util.List<com.liferay.portal.model.Group> search(
447                    long companyId, java.lang.String name, java.lang.String description,
448                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
449                    int start, int end)
450                    throws com.liferay.portal.kernel.exception.SystemException {
451                    return _groupLocalService.search(companyId, name, description, params,
452                            start, end);
453            }
454    
455            public java.util.List<com.liferay.portal.model.Group> search(
456                    long companyId, java.lang.String name, java.lang.String description,
457                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
458                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
459                    throws com.liferay.portal.kernel.exception.SystemException {
460                    return _groupLocalService.search(companyId, name, description, params,
461                            start, end, obc);
462            }
463    
464            public int searchCount(long companyId, java.lang.String name,
465                    java.lang.String description,
466                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
467                    throws com.liferay.portal.kernel.exception.SystemException {
468                    return _groupLocalService.searchCount(companyId, name, description,
469                            params);
470            }
471    
472            public void setRoleGroups(long roleId, long[] groupIds)
473                    throws com.liferay.portal.kernel.exception.SystemException {
474                    _groupLocalService.setRoleGroups(roleId, groupIds);
475            }
476    
477            public void unsetRoleGroups(long roleId, long[] groupIds)
478                    throws com.liferay.portal.kernel.exception.SystemException {
479                    _groupLocalService.unsetRoleGroups(roleId, groupIds);
480            }
481    
482            public void unsetUserGroups(long userId, long[] groupIds)
483                    throws com.liferay.portal.kernel.exception.SystemException {
484                    _groupLocalService.unsetUserGroups(userId, groupIds);
485            }
486    
487            public void updateAsset(long userId, com.liferay.portal.model.Group group,
488                    long[] assetCategoryIds, java.lang.String[] assetTagNames)
489                    throws com.liferay.portal.kernel.exception.PortalException,
490                            com.liferay.portal.kernel.exception.SystemException {
491                    _groupLocalService.updateAsset(userId, group, assetCategoryIds,
492                            assetTagNames);
493            }
494    
495            public com.liferay.portal.model.Group updateFriendlyURL(long groupId,
496                    java.lang.String friendlyURL)
497                    throws com.liferay.portal.kernel.exception.PortalException,
498                            com.liferay.portal.kernel.exception.SystemException {
499                    return _groupLocalService.updateFriendlyURL(groupId, friendlyURL);
500            }
501    
502            public com.liferay.portal.model.Group updateGroup(long groupId,
503                    java.lang.String name, java.lang.String description, int type,
504                    java.lang.String friendlyURL, boolean active,
505                    com.liferay.portal.service.ServiceContext serviceContext)
506                    throws com.liferay.portal.kernel.exception.PortalException,
507                            com.liferay.portal.kernel.exception.SystemException {
508                    return _groupLocalService.updateGroup(groupId, name, description, type,
509                            friendlyURL, active, serviceContext);
510            }
511    
512            public com.liferay.portal.model.Group updateGroup(long groupId,
513                    java.lang.String typeSettings)
514                    throws com.liferay.portal.kernel.exception.PortalException,
515                            com.liferay.portal.kernel.exception.SystemException {
516                    return _groupLocalService.updateGroup(groupId, typeSettings);
517            }
518    
519            public com.liferay.portal.model.Group updateWorkflow(long groupId,
520                    boolean workflowEnabled, int workflowStages,
521                    java.lang.String workflowRoleNames)
522                    throws com.liferay.portal.kernel.exception.PortalException,
523                            com.liferay.portal.kernel.exception.SystemException {
524                    return _groupLocalService.updateWorkflow(groupId, workflowEnabled,
525                            workflowStages, workflowRoleNames);
526            }
527    
528            public GroupLocalService getWrappedGroupLocalService() {
529                    return _groupLocalService;
530            }
531    
532            private GroupLocalService _groupLocalService;
533    }