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