001    /**
002     * Copyright (c) 2000-2013 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 TeamLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       TeamLocalService
024     * @generated
025     */
026    public class TeamLocalServiceWrapper implements TeamLocalService,
027            ServiceWrapper<TeamLocalService> {
028            public TeamLocalServiceWrapper(TeamLocalService teamLocalService) {
029                    _teamLocalService = teamLocalService;
030            }
031    
032            /**
033            * Adds the team to the database. Also notifies the appropriate model listeners.
034            *
035            * @param team the team
036            * @return the team that was added
037            * @throws SystemException if a system exception occurred
038            */
039            public com.liferay.portal.model.Team addTeam(
040                    com.liferay.portal.model.Team team)
041                    throws com.liferay.portal.kernel.exception.SystemException {
042                    return _teamLocalService.addTeam(team);
043            }
044    
045            /**
046            * Creates a new team with the primary key. Does not add the team to the database.
047            *
048            * @param teamId the primary key for the new team
049            * @return the new team
050            */
051            public com.liferay.portal.model.Team createTeam(long teamId) {
052                    return _teamLocalService.createTeam(teamId);
053            }
054    
055            /**
056            * Deletes the team with the primary key from the database. Also notifies the appropriate model listeners.
057            *
058            * @param teamId the primary key of the team
059            * @return the team that was removed
060            * @throws PortalException if a team with the primary key could not be found
061            * @throws SystemException if a system exception occurred
062            */
063            public com.liferay.portal.model.Team deleteTeam(long teamId)
064                    throws com.liferay.portal.kernel.exception.PortalException,
065                            com.liferay.portal.kernel.exception.SystemException {
066                    return _teamLocalService.deleteTeam(teamId);
067            }
068    
069            /**
070            * Deletes the team from the database. Also notifies the appropriate model listeners.
071            *
072            * @param team the team
073            * @return the team that was removed
074            * @throws PortalException
075            * @throws SystemException if a system exception occurred
076            */
077            public com.liferay.portal.model.Team deleteTeam(
078                    com.liferay.portal.model.Team team)
079                    throws com.liferay.portal.kernel.exception.PortalException,
080                            com.liferay.portal.kernel.exception.SystemException {
081                    return _teamLocalService.deleteTeam(team);
082            }
083    
084            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
085                    return _teamLocalService.dynamicQuery();
086            }
087    
088            /**
089            * Performs a dynamic query on the database and returns the matching rows.
090            *
091            * @param dynamicQuery the dynamic query
092            * @return the matching rows
093            * @throws SystemException if a system exception occurred
094            */
095            @SuppressWarnings("rawtypes")
096            public java.util.List dynamicQuery(
097                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
098                    throws com.liferay.portal.kernel.exception.SystemException {
099                    return _teamLocalService.dynamicQuery(dynamicQuery);
100            }
101    
102            /**
103            * Performs a dynamic query on the database and returns a range of the matching rows.
104            *
105            * <p>
106            * 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.
107            * </p>
108            *
109            * @param dynamicQuery the dynamic query
110            * @param start the lower bound of the range of model instances
111            * @param end the upper bound of the range of model instances (not inclusive)
112            * @return the range of matching rows
113            * @throws SystemException if a system exception occurred
114            */
115            @SuppressWarnings("rawtypes")
116            public java.util.List dynamicQuery(
117                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
118                    int end) throws com.liferay.portal.kernel.exception.SystemException {
119                    return _teamLocalService.dynamicQuery(dynamicQuery, start, end);
120            }
121    
122            /**
123            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
124            *
125            * <p>
126            * 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.
127            * </p>
128            *
129            * @param dynamicQuery the dynamic query
130            * @param start the lower bound of the range of model instances
131            * @param end the upper bound of the range of model instances (not inclusive)
132            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
133            * @return the ordered range of matching rows
134            * @throws SystemException if a system exception occurred
135            */
136            @SuppressWarnings("rawtypes")
137            public java.util.List dynamicQuery(
138                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
139                    int end,
140                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141                    throws com.liferay.portal.kernel.exception.SystemException {
142                    return _teamLocalService.dynamicQuery(dynamicQuery, start, end,
143                            orderByComparator);
144            }
145    
146            /**
147            * Returns the number of rows that match the dynamic query.
148            *
149            * @param dynamicQuery the dynamic query
150            * @return the number of rows that match the dynamic query
151            * @throws SystemException if a system exception occurred
152            */
153            public long dynamicQueryCount(
154                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
155                    throws com.liferay.portal.kernel.exception.SystemException {
156                    return _teamLocalService.dynamicQueryCount(dynamicQuery);
157            }
158    
159            public com.liferay.portal.model.Team fetchTeam(long teamId)
160                    throws com.liferay.portal.kernel.exception.SystemException {
161                    return _teamLocalService.fetchTeam(teamId);
162            }
163    
164            /**
165            * Returns the team with the primary key.
166            *
167            * @param teamId the primary key of the team
168            * @return the team
169            * @throws PortalException if a team with the primary key could not be found
170            * @throws SystemException if a system exception occurred
171            */
172            public com.liferay.portal.model.Team getTeam(long teamId)
173                    throws com.liferay.portal.kernel.exception.PortalException,
174                            com.liferay.portal.kernel.exception.SystemException {
175                    return _teamLocalService.getTeam(teamId);
176            }
177    
178            public com.liferay.portal.model.PersistedModel getPersistedModel(
179                    java.io.Serializable primaryKeyObj)
180                    throws com.liferay.portal.kernel.exception.PortalException,
181                            com.liferay.portal.kernel.exception.SystemException {
182                    return _teamLocalService.getPersistedModel(primaryKeyObj);
183            }
184    
185            /**
186            * Returns a range of all the teams.
187            *
188            * <p>
189            * 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.
190            * </p>
191            *
192            * @param start the lower bound of the range of teams
193            * @param end the upper bound of the range of teams (not inclusive)
194            * @return the range of teams
195            * @throws SystemException if a system exception occurred
196            */
197            public java.util.List<com.liferay.portal.model.Team> getTeams(int start,
198                    int end) throws com.liferay.portal.kernel.exception.SystemException {
199                    return _teamLocalService.getTeams(start, end);
200            }
201    
202            /**
203            * Returns the number of teams.
204            *
205            * @return the number of teams
206            * @throws SystemException if a system exception occurred
207            */
208            public int getTeamsCount()
209                    throws com.liferay.portal.kernel.exception.SystemException {
210                    return _teamLocalService.getTeamsCount();
211            }
212    
213            /**
214            * Updates the team in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
215            *
216            * @param team the team
217            * @return the team that was updated
218            * @throws SystemException if a system exception occurred
219            */
220            public com.liferay.portal.model.Team updateTeam(
221                    com.liferay.portal.model.Team team)
222                    throws com.liferay.portal.kernel.exception.SystemException {
223                    return _teamLocalService.updateTeam(team);
224            }
225    
226            /**
227            * Updates the team in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
228            *
229            * @param team the team
230            * @param merge whether to merge the team 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 team that was updated
232            * @throws SystemException if a system exception occurred
233            */
234            public com.liferay.portal.model.Team updateTeam(
235                    com.liferay.portal.model.Team team, boolean merge)
236                    throws com.liferay.portal.kernel.exception.SystemException {
237                    return _teamLocalService.updateTeam(team, merge);
238            }
239    
240            /**
241            * @throws SystemException if a system exception occurred
242            */
243            public void addUserTeam(long userId, long teamId)
244                    throws com.liferay.portal.kernel.exception.SystemException {
245                    _teamLocalService.addUserTeam(userId, teamId);
246            }
247    
248            /**
249            * @throws SystemException if a system exception occurred
250            */
251            public void addUserTeam(long userId, com.liferay.portal.model.Team team)
252                    throws com.liferay.portal.kernel.exception.SystemException {
253                    _teamLocalService.addUserTeam(userId, team);
254            }
255    
256            /**
257            * @throws SystemException if a system exception occurred
258            */
259            public void addUserTeams(long userId, long[] teamIds)
260                    throws com.liferay.portal.kernel.exception.SystemException {
261                    _teamLocalService.addUserTeams(userId, teamIds);
262            }
263    
264            /**
265            * @throws SystemException if a system exception occurred
266            */
267            public void addUserTeams(long userId,
268                    java.util.List<com.liferay.portal.model.Team> Teams)
269                    throws com.liferay.portal.kernel.exception.SystemException {
270                    _teamLocalService.addUserTeams(userId, Teams);
271            }
272    
273            /**
274            * @throws SystemException if a system exception occurred
275            */
276            public void clearUserTeams(long userId)
277                    throws com.liferay.portal.kernel.exception.SystemException {
278                    _teamLocalService.clearUserTeams(userId);
279            }
280    
281            /**
282            * @throws SystemException if a system exception occurred
283            */
284            public void deleteUserTeam(long userId, long teamId)
285                    throws com.liferay.portal.kernel.exception.SystemException {
286                    _teamLocalService.deleteUserTeam(userId, teamId);
287            }
288    
289            /**
290            * @throws SystemException if a system exception occurred
291            */
292            public void deleteUserTeam(long userId, com.liferay.portal.model.Team team)
293                    throws com.liferay.portal.kernel.exception.SystemException {
294                    _teamLocalService.deleteUserTeam(userId, team);
295            }
296    
297            /**
298            * @throws SystemException if a system exception occurred
299            */
300            public void deleteUserTeams(long userId, long[] teamIds)
301                    throws com.liferay.portal.kernel.exception.SystemException {
302                    _teamLocalService.deleteUserTeams(userId, teamIds);
303            }
304    
305            /**
306            * @throws SystemException if a system exception occurred
307            */
308            public void deleteUserTeams(long userId,
309                    java.util.List<com.liferay.portal.model.Team> Teams)
310                    throws com.liferay.portal.kernel.exception.SystemException {
311                    _teamLocalService.deleteUserTeams(userId, Teams);
312            }
313    
314            /**
315            * @throws SystemException if a system exception occurred
316            */
317            public java.util.List<com.liferay.portal.model.Team> getUserTeams(
318                    long userId) throws com.liferay.portal.kernel.exception.SystemException {
319                    return _teamLocalService.getUserTeams(userId);
320            }
321    
322            /**
323            * @throws SystemException if a system exception occurred
324            */
325            public java.util.List<com.liferay.portal.model.Team> getUserTeams(
326                    long userId, int start, int end)
327                    throws com.liferay.portal.kernel.exception.SystemException {
328                    return _teamLocalService.getUserTeams(userId, start, end);
329            }
330    
331            /**
332            * @throws SystemException if a system exception occurred
333            */
334            public java.util.List<com.liferay.portal.model.Team> getUserTeams(
335                    long userId, int start, int end,
336                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
337                    throws com.liferay.portal.kernel.exception.SystemException {
338                    return _teamLocalService.getUserTeams(userId, start, end,
339                            orderByComparator);
340            }
341    
342            /**
343            * @throws SystemException if a system exception occurred
344            */
345            public int getUserTeamsCount(long userId)
346                    throws com.liferay.portal.kernel.exception.SystemException {
347                    return _teamLocalService.getUserTeamsCount(userId);
348            }
349    
350            /**
351            * @throws SystemException if a system exception occurred
352            */
353            public boolean hasUserTeam(long userId, long teamId)
354                    throws com.liferay.portal.kernel.exception.SystemException {
355                    return _teamLocalService.hasUserTeam(userId, teamId);
356            }
357    
358            /**
359            * @throws SystemException if a system exception occurred
360            */
361            public boolean hasUserTeams(long userId)
362                    throws com.liferay.portal.kernel.exception.SystemException {
363                    return _teamLocalService.hasUserTeams(userId);
364            }
365    
366            /**
367            * @throws SystemException if a system exception occurred
368            */
369            public void setUserTeams(long userId, long[] teamIds)
370                    throws com.liferay.portal.kernel.exception.SystemException {
371                    _teamLocalService.setUserTeams(userId, teamIds);
372            }
373    
374            /**
375            * @throws SystemException if a system exception occurred
376            */
377            public void addUserGroupTeam(long userGroupId, long teamId)
378                    throws com.liferay.portal.kernel.exception.SystemException {
379                    _teamLocalService.addUserGroupTeam(userGroupId, teamId);
380            }
381    
382            /**
383            * @throws SystemException if a system exception occurred
384            */
385            public void addUserGroupTeam(long userGroupId,
386                    com.liferay.portal.model.Team team)
387                    throws com.liferay.portal.kernel.exception.SystemException {
388                    _teamLocalService.addUserGroupTeam(userGroupId, team);
389            }
390    
391            /**
392            * @throws SystemException if a system exception occurred
393            */
394            public void addUserGroupTeams(long userGroupId, long[] teamIds)
395                    throws com.liferay.portal.kernel.exception.SystemException {
396                    _teamLocalService.addUserGroupTeams(userGroupId, teamIds);
397            }
398    
399            /**
400            * @throws SystemException if a system exception occurred
401            */
402            public void addUserGroupTeams(long userGroupId,
403                    java.util.List<com.liferay.portal.model.Team> Teams)
404                    throws com.liferay.portal.kernel.exception.SystemException {
405                    _teamLocalService.addUserGroupTeams(userGroupId, Teams);
406            }
407    
408            /**
409            * @throws SystemException if a system exception occurred
410            */
411            public void clearUserGroupTeams(long userGroupId)
412                    throws com.liferay.portal.kernel.exception.SystemException {
413                    _teamLocalService.clearUserGroupTeams(userGroupId);
414            }
415    
416            /**
417            * @throws SystemException if a system exception occurred
418            */
419            public void deleteUserGroupTeam(long userGroupId, long teamId)
420                    throws com.liferay.portal.kernel.exception.SystemException {
421                    _teamLocalService.deleteUserGroupTeam(userGroupId, teamId);
422            }
423    
424            /**
425            * @throws SystemException if a system exception occurred
426            */
427            public void deleteUserGroupTeam(long userGroupId,
428                    com.liferay.portal.model.Team team)
429                    throws com.liferay.portal.kernel.exception.SystemException {
430                    _teamLocalService.deleteUserGroupTeam(userGroupId, team);
431            }
432    
433            /**
434            * @throws SystemException if a system exception occurred
435            */
436            public void deleteUserGroupTeams(long userGroupId, long[] teamIds)
437                    throws com.liferay.portal.kernel.exception.SystemException {
438                    _teamLocalService.deleteUserGroupTeams(userGroupId, teamIds);
439            }
440    
441            /**
442            * @throws SystemException if a system exception occurred
443            */
444            public void deleteUserGroupTeams(long userGroupId,
445                    java.util.List<com.liferay.portal.model.Team> Teams)
446                    throws com.liferay.portal.kernel.exception.SystemException {
447                    _teamLocalService.deleteUserGroupTeams(userGroupId, Teams);
448            }
449    
450            /**
451            * @throws SystemException if a system exception occurred
452            */
453            public java.util.List<com.liferay.portal.model.Team> getUserGroupTeams(
454                    long userGroupId)
455                    throws com.liferay.portal.kernel.exception.SystemException {
456                    return _teamLocalService.getUserGroupTeams(userGroupId);
457            }
458    
459            /**
460            * @throws SystemException if a system exception occurred
461            */
462            public java.util.List<com.liferay.portal.model.Team> getUserGroupTeams(
463                    long userGroupId, int start, int end)
464                    throws com.liferay.portal.kernel.exception.SystemException {
465                    return _teamLocalService.getUserGroupTeams(userGroupId, start, end);
466            }
467    
468            /**
469            * @throws SystemException if a system exception occurred
470            */
471            public java.util.List<com.liferay.portal.model.Team> getUserGroupTeams(
472                    long userGroupId, int start, int end,
473                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
474                    throws com.liferay.portal.kernel.exception.SystemException {
475                    return _teamLocalService.getUserGroupTeams(userGroupId, start, end,
476                            orderByComparator);
477            }
478    
479            /**
480            * @throws SystemException if a system exception occurred
481            */
482            public int getUserGroupTeamsCount(long userGroupId)
483                    throws com.liferay.portal.kernel.exception.SystemException {
484                    return _teamLocalService.getUserGroupTeamsCount(userGroupId);
485            }
486    
487            /**
488            * @throws SystemException if a system exception occurred
489            */
490            public boolean hasUserGroupTeam(long userGroupId, long teamId)
491                    throws com.liferay.portal.kernel.exception.SystemException {
492                    return _teamLocalService.hasUserGroupTeam(userGroupId, teamId);
493            }
494    
495            /**
496            * @throws SystemException if a system exception occurred
497            */
498            public boolean hasUserGroupTeams(long userGroupId)
499                    throws com.liferay.portal.kernel.exception.SystemException {
500                    return _teamLocalService.hasUserGroupTeams(userGroupId);
501            }
502    
503            /**
504            * @throws SystemException if a system exception occurred
505            */
506            public void setUserGroupTeams(long userGroupId, long[] teamIds)
507                    throws com.liferay.portal.kernel.exception.SystemException {
508                    _teamLocalService.setUserGroupTeams(userGroupId, teamIds);
509            }
510    
511            /**
512            * Returns the Spring bean ID for this bean.
513            *
514            * @return the Spring bean ID for this bean
515            */
516            public java.lang.String getBeanIdentifier() {
517                    return _teamLocalService.getBeanIdentifier();
518            }
519    
520            /**
521            * Sets the Spring bean ID for this bean.
522            *
523            * @param beanIdentifier the Spring bean ID for this bean
524            */
525            public void setBeanIdentifier(java.lang.String beanIdentifier) {
526                    _teamLocalService.setBeanIdentifier(beanIdentifier);
527            }
528    
529            public com.liferay.portal.model.Team addTeam(long userId, long groupId,
530                    java.lang.String name, java.lang.String description)
531                    throws com.liferay.portal.kernel.exception.PortalException,
532                            com.liferay.portal.kernel.exception.SystemException {
533                    return _teamLocalService.addTeam(userId, groupId, name, description);
534            }
535    
536            public void deleteTeams(long groupId)
537                    throws com.liferay.portal.kernel.exception.PortalException,
538                            com.liferay.portal.kernel.exception.SystemException {
539                    _teamLocalService.deleteTeams(groupId);
540            }
541    
542            public java.util.List<com.liferay.portal.model.Team> getGroupTeams(
543                    long groupId)
544                    throws com.liferay.portal.kernel.exception.SystemException {
545                    return _teamLocalService.getGroupTeams(groupId);
546            }
547    
548            public com.liferay.portal.model.Team getTeam(long groupId,
549                    java.lang.String name)
550                    throws com.liferay.portal.kernel.exception.PortalException,
551                            com.liferay.portal.kernel.exception.SystemException {
552                    return _teamLocalService.getTeam(groupId, name);
553            }
554    
555            public java.util.List<com.liferay.portal.model.Team> getUserTeams(
556                    long userId, long groupId)
557                    throws com.liferay.portal.kernel.exception.SystemException {
558                    return _teamLocalService.getUserTeams(userId, groupId);
559            }
560    
561            public java.util.List<com.liferay.portal.model.Team> search(long groupId,
562                    java.lang.String name, java.lang.String description,
563                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
564                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
565                    throws com.liferay.portal.kernel.exception.SystemException {
566                    return _teamLocalService.search(groupId, name, description, params,
567                            start, end, obc);
568            }
569    
570            public int searchCount(long groupId, java.lang.String name,
571                    java.lang.String description,
572                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
573                    throws com.liferay.portal.kernel.exception.SystemException {
574                    return _teamLocalService.searchCount(groupId, name, description, params);
575            }
576    
577            public com.liferay.portal.model.Team updateTeam(long teamId,
578                    java.lang.String name, java.lang.String description)
579                    throws com.liferay.portal.kernel.exception.PortalException,
580                            com.liferay.portal.kernel.exception.SystemException {
581                    return _teamLocalService.updateTeam(teamId, name, description);
582            }
583    
584            /**
585             * @deprecated Renamed to {@link #getWrappedService}
586             */
587            public TeamLocalService getWrappedTeamLocalService() {
588                    return _teamLocalService;
589            }
590    
591            /**
592             * @deprecated Renamed to {@link #setWrappedService}
593             */
594            public void setWrappedTeamLocalService(TeamLocalService teamLocalService) {
595                    _teamLocalService = teamLocalService;
596            }
597    
598            public TeamLocalService getWrappedService() {
599                    return _teamLocalService;
600            }
601    
602            public void setWrappedService(TeamLocalService teamLocalService) {
603                    _teamLocalService = teamLocalService;
604            }
605    
606            private TeamLocalService _teamLocalService;
607    }