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 TeamService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see TeamService
024     * @generated
025     */
026    @ProviderType
027    public class TeamServiceWrapper implements TeamService,
028            ServiceWrapper<TeamService> {
029            public TeamServiceWrapper(TeamService teamService) {
030                    _teamService = teamService;
031            }
032    
033            /**
034            * @deprecated As of 7.0.0, replaced by {@link #addTeam(long, String,
035            String, ServiceContext)}
036            */
037            @Deprecated
038            @Override
039            public com.liferay.portal.model.Team addTeam(long groupId,
040                    java.lang.String name, java.lang.String description)
041                    throws com.liferay.portal.kernel.exception.PortalException {
042                    return _teamService.addTeam(groupId, name, description);
043            }
044    
045            @Override
046            public com.liferay.portal.model.Team addTeam(long groupId,
047                    java.lang.String name, java.lang.String description,
048                    com.liferay.portal.service.ServiceContext serviceContext)
049                    throws com.liferay.portal.kernel.exception.PortalException {
050                    return _teamService.addTeam(groupId, name, description, serviceContext);
051            }
052    
053            @Override
054            public void deleteTeam(long teamId)
055                    throws com.liferay.portal.kernel.exception.PortalException {
056                    _teamService.deleteTeam(teamId);
057            }
058    
059            @Override
060            public java.util.List<com.liferay.portal.model.Team> getGroupTeams(
061                    long groupId)
062                    throws com.liferay.portal.kernel.exception.PortalException {
063                    return _teamService.getGroupTeams(groupId);
064            }
065    
066            /**
067            * Returns the OSGi service identifier.
068            *
069            * @return the OSGi service identifier
070            */
071            @Override
072            public java.lang.String getOSGiServiceIdentifier() {
073                    return _teamService.getOSGiServiceIdentifier();
074            }
075    
076            @Override
077            public com.liferay.portal.model.Team getTeam(long groupId,
078                    java.lang.String name)
079                    throws com.liferay.portal.kernel.exception.PortalException {
080                    return _teamService.getTeam(groupId, name);
081            }
082    
083            @Override
084            public com.liferay.portal.model.Team getTeam(long teamId)
085                    throws com.liferay.portal.kernel.exception.PortalException {
086                    return _teamService.getTeam(teamId);
087            }
088    
089            @Override
090            public java.util.List<com.liferay.portal.model.Team> getUserTeams(
091                    long userId) throws com.liferay.portal.kernel.exception.PortalException {
092                    return _teamService.getUserTeams(userId);
093            }
094    
095            @Override
096            public java.util.List<com.liferay.portal.model.Team> getUserTeams(
097                    long userId, long groupId)
098                    throws com.liferay.portal.kernel.exception.PortalException {
099                    return _teamService.getUserTeams(userId, groupId);
100            }
101    
102            @Override
103            public boolean hasUserTeam(long userId, long teamId)
104                    throws com.liferay.portal.kernel.exception.PortalException {
105                    return _teamService.hasUserTeam(userId, teamId);
106            }
107    
108            @Override
109            public java.util.List<com.liferay.portal.model.Team> search(long groupId,
110                    java.lang.String name, java.lang.String description,
111                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
112                    int start, int end,
113                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Team> obc) {
114                    return _teamService.search(groupId, name, description, params, start,
115                            end, obc);
116            }
117    
118            @Override
119            public int searchCount(long groupId, java.lang.String name,
120                    java.lang.String description,
121                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params) {
122                    return _teamService.searchCount(groupId, name, description, params);
123            }
124    
125            @Override
126            public com.liferay.portal.model.Team updateTeam(long teamId,
127                    java.lang.String name, java.lang.String description)
128                    throws com.liferay.portal.kernel.exception.PortalException {
129                    return _teamService.updateTeam(teamId, name, description);
130            }
131    
132            @Override
133            public TeamService getWrappedService() {
134                    return _teamService;
135            }
136    
137            @Override
138            public void setWrappedService(TeamService teamService) {
139                    _teamService = teamService;
140            }
141    
142            private TeamService _teamService;
143    }