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 @Override 257 public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery( 258 com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext) { 259 return _mbBanLocalService.getExportActionableDynamicQuery(portletDataContext); 260 } 261 262 /** 263 * Returns the message boards ban with the primary key. 264 * 265 * @param banId the primary key of the message boards ban 266 * @return the message boards ban 267 * @throws PortalException if a message boards ban with the primary key could not be found 268 */ 269 @Override 270 public com.liferay.portlet.messageboards.model.MBBan getMBBan(long banId) 271 throws com.liferay.portal.kernel.exception.PortalException { 272 return _mbBanLocalService.getMBBan(banId); 273 } 274 275 /** 276 * Returns the message boards ban matching the UUID and group. 277 * 278 * @param uuid the message boards ban's UUID 279 * @param groupId the primary key of the group 280 * @return the matching message boards ban 281 * @throws PortalException if a matching message boards ban could not be found 282 */ 283 @Override 284 public com.liferay.portlet.messageboards.model.MBBan getMBBanByUuidAndGroupId( 285 java.lang.String uuid, long groupId) 286 throws com.liferay.portal.kernel.exception.PortalException { 287 return _mbBanLocalService.getMBBanByUuidAndGroupId(uuid, groupId); 288 } 289 290 /** 291 * Returns a range of all the message boards bans. 292 * 293 * <p> 294 * 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. 295 * </p> 296 * 297 * @param start the lower bound of the range of message boards bans 298 * @param end the upper bound of the range of message boards bans (not inclusive) 299 * @return the range of message boards bans 300 */ 301 @Override 302 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> getMBBans( 303 int start, int end) { 304 return _mbBanLocalService.getMBBans(start, end); 305 } 306 307 /** 308 * Returns all the message boards bans matching the UUID and company. 309 * 310 * @param uuid the UUID of the message boards bans 311 * @param companyId the primary key of the company 312 * @return the matching message boards bans, or an empty list if no matches were found 313 */ 314 @Override 315 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> getMBBansByUuidAndCompanyId( 316 java.lang.String uuid, long companyId) { 317 return _mbBanLocalService.getMBBansByUuidAndCompanyId(uuid, companyId); 318 } 319 320 /** 321 * Returns a range of message boards bans matching the UUID and company. 322 * 323 * @param uuid the UUID of the message boards bans 324 * @param companyId the primary key of the company 325 * @param start the lower bound of the range of message boards bans 326 * @param end the upper bound of the range of message boards bans (not inclusive) 327 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 328 * @return the range of matching message boards bans, or an empty list if no matches were found 329 */ 330 @Override 331 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> getMBBansByUuidAndCompanyId( 332 java.lang.String uuid, long companyId, int start, int end, 333 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.messageboards.model.MBBan> orderByComparator) { 334 return _mbBanLocalService.getMBBansByUuidAndCompanyId(uuid, companyId, 335 start, end, orderByComparator); 336 } 337 338 /** 339 * Returns the number of message boards bans. 340 * 341 * @return the number of message boards bans 342 */ 343 @Override 344 public int getMBBansCount() { 345 return _mbBanLocalService.getMBBansCount(); 346 } 347 348 /** 349 * Returns the OSGi service identifier. 350 * 351 * @return the OSGi service identifier 352 */ 353 @Override 354 public java.lang.String getOSGiServiceIdentifier() { 355 return _mbBanLocalService.getOSGiServiceIdentifier(); 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 * Updates the message boards ban in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 372 * 373 * @param mbBan the message boards ban 374 * @return the message boards ban that was updated 375 */ 376 @Override 377 public com.liferay.portlet.messageboards.model.MBBan updateMBBan( 378 com.liferay.portlet.messageboards.model.MBBan mbBan) { 379 return _mbBanLocalService.updateMBBan(mbBan); 380 } 381 382 /** 383 * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} 384 */ 385 @Deprecated 386 public MBBanLocalService getWrappedMBBanLocalService() { 387 return _mbBanLocalService; 388 } 389 390 /** 391 * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} 392 */ 393 @Deprecated 394 public void setWrappedMBBanLocalService(MBBanLocalService mbBanLocalService) { 395 _mbBanLocalService = mbBanLocalService; 396 } 397 398 @Override 399 public MBBanLocalService getWrappedService() { 400 return _mbBanLocalService; 401 } 402 403 @Override 404 public void setWrappedService(MBBanLocalService mbBanLocalService) { 405 _mbBanLocalService = mbBanLocalService; 406 } 407 408 private MBBanLocalService _mbBanLocalService; 409 }