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