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