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.social.service; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.service.ServiceWrapper; 020 021 /** 022 * Provides a wrapper for {@link SocialRequestLocalService}. 023 * 024 * @author Brian Wing Shun Chan 025 * @see SocialRequestLocalService 026 * @generated 027 */ 028 @ProviderType 029 public class SocialRequestLocalServiceWrapper 030 implements SocialRequestLocalService, 031 ServiceWrapper<SocialRequestLocalService> { 032 public SocialRequestLocalServiceWrapper( 033 SocialRequestLocalService socialRequestLocalService) { 034 _socialRequestLocalService = socialRequestLocalService; 035 } 036 037 /** 038 * Adds the social request to the database. Also notifies the appropriate model listeners. 039 * 040 * @param socialRequest the social request 041 * @return the social request that was added 042 * @throws SystemException if a system exception occurred 043 */ 044 @Override 045 public com.liferay.portlet.social.model.SocialRequest addSocialRequest( 046 com.liferay.portlet.social.model.SocialRequest socialRequest) 047 throws com.liferay.portal.kernel.exception.SystemException { 048 return _socialRequestLocalService.addSocialRequest(socialRequest); 049 } 050 051 /** 052 * Creates a new social request with the primary key. Does not add the social request to the database. 053 * 054 * @param requestId the primary key for the new social request 055 * @return the new social request 056 */ 057 @Override 058 public com.liferay.portlet.social.model.SocialRequest createSocialRequest( 059 long requestId) { 060 return _socialRequestLocalService.createSocialRequest(requestId); 061 } 062 063 /** 064 * Deletes the social request with the primary key from the database. Also notifies the appropriate model listeners. 065 * 066 * @param requestId the primary key of the social request 067 * @return the social request that was removed 068 * @throws PortalException if a social request with the primary key could not be found 069 * @throws SystemException if a system exception occurred 070 */ 071 @Override 072 public com.liferay.portlet.social.model.SocialRequest deleteSocialRequest( 073 long requestId) 074 throws com.liferay.portal.kernel.exception.PortalException, 075 com.liferay.portal.kernel.exception.SystemException { 076 return _socialRequestLocalService.deleteSocialRequest(requestId); 077 } 078 079 /** 080 * Deletes the social request from the database. Also notifies the appropriate model listeners. 081 * 082 * @param socialRequest the social request 083 * @return the social request that was removed 084 * @throws SystemException if a system exception occurred 085 */ 086 @Override 087 public com.liferay.portlet.social.model.SocialRequest deleteSocialRequest( 088 com.liferay.portlet.social.model.SocialRequest socialRequest) 089 throws com.liferay.portal.kernel.exception.SystemException { 090 return _socialRequestLocalService.deleteSocialRequest(socialRequest); 091 } 092 093 @Override 094 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { 095 return _socialRequestLocalService.dynamicQuery(); 096 } 097 098 /** 099 * Performs a dynamic query on the database and returns the matching rows. 100 * 101 * @param dynamicQuery the dynamic query 102 * @return the matching rows 103 * @throws SystemException if a system exception occurred 104 */ 105 @Override 106 @SuppressWarnings("rawtypes") 107 public java.util.List dynamicQuery( 108 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) 109 throws com.liferay.portal.kernel.exception.SystemException { 110 return _socialRequestLocalService.dynamicQuery(dynamicQuery); 111 } 112 113 /** 114 * Performs a dynamic query on the database and returns a range of the matching rows. 115 * 116 * <p> 117 * 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.social.model.impl.SocialRequestModelImpl}. 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. 118 * </p> 119 * 120 * @param dynamicQuery the dynamic query 121 * @param start the lower bound of the range of model instances 122 * @param end the upper bound of the range of model instances (not inclusive) 123 * @return the range of matching rows 124 * @throws SystemException if a system exception occurred 125 */ 126 @Override 127 @SuppressWarnings("rawtypes") 128 public java.util.List dynamicQuery( 129 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 130 int end) throws com.liferay.portal.kernel.exception.SystemException { 131 return _socialRequestLocalService.dynamicQuery(dynamicQuery, start, end); 132 } 133 134 /** 135 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 136 * 137 * <p> 138 * 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.social.model.impl.SocialRequestModelImpl}. 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. 139 * </p> 140 * 141 * @param dynamicQuery the dynamic query 142 * @param start the lower bound of the range of model instances 143 * @param end the upper bound of the range of model instances (not inclusive) 144 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 145 * @return the ordered range of matching rows 146 * @throws SystemException if a system exception occurred 147 */ 148 @Override 149 @SuppressWarnings("rawtypes") 150 public java.util.List dynamicQuery( 151 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 152 int end, 153 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 154 throws com.liferay.portal.kernel.exception.SystemException { 155 return _socialRequestLocalService.dynamicQuery(dynamicQuery, start, 156 end, orderByComparator); 157 } 158 159 /** 160 * Returns the number of rows that match the dynamic query. 161 * 162 * @param dynamicQuery the dynamic query 163 * @return the number of rows that match the dynamic query 164 * @throws SystemException if a system exception occurred 165 */ 166 @Override 167 public long dynamicQueryCount( 168 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) 169 throws com.liferay.portal.kernel.exception.SystemException { 170 return _socialRequestLocalService.dynamicQueryCount(dynamicQuery); 171 } 172 173 /** 174 * Returns the number of rows that match the dynamic query. 175 * 176 * @param dynamicQuery the dynamic query 177 * @param projection the projection to apply to the query 178 * @return the number of rows that match the dynamic query 179 * @throws SystemException if a system exception occurred 180 */ 181 @Override 182 public long dynamicQueryCount( 183 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, 184 com.liferay.portal.kernel.dao.orm.Projection projection) 185 throws com.liferay.portal.kernel.exception.SystemException { 186 return _socialRequestLocalService.dynamicQueryCount(dynamicQuery, 187 projection); 188 } 189 190 @Override 191 public com.liferay.portlet.social.model.SocialRequest fetchSocialRequest( 192 long requestId) 193 throws com.liferay.portal.kernel.exception.SystemException { 194 return _socialRequestLocalService.fetchSocialRequest(requestId); 195 } 196 197 /** 198 * Returns the social request with the matching UUID and company. 199 * 200 * @param uuid the social request's UUID 201 * @param companyId the primary key of the company 202 * @return the matching social request, or <code>null</code> if a matching social request could not be found 203 * @throws SystemException if a system exception occurred 204 */ 205 @Override 206 public com.liferay.portlet.social.model.SocialRequest fetchSocialRequestByUuidAndCompanyId( 207 java.lang.String uuid, long companyId) 208 throws com.liferay.portal.kernel.exception.SystemException { 209 return _socialRequestLocalService.fetchSocialRequestByUuidAndCompanyId(uuid, 210 companyId); 211 } 212 213 /** 214 * Returns the social request matching the UUID and group. 215 * 216 * @param uuid the social request's UUID 217 * @param groupId the primary key of the group 218 * @return the matching social request, or <code>null</code> if a matching social request could not be found 219 * @throws SystemException if a system exception occurred 220 */ 221 @Override 222 public com.liferay.portlet.social.model.SocialRequest fetchSocialRequestByUuidAndGroupId( 223 java.lang.String uuid, long groupId) 224 throws com.liferay.portal.kernel.exception.SystemException { 225 return _socialRequestLocalService.fetchSocialRequestByUuidAndGroupId(uuid, 226 groupId); 227 } 228 229 /** 230 * Returns the social request with the primary key. 231 * 232 * @param requestId the primary key of the social request 233 * @return the social request 234 * @throws PortalException if a social request with the primary key could not be found 235 * @throws SystemException if a system exception occurred 236 */ 237 @Override 238 public com.liferay.portlet.social.model.SocialRequest getSocialRequest( 239 long requestId) 240 throws com.liferay.portal.kernel.exception.PortalException, 241 com.liferay.portal.kernel.exception.SystemException { 242 return _socialRequestLocalService.getSocialRequest(requestId); 243 } 244 245 @Override 246 public com.liferay.portal.model.PersistedModel getPersistedModel( 247 java.io.Serializable primaryKeyObj) 248 throws com.liferay.portal.kernel.exception.PortalException, 249 com.liferay.portal.kernel.exception.SystemException { 250 return _socialRequestLocalService.getPersistedModel(primaryKeyObj); 251 } 252 253 /** 254 * Returns the social request with the matching UUID and company. 255 * 256 * @param uuid the social request's UUID 257 * @param companyId the primary key of the company 258 * @return the matching social request 259 * @throws PortalException if a matching social request could not be found 260 * @throws SystemException if a system exception occurred 261 */ 262 @Override 263 public com.liferay.portlet.social.model.SocialRequest getSocialRequestByUuidAndCompanyId( 264 java.lang.String uuid, long companyId) 265 throws com.liferay.portal.kernel.exception.PortalException, 266 com.liferay.portal.kernel.exception.SystemException { 267 return _socialRequestLocalService.getSocialRequestByUuidAndCompanyId(uuid, 268 companyId); 269 } 270 271 /** 272 * Returns the social request matching the UUID and group. 273 * 274 * @param uuid the social request's UUID 275 * @param groupId the primary key of the group 276 * @return the matching social request 277 * @throws PortalException if a matching social request could not be found 278 * @throws SystemException if a system exception occurred 279 */ 280 @Override 281 public com.liferay.portlet.social.model.SocialRequest getSocialRequestByUuidAndGroupId( 282 java.lang.String uuid, long groupId) 283 throws com.liferay.portal.kernel.exception.PortalException, 284 com.liferay.portal.kernel.exception.SystemException { 285 return _socialRequestLocalService.getSocialRequestByUuidAndGroupId(uuid, 286 groupId); 287 } 288 289 /** 290 * Returns a range of all the social requests. 291 * 292 * <p> 293 * 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.social.model.impl.SocialRequestModelImpl}. 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. 294 * </p> 295 * 296 * @param start the lower bound of the range of social requests 297 * @param end the upper bound of the range of social requests (not inclusive) 298 * @return the range of social requests 299 * @throws SystemException if a system exception occurred 300 */ 301 @Override 302 public java.util.List<com.liferay.portlet.social.model.SocialRequest> getSocialRequests( 303 int start, int end) 304 throws com.liferay.portal.kernel.exception.SystemException { 305 return _socialRequestLocalService.getSocialRequests(start, end); 306 } 307 308 /** 309 * Returns the number of social requests. 310 * 311 * @return the number of social requests 312 * @throws SystemException if a system exception occurred 313 */ 314 @Override 315 public int getSocialRequestsCount() 316 throws com.liferay.portal.kernel.exception.SystemException { 317 return _socialRequestLocalService.getSocialRequestsCount(); 318 } 319 320 /** 321 * Updates the social request in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 322 * 323 * @param socialRequest the social request 324 * @return the social request that was updated 325 * @throws SystemException if a system exception occurred 326 */ 327 @Override 328 public com.liferay.portlet.social.model.SocialRequest updateSocialRequest( 329 com.liferay.portlet.social.model.SocialRequest socialRequest) 330 throws com.liferay.portal.kernel.exception.SystemException { 331 return _socialRequestLocalService.updateSocialRequest(socialRequest); 332 } 333 334 /** 335 * Returns the Spring bean ID for this bean. 336 * 337 * @return the Spring bean ID for this bean 338 */ 339 @Override 340 public java.lang.String getBeanIdentifier() { 341 return _socialRequestLocalService.getBeanIdentifier(); 342 } 343 344 /** 345 * Sets the Spring bean ID for this bean. 346 * 347 * @param beanIdentifier the Spring bean ID for this bean 348 */ 349 @Override 350 public void setBeanIdentifier(java.lang.String beanIdentifier) { 351 _socialRequestLocalService.setBeanIdentifier(beanIdentifier); 352 } 353 354 /** 355 * Adds a social request to the database. 356 * 357 * <p> 358 * In order to add a social request, both the requesting user and the 359 * receiving user must be from the same company and neither of them can be 360 * the default user. 361 * </p> 362 * 363 * @param userId the primary key of the requesting user 364 * @param groupId the primary key of the group 365 * @param className the class name of the asset that is the subject of the 366 request 367 * @param classPK the primary key of the asset that is the subject of the 368 request 369 * @param type the request's type 370 * @param extraData the extra data regarding the request 371 * @param receiverUserId the primary key of the user receiving the request 372 * @return the social request 373 * @throws PortalException if the users could not be found, if the users 374 were not from the same company, or if either of the users was the 375 default user 376 * @throws SystemException if a system exception occurred 377 */ 378 @Override 379 public com.liferay.portlet.social.model.SocialRequest addRequest( 380 long userId, long groupId, java.lang.String className, long classPK, 381 int type, java.lang.String extraData, long receiverUserId) 382 throws com.liferay.portal.kernel.exception.PortalException, 383 com.liferay.portal.kernel.exception.SystemException { 384 return _socialRequestLocalService.addRequest(userId, groupId, 385 className, classPK, type, extraData, receiverUserId); 386 } 387 388 /** 389 * Removes all the social requests for the receiving user. 390 * 391 * @param receiverUserId the primary key of the receiving user 392 * @throws SystemException if a system exception occurred 393 */ 394 @Override 395 public void deleteReceiverUserRequests(long receiverUserId) 396 throws com.liferay.portal.kernel.exception.SystemException { 397 _socialRequestLocalService.deleteReceiverUserRequests(receiverUserId); 398 } 399 400 /** 401 * Removes the social request identified by its primary key from the 402 * database. 403 * 404 * @param requestId the primary key of the social request 405 * @throws PortalException if the social request could not be found 406 * @throws SystemException if a system exception occurred 407 */ 408 @Override 409 public void deleteRequest(long requestId) 410 throws com.liferay.portal.kernel.exception.PortalException, 411 com.liferay.portal.kernel.exception.SystemException { 412 _socialRequestLocalService.deleteRequest(requestId); 413 } 414 415 /** 416 * Removes the social request from the database. 417 * 418 * @param request the social request to be removed 419 * @throws SystemException if a system exception occurred 420 */ 421 @Override 422 public void deleteRequest( 423 com.liferay.portlet.social.model.SocialRequest request) 424 throws com.liferay.portal.kernel.exception.SystemException { 425 _socialRequestLocalService.deleteRequest(request); 426 } 427 428 /** 429 * Removes all the social requests for the requesting user. 430 * 431 * @param userId the primary key of the requesting user 432 * @throws SystemException if a system exception occurred 433 */ 434 @Override 435 public void deleteUserRequests(long userId) 436 throws com.liferay.portal.kernel.exception.SystemException { 437 _socialRequestLocalService.deleteUserRequests(userId); 438 } 439 440 /** 441 * Returns a range of all the social requests for the receiving user. 442 * 443 * <p> 444 * Useful when paginating results. Returns a maximum of <code>end - 445 * start</code> instances. <code>start</code> and <code>end</code> are not 446 * primary keys, they are indexes in the result set. Thus, <code>0</code> 447 * refers to the first result in the set. Setting both <code>start</code> 448 * and <code>end</code> to {@link 449 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 450 * result set. 451 * </p> 452 * 453 * @param receiverUserId the primary key of the receiving user 454 * @param start the lower bound of the range of results 455 * @param end the upper bound of the range of results (not inclusive) 456 * @return the range of matching social requests 457 * @throws SystemException if a system exception occurred 458 */ 459 @Override 460 public java.util.List<com.liferay.portlet.social.model.SocialRequest> getReceiverUserRequests( 461 long receiverUserId, int start, int end) 462 throws com.liferay.portal.kernel.exception.SystemException { 463 return _socialRequestLocalService.getReceiverUserRequests(receiverUserId, 464 start, end); 465 } 466 467 /** 468 * Returns a range of all the social requests with the given status for the 469 * receiving user. 470 * 471 * <p> 472 * Useful when paginating results. Returns a maximum of <code>end - 473 * start</code> instances. <code>start</code> and <code>end</code> are not 474 * primary keys, they are indexes in the result set. Thus, <code>0</code> 475 * refers to the first result in the set. Setting both <code>start</code> 476 * and <code>end</code> to {@link 477 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 478 * result set. 479 * </p> 480 * 481 * @param receiverUserId the primary key of the receiving user 482 * @param status the social request's status 483 * @param start the lower bound of the range of results 484 * @param end the upper bound of the range of results (not inclusive) 485 * @return the range of matching social requests 486 * @throws SystemException if a system exception occurred 487 */ 488 @Override 489 public java.util.List<com.liferay.portlet.social.model.SocialRequest> getReceiverUserRequests( 490 long receiverUserId, int status, int start, int end) 491 throws com.liferay.portal.kernel.exception.SystemException { 492 return _socialRequestLocalService.getReceiverUserRequests(receiverUserId, 493 status, start, end); 494 } 495 496 /** 497 * Returns the number of social requests for the receiving user. 498 * 499 * @param receiverUserId the primary key of the receiving user 500 * @return the number of matching social requests 501 * @throws SystemException if a system exception occurred 502 */ 503 @Override 504 public int getReceiverUserRequestsCount(long receiverUserId) 505 throws com.liferay.portal.kernel.exception.SystemException { 506 return _socialRequestLocalService.getReceiverUserRequestsCount(receiverUserId); 507 } 508 509 /** 510 * Returns the number of social requests with the given status for the 511 * receiving user. 512 * 513 * @param receiverUserId the primary key of the receiving user 514 * @param status the social request's status 515 * @return the number of matching social requests 516 * @throws SystemException if a system exception occurred 517 */ 518 @Override 519 public int getReceiverUserRequestsCount(long receiverUserId, int status) 520 throws com.liferay.portal.kernel.exception.SystemException { 521 return _socialRequestLocalService.getReceiverUserRequestsCount(receiverUserId, 522 status); 523 } 524 525 /** 526 * Returns a range of all the social requests for the requesting user. 527 * 528 * <p> 529 * Useful when paginating results. Returns a maximum of <code>end - 530 * start</code> instances. <code>start</code> and <code>end</code> are not 531 * primary keys, they are indexes in the result set. Thus, <code>0</code> 532 * refers to the first result in the set. Setting both <code>start</code> 533 * and <code>end</code> to {@link 534 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 535 * result set. 536 * </p> 537 * 538 * @param userId the primary key of the requesting user 539 * @param start the lower bound of the range of results 540 * @param end the upper bound of the range of results (not inclusive) 541 * @return the range of matching social requests 542 * @throws SystemException if a system exception occurred 543 */ 544 @Override 545 public java.util.List<com.liferay.portlet.social.model.SocialRequest> getUserRequests( 546 long userId, int start, int end) 547 throws com.liferay.portal.kernel.exception.SystemException { 548 return _socialRequestLocalService.getUserRequests(userId, start, end); 549 } 550 551 /** 552 * Returns a range of all the social requests with the given status for the 553 * requesting user. 554 * 555 * <p> 556 * Useful when paginating results. Returns a maximum of <code>end - 557 * start</code> instances. <code>start</code> and <code>end</code> are not 558 * primary keys, they are indexes in the result set. Thus, <code>0</code> 559 * refers to the first result in the set. Setting both <code>start</code> 560 * and <code>end</code> to {@link 561 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 562 * result set. 563 * </p> 564 * 565 * @param userId the primary key of the requesting user 566 * @param status the social request's status 567 * @param start the lower bound of the range of results 568 * @param end the upper bound of the range of results (not inclusive) 569 * @return the range of matching social requests 570 * @throws SystemException if a system exception occurred 571 */ 572 @Override 573 public java.util.List<com.liferay.portlet.social.model.SocialRequest> getUserRequests( 574 long userId, int status, int start, int end) 575 throws com.liferay.portal.kernel.exception.SystemException { 576 return _socialRequestLocalService.getUserRequests(userId, status, 577 start, end); 578 } 579 580 /** 581 * Returns the number of social requests for the requesting user. 582 * 583 * @param userId the primary key of the requesting user 584 * @return the number of matching social requests 585 * @throws SystemException if a system exception occurred 586 */ 587 @Override 588 public int getUserRequestsCount(long userId) 589 throws com.liferay.portal.kernel.exception.SystemException { 590 return _socialRequestLocalService.getUserRequestsCount(userId); 591 } 592 593 /** 594 * Returns the number of social requests with the given status for the 595 * requesting user. 596 * 597 * @param userId the primary key of the requesting user 598 * @param status the social request's status 599 * @return the number of matching social request 600 * @throws SystemException if a system exception occurred 601 */ 602 @Override 603 public int getUserRequestsCount(long userId, int status) 604 throws com.liferay.portal.kernel.exception.SystemException { 605 return _socialRequestLocalService.getUserRequestsCount(userId, status); 606 } 607 608 /** 609 * Returns <code>true</code> if a matching social requests exists in the 610 * database. 611 * 612 * @param userId the primary key of the requesting user 613 * @param className the class name of the asset that is the subject of the 614 request 615 * @param classPK the primary key of the asset that is the subject of the 616 request 617 * @param type the request's type 618 * @param status the social request's status 619 * @return <code>true</code> if the request exists; <code>false</code> 620 otherwise 621 * @throws SystemException if a system exception occurred 622 */ 623 @Override 624 public boolean hasRequest(long userId, java.lang.String className, 625 long classPK, int type, int status) 626 throws com.liferay.portal.kernel.exception.SystemException { 627 return _socialRequestLocalService.hasRequest(userId, className, 628 classPK, type, status); 629 } 630 631 /** 632 * Returns <code>true</code> if a matching social request exists in the 633 * database. 634 * 635 * @param userId the primary key of the requesting user 636 * @param className the class name of the asset that is the subject of the 637 request 638 * @param classPK the primary key of the asset that is the subject of the 639 request 640 * @param type the request's type 641 * @param receiverUserId the primary key of the receiving user 642 * @param status the social request's status 643 * @return <code>true</code> if the social request exists; 644 <code>false</code> otherwise 645 * @throws SystemException if a system exception occurred 646 */ 647 @Override 648 public boolean hasRequest(long userId, java.lang.String className, 649 long classPK, int type, long receiverUserId, int status) 650 throws com.liferay.portal.kernel.exception.SystemException { 651 return _socialRequestLocalService.hasRequest(userId, className, 652 classPK, type, receiverUserId, status); 653 } 654 655 /** 656 * Updates the social request replacing its status. 657 * 658 * <p> 659 * If the status is updated to {@link 660 * com.liferay.portlet.social.model.SocialRequestConstants#STATUS_CONFIRM} 661 * then {@link 662 * com.liferay.portlet.social.service.SocialRequestInterpreterLocalService#processConfirmation( 663 * SocialRequest, ThemeDisplay)} is called. If the status is updated to 664 * {@link 665 * com.liferay.portlet.social.model.SocialRequestConstants#STATUS_IGNORE} 666 * then {@link 667 * com.liferay.portlet.social.service.SocialRequestInterpreterLocalService#processRejection( 668 * SocialRequest, ThemeDisplay)} is called. 669 * </p> 670 * 671 * @param requestId the primary key of the social request 672 * @param status the new status 673 * @param themeDisplay the theme display 674 * @return the updated social request 675 * @throws PortalException if the social request could not be found 676 * @throws SystemException if a system exception occurred 677 */ 678 @Override 679 public com.liferay.portlet.social.model.SocialRequest updateRequest( 680 long requestId, int status, 681 com.liferay.portal.theme.ThemeDisplay themeDisplay) 682 throws com.liferay.portal.kernel.exception.PortalException, 683 com.liferay.portal.kernel.exception.SystemException { 684 return _socialRequestLocalService.updateRequest(requestId, status, 685 themeDisplay); 686 } 687 688 /** 689 * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} 690 */ 691 public SocialRequestLocalService getWrappedSocialRequestLocalService() { 692 return _socialRequestLocalService; 693 } 694 695 /** 696 * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} 697 */ 698 public void setWrappedSocialRequestLocalService( 699 SocialRequestLocalService socialRequestLocalService) { 700 _socialRequestLocalService = socialRequestLocalService; 701 } 702 703 @Override 704 public SocialRequestLocalService getWrappedService() { 705 return _socialRequestLocalService; 706 } 707 708 @Override 709 public void setWrappedService( 710 SocialRequestLocalService socialRequestLocalService) { 711 _socialRequestLocalService = socialRequestLocalService; 712 } 713 714 private SocialRequestLocalService _socialRequestLocalService; 715 }