001 /** 002 * Copyright (c) 2000-2013 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.portlet.messageboards.service; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.service.ServiceWrapper; 020 021 /** 022 * Provides a wrapper for {@link MBBanLocalService}. 023 * 024 * @author Brian Wing Shun Chan 025 * @see MBBanLocalService 026 * @generated 027 */ 028 @ProviderType 029 public class MBBanLocalServiceWrapper implements MBBanLocalService, 030 ServiceWrapper<MBBanLocalService> { 031 public MBBanLocalServiceWrapper(MBBanLocalService mbBanLocalService) { 032 _mbBanLocalService = mbBanLocalService; 033 } 034 035 /** 036 * Adds the message boards ban to the database. Also notifies the appropriate model listeners. 037 * 038 * @param mbBan the message boards ban 039 * @return the message boards ban that was added 040 * @throws SystemException if a system exception occurred 041 */ 042 @Override 043 public com.liferay.portlet.messageboards.model.MBBan addMBBan( 044 com.liferay.portlet.messageboards.model.MBBan mbBan) 045 throws com.liferay.portal.kernel.exception.SystemException { 046 return _mbBanLocalService.addMBBan(mbBan); 047 } 048 049 /** 050 * Creates a new message boards ban with the primary key. Does not add the message boards ban to the database. 051 * 052 * @param banId the primary key for the new message boards ban 053 * @return the new message boards ban 054 */ 055 @Override 056 public com.liferay.portlet.messageboards.model.MBBan createMBBan(long banId) { 057 return _mbBanLocalService.createMBBan(banId); 058 } 059 060 /** 061 * Deletes the message boards ban with the primary key from the database. Also notifies the appropriate model listeners. 062 * 063 * @param banId the primary key of the message boards ban 064 * @return the message boards ban that was removed 065 * @throws PortalException if a message boards ban with the primary key could not be found 066 * @throws SystemException if a system exception occurred 067 */ 068 @Override 069 public com.liferay.portlet.messageboards.model.MBBan deleteMBBan(long banId) 070 throws com.liferay.portal.kernel.exception.PortalException, 071 com.liferay.portal.kernel.exception.SystemException { 072 return _mbBanLocalService.deleteMBBan(banId); 073 } 074 075 /** 076 * Deletes the message boards ban from the database. Also notifies the appropriate model listeners. 077 * 078 * @param mbBan the message boards ban 079 * @return the message boards ban that was removed 080 * @throws SystemException if a system exception occurred 081 */ 082 @Override 083 public com.liferay.portlet.messageboards.model.MBBan deleteMBBan( 084 com.liferay.portlet.messageboards.model.MBBan mbBan) 085 throws com.liferay.portal.kernel.exception.SystemException { 086 return _mbBanLocalService.deleteMBBan(mbBan); 087 } 088 089 @Override 090 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { 091 return _mbBanLocalService.dynamicQuery(); 092 } 093 094 /** 095 * Performs a dynamic query on the database and returns the matching rows. 096 * 097 * @param dynamicQuery the dynamic query 098 * @return the matching rows 099 * @throws SystemException if a system exception occurred 100 */ 101 @Override 102 @SuppressWarnings("rawtypes") 103 public java.util.List dynamicQuery( 104 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) 105 throws com.liferay.portal.kernel.exception.SystemException { 106 return _mbBanLocalService.dynamicQuery(dynamicQuery); 107 } 108 109 /** 110 * Performs a dynamic query on the database and returns a range of the matching rows. 111 * 112 * <p> 113 * 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.portlet.messageboards.model.impl.MBBanModelImpl}. 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. 114 * </p> 115 * 116 * @param dynamicQuery the dynamic query 117 * @param start the lower bound of the range of model instances 118 * @param end the upper bound of the range of model instances (not inclusive) 119 * @return the range of matching rows 120 * @throws SystemException if a system exception occurred 121 */ 122 @Override 123 @SuppressWarnings("rawtypes") 124 public java.util.List dynamicQuery( 125 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 126 int end) throws com.liferay.portal.kernel.exception.SystemException { 127 return _mbBanLocalService.dynamicQuery(dynamicQuery, start, end); 128 } 129 130 /** 131 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 132 * 133 * <p> 134 * 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.portlet.messageboards.model.impl.MBBanModelImpl}. 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. 135 * </p> 136 * 137 * @param dynamicQuery the dynamic query 138 * @param start the lower bound of the range of model instances 139 * @param end the upper bound of the range of model instances (not inclusive) 140 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 141 * @return the ordered range of matching rows 142 * @throws SystemException if a system exception occurred 143 */ 144 @Override 145 @SuppressWarnings("rawtypes") 146 public java.util.List dynamicQuery( 147 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 148 int end, 149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 150 throws com.liferay.portal.kernel.exception.SystemException { 151 return _mbBanLocalService.dynamicQuery(dynamicQuery, start, end, 152 orderByComparator); 153 } 154 155 /** 156 * Returns the number of rows that match the dynamic query. 157 * 158 * @param dynamicQuery the dynamic query 159 * @return the number of rows that match the dynamic query 160 * @throws SystemException if a system exception occurred 161 */ 162 @Override 163 public long dynamicQueryCount( 164 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) 165 throws com.liferay.portal.kernel.exception.SystemException { 166 return _mbBanLocalService.dynamicQueryCount(dynamicQuery); 167 } 168 169 /** 170 * Returns the number of rows that match the dynamic query. 171 * 172 * @param dynamicQuery the dynamic query 173 * @param projection the projection to apply to the query 174 * @return the number of rows that match the dynamic query 175 * @throws SystemException if a system exception occurred 176 */ 177 @Override 178 public long dynamicQueryCount( 179 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, 180 com.liferay.portal.kernel.dao.orm.Projection projection) 181 throws com.liferay.portal.kernel.exception.SystemException { 182 return _mbBanLocalService.dynamicQueryCount(dynamicQuery, projection); 183 } 184 185 @Override 186 public com.liferay.portlet.messageboards.model.MBBan fetchMBBan(long banId) 187 throws com.liferay.portal.kernel.exception.SystemException { 188 return _mbBanLocalService.fetchMBBan(banId); 189 } 190 191 /** 192 * Returns the message boards ban with the matching UUID and company. 193 * 194 * @param uuid the message boards ban's UUID 195 * @param companyId the primary key of the company 196 * @return the matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 197 * @throws SystemException if a system exception occurred 198 */ 199 @Override 200 public com.liferay.portlet.messageboards.model.MBBan fetchMBBanByUuidAndCompanyId( 201 java.lang.String uuid, long companyId) 202 throws com.liferay.portal.kernel.exception.SystemException { 203 return _mbBanLocalService.fetchMBBanByUuidAndCompanyId(uuid, companyId); 204 } 205 206 /** 207 * Returns the message boards ban matching the UUID and group. 208 * 209 * @param uuid the message boards ban's UUID 210 * @param groupId the primary key of the group 211 * @return the matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 212 * @throws SystemException if a system exception occurred 213 */ 214 @Override 215 public com.liferay.portlet.messageboards.model.MBBan fetchMBBanByUuidAndGroupId( 216 java.lang.String uuid, long groupId) 217 throws com.liferay.portal.kernel.exception.SystemException { 218 return _mbBanLocalService.fetchMBBanByUuidAndGroupId(uuid, groupId); 219 } 220 221 /** 222 * Returns the message boards ban with the primary key. 223 * 224 * @param banId the primary key of the message boards ban 225 * @return the message boards ban 226 * @throws PortalException if a message boards ban with the primary key could not be found 227 * @throws SystemException if a system exception occurred 228 */ 229 @Override 230 public com.liferay.portlet.messageboards.model.MBBan getMBBan(long banId) 231 throws com.liferay.portal.kernel.exception.PortalException, 232 com.liferay.portal.kernel.exception.SystemException { 233 return _mbBanLocalService.getMBBan(banId); 234 } 235 236 @Override 237 public com.liferay.portal.model.PersistedModel getPersistedModel( 238 java.io.Serializable primaryKeyObj) 239 throws com.liferay.portal.kernel.exception.PortalException, 240 com.liferay.portal.kernel.exception.SystemException { 241 return _mbBanLocalService.getPersistedModel(primaryKeyObj); 242 } 243 244 /** 245 * Returns the message boards ban with the matching UUID and company. 246 * 247 * @param uuid the message boards ban's UUID 248 * @param companyId the primary key of the company 249 * @return the matching message boards ban 250 * @throws PortalException if a matching message boards ban could not be found 251 * @throws SystemException if a system exception occurred 252 */ 253 @Override 254 public com.liferay.portlet.messageboards.model.MBBan getMBBanByUuidAndCompanyId( 255 java.lang.String uuid, long companyId) 256 throws com.liferay.portal.kernel.exception.PortalException, 257 com.liferay.portal.kernel.exception.SystemException { 258 return _mbBanLocalService.getMBBanByUuidAndCompanyId(uuid, companyId); 259 } 260 261 /** 262 * Returns the message boards ban matching the UUID and group. 263 * 264 * @param uuid the message boards ban's UUID 265 * @param groupId the primary key of the group 266 * @return the matching message boards ban 267 * @throws PortalException if a matching message boards ban could not be found 268 * @throws SystemException if a system exception occurred 269 */ 270 @Override 271 public com.liferay.portlet.messageboards.model.MBBan getMBBanByUuidAndGroupId( 272 java.lang.String uuid, long groupId) 273 throws com.liferay.portal.kernel.exception.PortalException, 274 com.liferay.portal.kernel.exception.SystemException { 275 return _mbBanLocalService.getMBBanByUuidAndGroupId(uuid, groupId); 276 } 277 278 /** 279 * Returns a range of all the message boards bans. 280 * 281 * <p> 282 * 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.portlet.messageboards.model.impl.MBBanModelImpl}. 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. 283 * </p> 284 * 285 * @param start the lower bound of the range of message boards bans 286 * @param end the upper bound of the range of message boards bans (not inclusive) 287 * @return the range of message boards bans 288 * @throws SystemException if a system exception occurred 289 */ 290 @Override 291 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> getMBBans( 292 int start, int end) 293 throws com.liferay.portal.kernel.exception.SystemException { 294 return _mbBanLocalService.getMBBans(start, end); 295 } 296 297 /** 298 * Returns the number of message boards bans. 299 * 300 * @return the number of message boards bans 301 * @throws SystemException if a system exception occurred 302 */ 303 @Override 304 public int getMBBansCount() 305 throws com.liferay.portal.kernel.exception.SystemException { 306 return _mbBanLocalService.getMBBansCount(); 307 } 308 309 /** 310 * Updates the message boards ban in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 311 * 312 * @param mbBan the message boards ban 313 * @return the message boards ban that was updated 314 * @throws SystemException if a system exception occurred 315 */ 316 @Override 317 public com.liferay.portlet.messageboards.model.MBBan updateMBBan( 318 com.liferay.portlet.messageboards.model.MBBan mbBan) 319 throws com.liferay.portal.kernel.exception.SystemException { 320 return _mbBanLocalService.updateMBBan(mbBan); 321 } 322 323 /** 324 * Returns the Spring bean ID for this bean. 325 * 326 * @return the Spring bean ID for this bean 327 */ 328 @Override 329 public java.lang.String getBeanIdentifier() { 330 return _mbBanLocalService.getBeanIdentifier(); 331 } 332 333 /** 334 * Sets the Spring bean ID for this bean. 335 * 336 * @param beanIdentifier the Spring bean ID for this bean 337 */ 338 @Override 339 public void setBeanIdentifier(java.lang.String beanIdentifier) { 340 _mbBanLocalService.setBeanIdentifier(beanIdentifier); 341 } 342 343 @Override 344 public com.liferay.portlet.messageboards.model.MBBan addBan(long userId, 345 long banUserId, com.liferay.portal.service.ServiceContext serviceContext) 346 throws com.liferay.portal.kernel.exception.PortalException, 347 com.liferay.portal.kernel.exception.SystemException { 348 return _mbBanLocalService.addBan(userId, banUserId, serviceContext); 349 } 350 351 @Override 352 public void checkBan(long groupId, long banUserId) 353 throws com.liferay.portal.kernel.exception.PortalException, 354 com.liferay.portal.kernel.exception.SystemException { 355 _mbBanLocalService.checkBan(groupId, banUserId); 356 } 357 358 @Override 359 public void deleteBan(long banId) 360 throws com.liferay.portal.kernel.exception.PortalException, 361 com.liferay.portal.kernel.exception.SystemException { 362 _mbBanLocalService.deleteBan(banId); 363 } 364 365 @Override 366 public void deleteBan(long banUserId, 367 com.liferay.portal.service.ServiceContext serviceContext) 368 throws com.liferay.portal.kernel.exception.SystemException { 369 _mbBanLocalService.deleteBan(banUserId, serviceContext); 370 } 371 372 @Override 373 public void deleteBan(com.liferay.portlet.messageboards.model.MBBan ban) 374 throws com.liferay.portal.kernel.exception.SystemException { 375 _mbBanLocalService.deleteBan(ban); 376 } 377 378 @Override 379 public void deleteBansByBanUserId(long banUserId) 380 throws com.liferay.portal.kernel.exception.SystemException { 381 _mbBanLocalService.deleteBansByBanUserId(banUserId); 382 } 383 384 @Override 385 public void deleteBansByGroupId(long groupId) 386 throws com.liferay.portal.kernel.exception.SystemException { 387 _mbBanLocalService.deleteBansByGroupId(groupId); 388 } 389 390 @Override 391 public void expireBans() 392 throws com.liferay.portal.kernel.exception.SystemException { 393 _mbBanLocalService.expireBans(); 394 } 395 396 @Override 397 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> getBans( 398 long groupId, int start, int end) 399 throws com.liferay.portal.kernel.exception.SystemException { 400 return _mbBanLocalService.getBans(groupId, start, end); 401 } 402 403 @Override 404 public int getBansCount(long groupId) 405 throws com.liferay.portal.kernel.exception.SystemException { 406 return _mbBanLocalService.getBansCount(groupId); 407 } 408 409 @Override 410 public boolean hasBan(long groupId, long banUserId) 411 throws com.liferay.portal.kernel.exception.SystemException { 412 return _mbBanLocalService.hasBan(groupId, banUserId); 413 } 414 415 /** 416 * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} 417 */ 418 public MBBanLocalService getWrappedMBBanLocalService() { 419 return _mbBanLocalService; 420 } 421 422 /** 423 * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} 424 */ 425 public void setWrappedMBBanLocalService(MBBanLocalService mbBanLocalService) { 426 _mbBanLocalService = mbBanLocalService; 427 } 428 429 @Override 430 public MBBanLocalService getWrappedService() { 431 return _mbBanLocalService; 432 } 433 434 @Override 435 public void setWrappedService(MBBanLocalService mbBanLocalService) { 436 _mbBanLocalService = mbBanLocalService; 437 } 438 439 private MBBanLocalService _mbBanLocalService; 440 }