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