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