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.kernel.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.kernel.model.Team addTeam(
041                    com.liferay.portal.kernel.model.Team team) {
042                    return _teamLocalService.addTeam(team);
043            }
044    
045            /**
046            * @deprecated As of 7.0.0, replaced by {@link #addTeam(long, long, String,
047            String, ServiceContext)}
048            */
049            @Deprecated
050            @Override
051            public com.liferay.portal.kernel.model.Team addTeam(long userId,
052                    long groupId, java.lang.String name, java.lang.String description)
053                    throws com.liferay.portal.kernel.exception.PortalException {
054                    return _teamLocalService.addTeam(userId, groupId, name, description);
055            }
056    
057            @Override
058            public com.liferay.portal.kernel.model.Team addTeam(long userId,
059                    long groupId, java.lang.String name, java.lang.String description,
060                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
061                    throws com.liferay.portal.kernel.exception.PortalException {
062                    return _teamLocalService.addTeam(userId, groupId, name, description,
063                            serviceContext);
064            }
065    
066            @Override
067            public void addUserGroupTeam(long userGroupId,
068                    com.liferay.portal.kernel.model.Team team) {
069                    _teamLocalService.addUserGroupTeam(userGroupId, team);
070            }
071    
072            @Override
073            public void addUserGroupTeam(long userGroupId, long teamId) {
074                    _teamLocalService.addUserGroupTeam(userGroupId, teamId);
075            }
076    
077            @Override
078            public void addUserGroupTeams(long userGroupId,
079                    java.util.List<com.liferay.portal.kernel.model.Team> Teams) {
080                    _teamLocalService.addUserGroupTeams(userGroupId, Teams);
081            }
082    
083            @Override
084            public void addUserGroupTeams(long userGroupId, long[] teamIds) {
085                    _teamLocalService.addUserGroupTeams(userGroupId, teamIds);
086            }
087    
088            @Override
089            public void addUserTeam(long userId,
090                    com.liferay.portal.kernel.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.kernel.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.kernel.model.Team createTeam(long teamId) {
128                    return _teamLocalService.createTeam(teamId);
129            }
130    
131            /**
132            * @throws PortalException
133            */
134            @Override
135            public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
136                    com.liferay.portal.kernel.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.kernel.model.Team deleteTeam(
150                    com.liferay.portal.kernel.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.kernel.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.kernel.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.kernel.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,
198                    com.liferay.portal.kernel.model.Team team) {
199                    _teamLocalService.deleteUserTeam(userId, team);
200            }
201    
202            @Override
203            public void deleteUserTeam(long userId, long teamId) {
204                    _teamLocalService.deleteUserTeam(userId, teamId);
205            }
206    
207            @Override
208            public void deleteUserTeams(long userId,
209                    java.util.List<com.liferay.portal.kernel.model.Team> Teams) {
210                    _teamLocalService.deleteUserTeams(userId, Teams);
211            }
212    
213            @Override
214            public void deleteUserTeams(long userId, long[] teamIds) {
215                    _teamLocalService.deleteUserTeams(userId, teamIds);
216            }
217    
218            @Override
219            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
220                    return _teamLocalService.dynamicQuery();
221            }
222    
223            /**
224            * Performs a dynamic query on the database and returns the matching rows.
225            *
226            * @param dynamicQuery the dynamic query
227            * @return the matching rows
228            */
229            @Override
230            public <T> java.util.List<T> dynamicQuery(
231                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
232                    return _teamLocalService.dynamicQuery(dynamicQuery);
233            }
234    
235            /**
236            * Performs a dynamic query on the database and returns a range of the matching rows.
237            *
238            * <p>
239            * 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.
240            * </p>
241            *
242            * @param dynamicQuery the dynamic query
243            * @param start the lower bound of the range of model instances
244            * @param end the upper bound of the range of model instances (not inclusive)
245            * @return the range of matching rows
246            */
247            @Override
248            public <T> java.util.List<T> dynamicQuery(
249                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
250                    int end) {
251                    return _teamLocalService.dynamicQuery(dynamicQuery, start, end);
252            }
253    
254            /**
255            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
256            *
257            * <p>
258            * 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.
259            * </p>
260            *
261            * @param dynamicQuery the dynamic query
262            * @param start the lower bound of the range of model instances
263            * @param end the upper bound of the range of model instances (not inclusive)
264            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
265            * @return the ordered range of matching rows
266            */
267            @Override
268            public <T> java.util.List<T> dynamicQuery(
269                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
270                    int end,
271                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
272                    return _teamLocalService.dynamicQuery(dynamicQuery, start, end,
273                            orderByComparator);
274            }
275    
276            /**
277            * Returns the number of rows matching the dynamic query.
278            *
279            * @param dynamicQuery the dynamic query
280            * @return the number of rows matching the dynamic query
281            */
282            @Override
283            public long dynamicQueryCount(
284                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
285                    return _teamLocalService.dynamicQueryCount(dynamicQuery);
286            }
287    
288            /**
289            * Returns the number of rows matching the dynamic query.
290            *
291            * @param dynamicQuery the dynamic query
292            * @param projection the projection to apply to the query
293            * @return the number of rows matching the dynamic query
294            */
295            @Override
296            public long dynamicQueryCount(
297                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
298                    com.liferay.portal.kernel.dao.orm.Projection projection) {
299                    return _teamLocalService.dynamicQueryCount(dynamicQuery, projection);
300            }
301    
302            @Override
303            public com.liferay.portal.kernel.model.Team fetchTeam(long groupId,
304                    java.lang.String name) {
305                    return _teamLocalService.fetchTeam(groupId, name);
306            }
307    
308            @Override
309            public com.liferay.portal.kernel.model.Team fetchTeam(long teamId) {
310                    return _teamLocalService.fetchTeam(teamId);
311            }
312    
313            /**
314            * Returns the team matching the UUID and group.
315            *
316            * @param uuid the team's UUID
317            * @param groupId the primary key of the group
318            * @return the matching team, or <code>null</code> if a matching team could not be found
319            */
320            @Override
321            public com.liferay.portal.kernel.model.Team fetchTeamByUuidAndGroupId(
322                    java.lang.String uuid, long groupId) {
323                    return _teamLocalService.fetchTeamByUuidAndGroupId(uuid, groupId);
324            }
325    
326            @Override
327            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
328                    return _teamLocalService.getActionableDynamicQuery();
329            }
330    
331            @Override
332            public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
333                    com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) {
334                    return _teamLocalService.getExportActionableDynamicQuery(portletDataContext);
335            }
336    
337            @Override
338            public java.util.List<com.liferay.portal.kernel.model.Team> getGroupTeams(
339                    long groupId) {
340                    return _teamLocalService.getGroupTeams(groupId);
341            }
342    
343            @Override
344            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
345                    return _teamLocalService.getIndexableActionableDynamicQuery();
346            }
347    
348            /**
349            * Returns the OSGi service identifier.
350            *
351            * @return the OSGi service identifier
352            */
353            @Override
354            public java.lang.String getOSGiServiceIdentifier() {
355                    return _teamLocalService.getOSGiServiceIdentifier();
356            }
357    
358            @Override
359            public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
360                    java.io.Serializable primaryKeyObj)
361                    throws com.liferay.portal.kernel.exception.PortalException {
362                    return _teamLocalService.getPersistedModel(primaryKeyObj);
363            }
364    
365            @Override
366            public com.liferay.portal.kernel.model.Team getTeam(long groupId,
367                    java.lang.String name)
368                    throws com.liferay.portal.kernel.exception.PortalException {
369                    return _teamLocalService.getTeam(groupId, name);
370            }
371    
372            /**
373            * Returns the team with the primary key.
374            *
375            * @param teamId the primary key of the team
376            * @return the team
377            * @throws PortalException if a team with the primary key could not be found
378            */
379            @Override
380            public com.liferay.portal.kernel.model.Team getTeam(long teamId)
381                    throws com.liferay.portal.kernel.exception.PortalException {
382                    return _teamLocalService.getTeam(teamId);
383            }
384    
385            /**
386            * Returns the team matching the UUID and group.
387            *
388            * @param uuid the team's UUID
389            * @param groupId the primary key of the group
390            * @return the matching team
391            * @throws PortalException if a matching team could not be found
392            */
393            @Override
394            public com.liferay.portal.kernel.model.Team getTeamByUuidAndGroupId(
395                    java.lang.String uuid, long groupId)
396                    throws com.liferay.portal.kernel.exception.PortalException {
397                    return _teamLocalService.getTeamByUuidAndGroupId(uuid, groupId);
398            }
399    
400            /**
401            * Returns a range of all the teams.
402            *
403            * <p>
404            * 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.
405            * </p>
406            *
407            * @param start the lower bound of the range of teams
408            * @param end the upper bound of the range of teams (not inclusive)
409            * @return the range of teams
410            */
411            @Override
412            public java.util.List<com.liferay.portal.kernel.model.Team> getTeams(
413                    int start, int end) {
414                    return _teamLocalService.getTeams(start, end);
415            }
416    
417            /**
418            * Returns all the teams matching the UUID and company.
419            *
420            * @param uuid the UUID of the teams
421            * @param companyId the primary key of the company
422            * @return the matching teams, or an empty list if no matches were found
423            */
424            @Override
425            public java.util.List<com.liferay.portal.kernel.model.Team> getTeamsByUuidAndCompanyId(
426                    java.lang.String uuid, long companyId) {
427                    return _teamLocalService.getTeamsByUuidAndCompanyId(uuid, companyId);
428            }
429    
430            /**
431            * Returns a range of teams matching the UUID and company.
432            *
433            * @param uuid the UUID of the teams
434            * @param companyId the primary key of the company
435            * @param start the lower bound of the range of teams
436            * @param end the upper bound of the range of teams (not inclusive)
437            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
438            * @return the range of matching teams, or an empty list if no matches were found
439            */
440            @Override
441            public java.util.List<com.liferay.portal.kernel.model.Team> getTeamsByUuidAndCompanyId(
442                    java.lang.String uuid, long companyId, int start, int end,
443                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) {
444                    return _teamLocalService.getTeamsByUuidAndCompanyId(uuid, companyId,
445                            start, end, orderByComparator);
446            }
447    
448            /**
449            * Returns the number of teams.
450            *
451            * @return the number of teams
452            */
453            @Override
454            public int getTeamsCount() {
455                    return _teamLocalService.getTeamsCount();
456            }
457    
458            /**
459            * Returns the userGroupIds of the user groups associated with the team.
460            *
461            * @param teamId the teamId of the team
462            * @return long[] the userGroupIds of user groups associated with the team
463            */
464            @Override
465            public long[] getUserGroupPrimaryKeys(long teamId) {
466                    return _teamLocalService.getUserGroupPrimaryKeys(teamId);
467            }
468    
469            @Override
470            public java.util.List<com.liferay.portal.kernel.model.Team> getUserGroupTeams(
471                    long userGroupId) {
472                    return _teamLocalService.getUserGroupTeams(userGroupId);
473            }
474    
475            @Override
476            public java.util.List<com.liferay.portal.kernel.model.Team> getUserGroupTeams(
477                    long userGroupId, int start, int end) {
478                    return _teamLocalService.getUserGroupTeams(userGroupId, start, end);
479            }
480    
481            @Override
482            public java.util.List<com.liferay.portal.kernel.model.Team> getUserGroupTeams(
483                    long userGroupId, int start, int end,
484                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) {
485                    return _teamLocalService.getUserGroupTeams(userGroupId, start, end,
486                            orderByComparator);
487            }
488    
489            @Override
490            public int getUserGroupTeamsCount(long userGroupId) {
491                    return _teamLocalService.getUserGroupTeamsCount(userGroupId);
492            }
493    
494            @Override
495            public java.util.List<com.liferay.portal.kernel.model.Team> getUserOrUserGroupTeams(
496                    long groupId, long userId) {
497                    return _teamLocalService.getUserOrUserGroupTeams(groupId, userId);
498            }
499    
500            /**
501            * Returns the userIds of the users associated with the team.
502            *
503            * @param teamId the teamId of the team
504            * @return long[] the userIds of users associated with the team
505            */
506            @Override
507            public long[] getUserPrimaryKeys(long teamId) {
508                    return _teamLocalService.getUserPrimaryKeys(teamId);
509            }
510    
511            @Override
512            public java.util.List<com.liferay.portal.kernel.model.Team> getUserTeams(
513                    long userId) {
514                    return _teamLocalService.getUserTeams(userId);
515            }
516    
517            @Override
518            public java.util.List<com.liferay.portal.kernel.model.Team> getUserTeams(
519                    long userId, long groupId) {
520                    return _teamLocalService.getUserTeams(userId, groupId);
521            }
522    
523            @Override
524            public java.util.List<com.liferay.portal.kernel.model.Team> getUserTeams(
525                    long userId, int start, int end) {
526                    return _teamLocalService.getUserTeams(userId, start, end);
527            }
528    
529            @Override
530            public java.util.List<com.liferay.portal.kernel.model.Team> getUserTeams(
531                    long userId, int start, int end,
532                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) {
533                    return _teamLocalService.getUserTeams(userId, start, end,
534                            orderByComparator);
535            }
536    
537            @Override
538            public int getUserTeamsCount(long userId) {
539                    return _teamLocalService.getUserTeamsCount(userId);
540            }
541    
542            @Override
543            public boolean hasUserGroupTeam(long userGroupId, long teamId) {
544                    return _teamLocalService.hasUserGroupTeam(userGroupId, teamId);
545            }
546    
547            @Override
548            public boolean hasUserGroupTeams(long userGroupId) {
549                    return _teamLocalService.hasUserGroupTeams(userGroupId);
550            }
551    
552            @Override
553            public boolean hasUserTeam(long userId, long teamId) {
554                    return _teamLocalService.hasUserTeam(userId, teamId);
555            }
556    
557            @Override
558            public boolean hasUserTeams(long userId) {
559                    return _teamLocalService.hasUserTeams(userId);
560            }
561    
562            @Override
563            public java.util.List<com.liferay.portal.kernel.model.Team> search(
564                    long groupId, java.lang.String name, java.lang.String description,
565                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
566                    int start, int end,
567                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> obc) {
568                    return _teamLocalService.search(groupId, name, description, params,
569                            start, end, obc);
570            }
571    
572            @Override
573            public int searchCount(long groupId, java.lang.String name,
574                    java.lang.String description,
575                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params) {
576                    return _teamLocalService.searchCount(groupId, name, description, params);
577            }
578    
579            @Override
580            public void setUserGroupTeams(long userGroupId, long[] teamIds) {
581                    _teamLocalService.setUserGroupTeams(userGroupId, teamIds);
582            }
583    
584            @Override
585            public void setUserTeams(long userId, long[] teamIds) {
586                    _teamLocalService.setUserTeams(userId, teamIds);
587            }
588    
589            /**
590            * Updates the team in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
591            *
592            * @param team the team
593            * @return the team that was updated
594            */
595            @Override
596            public com.liferay.portal.kernel.model.Team updateTeam(
597                    com.liferay.portal.kernel.model.Team team) {
598                    return _teamLocalService.updateTeam(team);
599            }
600    
601            @Override
602            public com.liferay.portal.kernel.model.Team updateTeam(long teamId,
603                    java.lang.String name, java.lang.String description)
604                    throws com.liferay.portal.kernel.exception.PortalException {
605                    return _teamLocalService.updateTeam(teamId, name, description);
606            }
607    
608            @Override
609            public TeamLocalService getWrappedService() {
610                    return _teamLocalService;
611            }
612    
613            @Override
614            public void setWrappedService(TeamLocalService teamLocalService) {
615                    _teamLocalService = teamLocalService;
616            }
617    
618            private TeamLocalService _teamLocalService;
619    }