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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.TeamModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.TeamModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.TeamModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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            * @throws SystemException if a system exception occurred
228            */
229            public void addUserTeam(long userId, long teamId)
230                    throws com.liferay.portal.kernel.exception.SystemException {
231                    _teamLocalService.addUserTeam(userId, teamId);
232            }
233    
234            /**
235            * @throws SystemException if a system exception occurred
236            */
237            public void addUserTeam(long userId, com.liferay.portal.model.Team team)
238                    throws com.liferay.portal.kernel.exception.SystemException {
239                    _teamLocalService.addUserTeam(userId, team);
240            }
241    
242            /**
243            * @throws SystemException if a system exception occurred
244            */
245            public void addUserTeams(long userId, long[] teamIds)
246                    throws com.liferay.portal.kernel.exception.SystemException {
247                    _teamLocalService.addUserTeams(userId, teamIds);
248            }
249    
250            /**
251            * @throws SystemException if a system exception occurred
252            */
253            public void addUserTeams(long userId,
254                    java.util.List<com.liferay.portal.model.Team> Teams)
255                    throws com.liferay.portal.kernel.exception.SystemException {
256                    _teamLocalService.addUserTeams(userId, Teams);
257            }
258    
259            /**
260            * @throws SystemException if a system exception occurred
261            */
262            public void clearUserTeams(long userId)
263                    throws com.liferay.portal.kernel.exception.SystemException {
264                    _teamLocalService.clearUserTeams(userId);
265            }
266    
267            /**
268            * @throws SystemException if a system exception occurred
269            */
270            public void deleteUserTeam(long userId, long teamId)
271                    throws com.liferay.portal.kernel.exception.SystemException {
272                    _teamLocalService.deleteUserTeam(userId, teamId);
273            }
274    
275            /**
276            * @throws SystemException if a system exception occurred
277            */
278            public void deleteUserTeam(long userId, com.liferay.portal.model.Team team)
279                    throws com.liferay.portal.kernel.exception.SystemException {
280                    _teamLocalService.deleteUserTeam(userId, team);
281            }
282    
283            /**
284            * @throws SystemException if a system exception occurred
285            */
286            public void deleteUserTeams(long userId, long[] teamIds)
287                    throws com.liferay.portal.kernel.exception.SystemException {
288                    _teamLocalService.deleteUserTeams(userId, teamIds);
289            }
290    
291            /**
292            * @throws SystemException if a system exception occurred
293            */
294            public void deleteUserTeams(long userId,
295                    java.util.List<com.liferay.portal.model.Team> Teams)
296                    throws com.liferay.portal.kernel.exception.SystemException {
297                    _teamLocalService.deleteUserTeams(userId, Teams);
298            }
299    
300            /**
301            * @throws SystemException if a system exception occurred
302            */
303            public java.util.List<com.liferay.portal.model.Team> getUserTeams(
304                    long userId) throws com.liferay.portal.kernel.exception.SystemException {
305                    return _teamLocalService.getUserTeams(userId);
306            }
307    
308            /**
309            * @throws SystemException if a system exception occurred
310            */
311            public java.util.List<com.liferay.portal.model.Team> getUserTeams(
312                    long userId, int start, int end)
313                    throws com.liferay.portal.kernel.exception.SystemException {
314                    return _teamLocalService.getUserTeams(userId, start, end);
315            }
316    
317            /**
318            * @throws SystemException if a system exception occurred
319            */
320            public java.util.List<com.liferay.portal.model.Team> getUserTeams(
321                    long userId, int start, int end,
322                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
323                    throws com.liferay.portal.kernel.exception.SystemException {
324                    return _teamLocalService.getUserTeams(userId, start, end,
325                            orderByComparator);
326            }
327    
328            /**
329            * @throws SystemException if a system exception occurred
330            */
331            public int getUserTeamsCount(long userId)
332                    throws com.liferay.portal.kernel.exception.SystemException {
333                    return _teamLocalService.getUserTeamsCount(userId);
334            }
335    
336            /**
337            * @throws SystemException if a system exception occurred
338            */
339            public boolean hasUserTeam(long userId, long teamId)
340                    throws com.liferay.portal.kernel.exception.SystemException {
341                    return _teamLocalService.hasUserTeam(userId, teamId);
342            }
343    
344            /**
345            * @throws SystemException if a system exception occurred
346            */
347            public boolean hasUserTeams(long userId)
348                    throws com.liferay.portal.kernel.exception.SystemException {
349                    return _teamLocalService.hasUserTeams(userId);
350            }
351    
352            /**
353            * @throws SystemException if a system exception occurred
354            */
355            public void setUserTeams(long userId, long[] teamIds)
356                    throws com.liferay.portal.kernel.exception.SystemException {
357                    _teamLocalService.setUserTeams(userId, teamIds);
358            }
359    
360            /**
361            * @throws SystemException if a system exception occurred
362            */
363            public void addUserGroupTeam(long userGroupId, long teamId)
364                    throws com.liferay.portal.kernel.exception.SystemException {
365                    _teamLocalService.addUserGroupTeam(userGroupId, teamId);
366            }
367    
368            /**
369            * @throws SystemException if a system exception occurred
370            */
371            public void addUserGroupTeam(long userGroupId,
372                    com.liferay.portal.model.Team team)
373                    throws com.liferay.portal.kernel.exception.SystemException {
374                    _teamLocalService.addUserGroupTeam(userGroupId, team);
375            }
376    
377            /**
378            * @throws SystemException if a system exception occurred
379            */
380            public void addUserGroupTeams(long userGroupId, long[] teamIds)
381                    throws com.liferay.portal.kernel.exception.SystemException {
382                    _teamLocalService.addUserGroupTeams(userGroupId, teamIds);
383            }
384    
385            /**
386            * @throws SystemException if a system exception occurred
387            */
388            public void addUserGroupTeams(long userGroupId,
389                    java.util.List<com.liferay.portal.model.Team> Teams)
390                    throws com.liferay.portal.kernel.exception.SystemException {
391                    _teamLocalService.addUserGroupTeams(userGroupId, Teams);
392            }
393    
394            /**
395            * @throws SystemException if a system exception occurred
396            */
397            public void clearUserGroupTeams(long userGroupId)
398                    throws com.liferay.portal.kernel.exception.SystemException {
399                    _teamLocalService.clearUserGroupTeams(userGroupId);
400            }
401    
402            /**
403            * @throws SystemException if a system exception occurred
404            */
405            public void deleteUserGroupTeam(long userGroupId, long teamId)
406                    throws com.liferay.portal.kernel.exception.SystemException {
407                    _teamLocalService.deleteUserGroupTeam(userGroupId, teamId);
408            }
409    
410            /**
411            * @throws SystemException if a system exception occurred
412            */
413            public void deleteUserGroupTeam(long userGroupId,
414                    com.liferay.portal.model.Team team)
415                    throws com.liferay.portal.kernel.exception.SystemException {
416                    _teamLocalService.deleteUserGroupTeam(userGroupId, team);
417            }
418    
419            /**
420            * @throws SystemException if a system exception occurred
421            */
422            public void deleteUserGroupTeams(long userGroupId, long[] teamIds)
423                    throws com.liferay.portal.kernel.exception.SystemException {
424                    _teamLocalService.deleteUserGroupTeams(userGroupId, teamIds);
425            }
426    
427            /**
428            * @throws SystemException if a system exception occurred
429            */
430            public void deleteUserGroupTeams(long userGroupId,
431                    java.util.List<com.liferay.portal.model.Team> Teams)
432                    throws com.liferay.portal.kernel.exception.SystemException {
433                    _teamLocalService.deleteUserGroupTeams(userGroupId, Teams);
434            }
435    
436            /**
437            * @throws SystemException if a system exception occurred
438            */
439            public java.util.List<com.liferay.portal.model.Team> getUserGroupTeams(
440                    long userGroupId)
441                    throws com.liferay.portal.kernel.exception.SystemException {
442                    return _teamLocalService.getUserGroupTeams(userGroupId);
443            }
444    
445            /**
446            * @throws SystemException if a system exception occurred
447            */
448            public java.util.List<com.liferay.portal.model.Team> getUserGroupTeams(
449                    long userGroupId, int start, int end)
450                    throws com.liferay.portal.kernel.exception.SystemException {
451                    return _teamLocalService.getUserGroupTeams(userGroupId, start, end);
452            }
453    
454            /**
455            * @throws SystemException if a system exception occurred
456            */
457            public java.util.List<com.liferay.portal.model.Team> getUserGroupTeams(
458                    long userGroupId, int start, int end,
459                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
460                    throws com.liferay.portal.kernel.exception.SystemException {
461                    return _teamLocalService.getUserGroupTeams(userGroupId, start, end,
462                            orderByComparator);
463            }
464    
465            /**
466            * @throws SystemException if a system exception occurred
467            */
468            public int getUserGroupTeamsCount(long userGroupId)
469                    throws com.liferay.portal.kernel.exception.SystemException {
470                    return _teamLocalService.getUserGroupTeamsCount(userGroupId);
471            }
472    
473            /**
474            * @throws SystemException if a system exception occurred
475            */
476            public boolean hasUserGroupTeam(long userGroupId, long teamId)
477                    throws com.liferay.portal.kernel.exception.SystemException {
478                    return _teamLocalService.hasUserGroupTeam(userGroupId, teamId);
479            }
480    
481            /**
482            * @throws SystemException if a system exception occurred
483            */
484            public boolean hasUserGroupTeams(long userGroupId)
485                    throws com.liferay.portal.kernel.exception.SystemException {
486                    return _teamLocalService.hasUserGroupTeams(userGroupId);
487            }
488    
489            /**
490            * @throws SystemException if a system exception occurred
491            */
492            public void setUserGroupTeams(long userGroupId, long[] teamIds)
493                    throws com.liferay.portal.kernel.exception.SystemException {
494                    _teamLocalService.setUserGroupTeams(userGroupId, teamIds);
495            }
496    
497            /**
498            * Returns the Spring bean ID for this bean.
499            *
500            * @return the Spring bean ID for this bean
501            */
502            public java.lang.String getBeanIdentifier() {
503                    return _teamLocalService.getBeanIdentifier();
504            }
505    
506            /**
507            * Sets the Spring bean ID for this bean.
508            *
509            * @param beanIdentifier the Spring bean ID for this bean
510            */
511            public void setBeanIdentifier(java.lang.String beanIdentifier) {
512                    _teamLocalService.setBeanIdentifier(beanIdentifier);
513            }
514    
515            public com.liferay.portal.model.Team addTeam(long userId, long groupId,
516                    java.lang.String name, java.lang.String description)
517                    throws com.liferay.portal.kernel.exception.PortalException,
518                            com.liferay.portal.kernel.exception.SystemException {
519                    return _teamLocalService.addTeam(userId, groupId, name, description);
520            }
521    
522            public void deleteTeams(long groupId)
523                    throws com.liferay.portal.kernel.exception.PortalException,
524                            com.liferay.portal.kernel.exception.SystemException {
525                    _teamLocalService.deleteTeams(groupId);
526            }
527    
528            public java.util.List<com.liferay.portal.model.Team> getGroupTeams(
529                    long groupId)
530                    throws com.liferay.portal.kernel.exception.SystemException {
531                    return _teamLocalService.getGroupTeams(groupId);
532            }
533    
534            public com.liferay.portal.model.Team getTeam(long groupId,
535                    java.lang.String name)
536                    throws com.liferay.portal.kernel.exception.PortalException,
537                            com.liferay.portal.kernel.exception.SystemException {
538                    return _teamLocalService.getTeam(groupId, name);
539            }
540    
541            public java.util.List<com.liferay.portal.model.Team> getUserTeams(
542                    long userId, long groupId)
543                    throws com.liferay.portal.kernel.exception.SystemException {
544                    return _teamLocalService.getUserTeams(userId, groupId);
545            }
546    
547            public java.util.List<com.liferay.portal.model.Team> search(long groupId,
548                    java.lang.String name, java.lang.String description,
549                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
550                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
551                    throws com.liferay.portal.kernel.exception.SystemException {
552                    return _teamLocalService.search(groupId, name, description, params,
553                            start, end, obc);
554            }
555    
556            public int searchCount(long groupId, java.lang.String name,
557                    java.lang.String description,
558                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
559                    throws com.liferay.portal.kernel.exception.SystemException {
560                    return _teamLocalService.searchCount(groupId, name, description, params);
561            }
562    
563            public com.liferay.portal.model.Team updateTeam(long teamId,
564                    java.lang.String name, java.lang.String description)
565                    throws com.liferay.portal.kernel.exception.PortalException,
566                            com.liferay.portal.kernel.exception.SystemException {
567                    return _teamLocalService.updateTeam(teamId, name, description);
568            }
569    
570            /**
571             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
572             */
573            public TeamLocalService getWrappedTeamLocalService() {
574                    return _teamLocalService;
575            }
576    
577            /**
578             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
579             */
580            public void setWrappedTeamLocalService(TeamLocalService teamLocalService) {
581                    _teamLocalService = teamLocalService;
582            }
583    
584            public TeamLocalService getWrappedService() {
585                    return _teamLocalService;
586            }
587    
588            public void setWrappedService(TeamLocalService teamLocalService) {
589                    _teamLocalService = teamLocalService;
590            }
591    
592            private TeamLocalService _teamLocalService;
593    }