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 * @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. 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. 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. 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. 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. 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. 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 * Returns the Spring bean ID for this bean. 228 * 229 * @return the Spring bean ID for this bean 230 */ 231 public java.lang.String getBeanIdentifier() { 232 return _teamLocalService.getBeanIdentifier(); 233 } 234 235 /** 236 * Sets the Spring bean ID for this bean. 237 * 238 * @param beanIdentifier the Spring bean ID for this bean 239 */ 240 public void setBeanIdentifier(java.lang.String beanIdentifier) { 241 _teamLocalService.setBeanIdentifier(beanIdentifier); 242 } 243 244 public com.liferay.portal.model.Team addTeam(long userId, long groupId, 245 java.lang.String name, java.lang.String description) 246 throws com.liferay.portal.kernel.exception.PortalException, 247 com.liferay.portal.kernel.exception.SystemException { 248 return _teamLocalService.addTeam(userId, groupId, name, description); 249 } 250 251 public void deleteTeams(long groupId) 252 throws com.liferay.portal.kernel.exception.PortalException, 253 com.liferay.portal.kernel.exception.SystemException { 254 _teamLocalService.deleteTeams(groupId); 255 } 256 257 public java.util.List<com.liferay.portal.model.Team> getGroupTeams( 258 long groupId) 259 throws com.liferay.portal.kernel.exception.SystemException { 260 return _teamLocalService.getGroupTeams(groupId); 261 } 262 263 public com.liferay.portal.model.Team getTeam(long groupId, 264 java.lang.String name) 265 throws com.liferay.portal.kernel.exception.PortalException, 266 com.liferay.portal.kernel.exception.SystemException { 267 return _teamLocalService.getTeam(groupId, name); 268 } 269 270 public java.util.List<com.liferay.portal.model.Team> getUserTeams( 271 long userId) throws com.liferay.portal.kernel.exception.SystemException { 272 return _teamLocalService.getUserTeams(userId); 273 } 274 275 public java.util.List<com.liferay.portal.model.Team> getUserTeams( 276 long userId, long groupId) 277 throws com.liferay.portal.kernel.exception.SystemException { 278 return _teamLocalService.getUserTeams(userId, groupId); 279 } 280 281 public boolean hasUserTeam(long userId, long teamId) 282 throws com.liferay.portal.kernel.exception.SystemException { 283 return _teamLocalService.hasUserTeam(userId, teamId); 284 } 285 286 public java.util.List<com.liferay.portal.model.Team> search(long groupId, 287 java.lang.String name, java.lang.String description, 288 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 289 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc) 290 throws com.liferay.portal.kernel.exception.SystemException { 291 return _teamLocalService.search(groupId, name, description, params, 292 start, end, obc); 293 } 294 295 public int searchCount(long groupId, java.lang.String name, 296 java.lang.String description, 297 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params) 298 throws com.liferay.portal.kernel.exception.SystemException { 299 return _teamLocalService.searchCount(groupId, name, description, params); 300 } 301 302 public com.liferay.portal.model.Team updateTeam(long teamId, 303 java.lang.String name, java.lang.String description) 304 throws com.liferay.portal.kernel.exception.PortalException, 305 com.liferay.portal.kernel.exception.SystemException { 306 return _teamLocalService.updateTeam(teamId, name, description); 307 } 308 309 /** 310 * @deprecated Renamed to {@link #getWrappedService} 311 */ 312 public TeamLocalService getWrappedTeamLocalService() { 313 return _teamLocalService; 314 } 315 316 /** 317 * @deprecated Renamed to {@link #setWrappedService} 318 */ 319 public void setWrappedTeamLocalService(TeamLocalService teamLocalService) { 320 _teamLocalService = teamLocalService; 321 } 322 323 public TeamLocalService getWrappedService() { 324 return _teamLocalService; 325 } 326 327 public void setWrappedService(TeamLocalService teamLocalService) { 328 _teamLocalService = teamLocalService; 329 } 330 331 private TeamLocalService _teamLocalService; 332 }