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