001    /**
002     * Copyright (c) 2000-2011 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    /**
018     * <p>
019     * This class is a wrapper for {@link TeamLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       TeamLocalService
024     * @generated
025     */
026    public class TeamLocalServiceWrapper implements TeamLocalService {
027            public TeamLocalServiceWrapper(TeamLocalService teamLocalService) {
028                    _teamLocalService = teamLocalService;
029            }
030    
031            /**
032            * Adds the team to the database. Also notifies the appropriate model listeners.
033            *
034            * @param team the team
035            * @return the team that was added
036            * @throws SystemException if a system exception occurred
037            */
038            public com.liferay.portal.model.Team addTeam(
039                    com.liferay.portal.model.Team team)
040                    throws com.liferay.portal.kernel.exception.SystemException {
041                    return _teamLocalService.addTeam(team);
042            }
043    
044            /**
045            * Creates a new team with the primary key. Does not add the team to the database.
046            *
047            * @param teamId the primary key for the new team
048            * @return the new team
049            */
050            public com.liferay.portal.model.Team createTeam(long teamId) {
051                    return _teamLocalService.createTeam(teamId);
052            }
053    
054            /**
055            * Deletes the team with the primary key from the database. Also notifies the appropriate model listeners.
056            *
057            * @param teamId the primary key of the team
058            * @throws PortalException if a team with the primary key could not be found
059            * @throws SystemException if a system exception occurred
060            */
061            public void deleteTeam(long teamId)
062                    throws com.liferay.portal.kernel.exception.PortalException,
063                            com.liferay.portal.kernel.exception.SystemException {
064                    _teamLocalService.deleteTeam(teamId);
065            }
066    
067            /**
068            * Deletes the team from the database. Also notifies the appropriate model listeners.
069            *
070            * @param team the team
071            * @throws PortalException
072            * @throws SystemException if a system exception occurred
073            */
074            public void deleteTeam(com.liferay.portal.model.Team team)
075                    throws com.liferay.portal.kernel.exception.PortalException,
076                            com.liferay.portal.kernel.exception.SystemException {
077                    _teamLocalService.deleteTeam(team);
078            }
079    
080            /**
081            * Performs a dynamic query on the database and returns the matching rows.
082            *
083            * @param dynamicQuery the dynamic query
084            * @return the matching rows
085            * @throws SystemException if a system exception occurred
086            */
087            @SuppressWarnings("rawtypes")
088            public java.util.List dynamicQuery(
089                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
090                    throws com.liferay.portal.kernel.exception.SystemException {
091                    return _teamLocalService.dynamicQuery(dynamicQuery);
092            }
093    
094            /**
095            * Performs a dynamic query on the database and returns a range of the matching rows.
096            *
097            * <p>
098            * 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.
099            * </p>
100            *
101            * @param dynamicQuery the dynamic query
102            * @param start the lower bound of the range of model instances
103            * @param end the upper bound of the range of model instances (not inclusive)
104            * @return the range of matching rows
105            * @throws SystemException if a system exception occurred
106            */
107            @SuppressWarnings("rawtypes")
108            public java.util.List dynamicQuery(
109                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
110                    int end) throws com.liferay.portal.kernel.exception.SystemException {
111                    return _teamLocalService.dynamicQuery(dynamicQuery, start, end);
112            }
113    
114            /**
115            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
116            *
117            * <p>
118            * 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.
119            * </p>
120            *
121            * @param dynamicQuery the dynamic query
122            * @param start the lower bound of the range of model instances
123            * @param end the upper bound of the range of model instances (not inclusive)
124            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
125            * @return the ordered range of matching rows
126            * @throws SystemException if a system exception occurred
127            */
128            @SuppressWarnings("rawtypes")
129            public java.util.List dynamicQuery(
130                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
131                    int end,
132                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133                    throws com.liferay.portal.kernel.exception.SystemException {
134                    return _teamLocalService.dynamicQuery(dynamicQuery, start, end,
135                            orderByComparator);
136            }
137    
138            /**
139            * Returns the number of rows that match the dynamic query.
140            *
141            * @param dynamicQuery the dynamic query
142            * @return the number of rows that match the dynamic query
143            * @throws SystemException if a system exception occurred
144            */
145            public long dynamicQueryCount(
146                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
147                    throws com.liferay.portal.kernel.exception.SystemException {
148                    return _teamLocalService.dynamicQueryCount(dynamicQuery);
149            }
150    
151            /**
152            * Returns the team with the primary key.
153            *
154            * @param teamId the primary key of the team
155            * @return the team
156            * @throws PortalException if a team with the primary key could not be found
157            * @throws SystemException if a system exception occurred
158            */
159            public com.liferay.portal.model.Team getTeam(long teamId)
160                    throws com.liferay.portal.kernel.exception.PortalException,
161                            com.liferay.portal.kernel.exception.SystemException {
162                    return _teamLocalService.getTeam(teamId);
163            }
164    
165            public com.liferay.portal.model.PersistedModel getPersistedModel(
166                    java.io.Serializable primaryKeyObj)
167                    throws com.liferay.portal.kernel.exception.PortalException,
168                            com.liferay.portal.kernel.exception.SystemException {
169                    return _teamLocalService.getPersistedModel(primaryKeyObj);
170            }
171    
172            /**
173            * Returns a range of all the teams.
174            *
175            * <p>
176            * 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.
177            * </p>
178            *
179            * @param start the lower bound of the range of teams
180            * @param end the upper bound of the range of teams (not inclusive)
181            * @return the range of teams
182            * @throws SystemException if a system exception occurred
183            */
184            public java.util.List<com.liferay.portal.model.Team> getTeams(int start,
185                    int end) throws com.liferay.portal.kernel.exception.SystemException {
186                    return _teamLocalService.getTeams(start, end);
187            }
188    
189            /**
190            * Returns the number of teams.
191            *
192            * @return the number of teams
193            * @throws SystemException if a system exception occurred
194            */
195            public int getTeamsCount()
196                    throws com.liferay.portal.kernel.exception.SystemException {
197                    return _teamLocalService.getTeamsCount();
198            }
199    
200            /**
201            * Updates the team in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
202            *
203            * @param team the team
204            * @return the team that was updated
205            * @throws SystemException if a system exception occurred
206            */
207            public com.liferay.portal.model.Team updateTeam(
208                    com.liferay.portal.model.Team team)
209                    throws com.liferay.portal.kernel.exception.SystemException {
210                    return _teamLocalService.updateTeam(team);
211            }
212    
213            /**
214            * Updates the team in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
215            *
216            * @param team the team
217            * @param merge whether to merge the team with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
218            * @return the team that was updated
219            * @throws SystemException if a system exception occurred
220            */
221            public com.liferay.portal.model.Team updateTeam(
222                    com.liferay.portal.model.Team team, boolean merge)
223                    throws com.liferay.portal.kernel.exception.SystemException {
224                    return _teamLocalService.updateTeam(team, merge);
225            }
226    
227            /**
228            * Returns the Spring bean ID for this bean.
229            *
230            * @return the Spring bean ID for this bean
231            */
232            public java.lang.String getBeanIdentifier() {
233                    return _teamLocalService.getBeanIdentifier();
234            }
235    
236            /**
237            * Sets the Spring bean ID for this bean.
238            *
239            * @param beanIdentifier the Spring bean ID for this bean
240            */
241            public void setBeanIdentifier(java.lang.String beanIdentifier) {
242                    _teamLocalService.setBeanIdentifier(beanIdentifier);
243            }
244    
245            public com.liferay.portal.model.Team addTeam(long userId, long groupId,
246                    java.lang.String name, java.lang.String description)
247                    throws com.liferay.portal.kernel.exception.PortalException,
248                            com.liferay.portal.kernel.exception.SystemException {
249                    return _teamLocalService.addTeam(userId, groupId, name, description);
250            }
251    
252            public void deleteTeams(long groupId)
253                    throws com.liferay.portal.kernel.exception.PortalException,
254                            com.liferay.portal.kernel.exception.SystemException {
255                    _teamLocalService.deleteTeams(groupId);
256            }
257    
258            public java.util.List<com.liferay.portal.model.Team> getGroupTeams(
259                    long groupId)
260                    throws com.liferay.portal.kernel.exception.SystemException {
261                    return _teamLocalService.getGroupTeams(groupId);
262            }
263    
264            public com.liferay.portal.model.Team getTeam(long groupId,
265                    java.lang.String name)
266                    throws com.liferay.portal.kernel.exception.PortalException,
267                            com.liferay.portal.kernel.exception.SystemException {
268                    return _teamLocalService.getTeam(groupId, name);
269            }
270    
271            public java.util.List<com.liferay.portal.model.Team> getUserTeams(
272                    long userId) throws com.liferay.portal.kernel.exception.SystemException {
273                    return _teamLocalService.getUserTeams(userId);
274            }
275    
276            public java.util.List<com.liferay.portal.model.Team> getUserTeams(
277                    long userId, long groupId)
278                    throws com.liferay.portal.kernel.exception.SystemException {
279                    return _teamLocalService.getUserTeams(userId, groupId);
280            }
281    
282            public boolean hasUserTeam(long userId, long teamId)
283                    throws com.liferay.portal.kernel.exception.SystemException {
284                    return _teamLocalService.hasUserTeam(userId, teamId);
285            }
286    
287            public java.util.List<com.liferay.portal.model.Team> search(long groupId,
288                    java.lang.String name, java.lang.String description,
289                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
290                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
291                    throws com.liferay.portal.kernel.exception.SystemException {
292                    return _teamLocalService.search(groupId, name, description, params,
293                            start, end, obc);
294            }
295    
296            public int searchCount(long groupId, java.lang.String name,
297                    java.lang.String description,
298                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
299                    throws com.liferay.portal.kernel.exception.SystemException {
300                    return _teamLocalService.searchCount(groupId, name, description, params);
301            }
302    
303            public com.liferay.portal.model.Team updateTeam(long teamId,
304                    java.lang.String name, java.lang.String description)
305                    throws com.liferay.portal.kernel.exception.PortalException,
306                            com.liferay.portal.kernel.exception.SystemException {
307                    return _teamLocalService.updateTeam(teamId, name, description);
308            }
309    
310            public TeamLocalService getWrappedTeamLocalService() {
311                    return _teamLocalService;
312            }
313    
314            public void setWrappedTeamLocalService(TeamLocalService teamLocalService) {
315                    _teamLocalService = teamLocalService;
316            }
317    
318            private TeamLocalService _teamLocalService;
319    }