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