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