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 remote service utility for SocialActivity. This utility wraps 022 * {@link com.liferay.portlet.social.service.impl.SocialActivityServiceImpl} and is the 023 * primary access point for service operations in application layer code running 024 * on a remote server. Methods of this service are expected to have security 025 * checks based on the propagated JAAS credentials because this service can be 026 * accessed remotely. 027 * 028 * @author Brian Wing Shun Chan 029 * @see SocialActivityService 030 * @see com.liferay.portlet.social.service.base.SocialActivityServiceBaseImpl 031 * @see com.liferay.portlet.social.service.impl.SocialActivityServiceImpl 032 * @generated 033 */ 034 public class SocialActivityServiceUtil { 035 /* 036 * NOTE FOR DEVELOPERS: 037 * 038 * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.social.service.impl.SocialActivityServiceImpl} and rerun ServiceBuilder to regenerate this class. 039 */ 040 041 /** 042 * Returns the Spring bean ID for this bean. 043 * 044 * @return the Spring bean ID for this bean 045 */ 046 public static java.lang.String getBeanIdentifier() { 047 return getService().getBeanIdentifier(); 048 } 049 050 /** 051 * Sets the Spring bean ID for this bean. 052 * 053 * @param beanIdentifier the Spring bean ID for this bean 054 */ 055 public static void setBeanIdentifier(java.lang.String beanIdentifier) { 056 getService().setBeanIdentifier(beanIdentifier); 057 } 058 059 /** 060 * Returns a range of all the activities done on assets identified by the 061 * class name ID. 062 * 063 * <p> 064 * Useful when paginating results. Returns a maximum of <code>end - 065 * start</code> instances. <code>start</code> and <code>end</code> are not 066 * primary keys, they are indexes in the result set. Thus, <code>0</code> 067 * refers to the first result in the set. Setting both <code>start</code> 068 * and <code>end</code> to {@link 069 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 070 * result set. 071 * </p> 072 * 073 * @param classNameId the target asset's class name ID 074 * @param start the lower bound of the range of results 075 * @param end the upper bound of the range of results (not inclusive) 076 * @return the range of matching activities 077 * @throws PortalException if a permission checker was not initialized 078 * @throws SystemException if a system exception occurred 079 */ 080 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities( 081 long classNameId, int start, int end) 082 throws com.liferay.portal.kernel.exception.PortalException, 083 com.liferay.portal.kernel.exception.SystemException { 084 return getService().getActivities(classNameId, start, end); 085 } 086 087 /** 088 * Returns a range of all the activities done on the asset identified by the 089 * class name ID and class primary key that are mirrors of the activity 090 * identified by the mirror activity ID. 091 * 092 * <p> 093 * Useful when paginating results. Returns a maximum of <code>end - 094 * start</code> instances. <code>start</code> and <code>end</code> are not 095 * primary keys, they are indexes in the result set. Thus, <code>0</code> 096 * refers to the first result in the set. Setting both <code>start</code> 097 * and <code>end</code> to {@link 098 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 099 * result set. 100 * </p> 101 * 102 * @param mirrorActivityId the primary key of the mirror activity 103 * @param classNameId the target asset's class name ID 104 * @param classPK the primary key of the target asset 105 * @param start the lower bound of the range of results 106 * @param end the upper bound of the range of results (not inclusive) 107 * @return the range of matching activities 108 * @throws PortalException if a permission checker was not initialized 109 * @throws SystemException if a system exception occurred 110 */ 111 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities( 112 long mirrorActivityId, long classNameId, long classPK, int start, 113 int end) 114 throws com.liferay.portal.kernel.exception.PortalException, 115 com.liferay.portal.kernel.exception.SystemException { 116 return getService() 117 .getActivities(mirrorActivityId, classNameId, classPK, 118 start, end); 119 } 120 121 /** 122 * Returns a range of all the activities done on the asset identified by the 123 * class name and the class primary key that are mirrors of the activity 124 * identified by the mirror activity ID. 125 * 126 * <p> 127 * Useful when paginating results. Returns a maximum of <code>end - 128 * start</code> instances. <code>start</code> and <code>end</code> are not 129 * primary keys, they are indexes in the result set. Thus, <code>0</code> 130 * refers to the first result in the set. Setting both <code>start</code> 131 * and <code>end</code> to {@link 132 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 133 * result set. 134 * </p> 135 * 136 * @param mirrorActivityId the primary key of the mirror activity 137 * @param className the target asset's class name 138 * @param classPK the primary key of the target asset 139 * @param start the lower bound of the range of results 140 * @param end the upper bound of the range of results (not inclusive) 141 * @return the range of matching activities 142 * @throws PortalException if a permission checker was not initialized 143 * @throws SystemException if a system exception occurred 144 */ 145 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities( 146 long mirrorActivityId, java.lang.String className, long classPK, 147 int start, int end) 148 throws com.liferay.portal.kernel.exception.PortalException, 149 com.liferay.portal.kernel.exception.SystemException { 150 return getService() 151 .getActivities(mirrorActivityId, className, classPK, start, 152 end); 153 } 154 155 /** 156 * Returns a range of all the activities done on assets identified by the 157 * class name. 158 * 159 * <p> 160 * Useful when paginating results. Returns a maximum of <code>end - 161 * start</code> instances. <code>start</code> and <code>end</code> are not 162 * primary keys, they are indexes in the result set. Thus, <code>0</code> 163 * refers to the first result in the set. Setting both <code>start</code> 164 * and <code>end</code> to {@link 165 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 166 * result set. 167 * </p> 168 * 169 * @param className the target asset's class name 170 * @param start the lower bound of the range of results 171 * @param end the upper bound of the range of results (not inclusive) 172 * @return the range of matching activities 173 * @throws PortalException if a permission checker was not initialized 174 * @throws SystemException if a system exception occurred 175 */ 176 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities( 177 java.lang.String className, int start, int end) 178 throws com.liferay.portal.kernel.exception.PortalException, 179 com.liferay.portal.kernel.exception.SystemException { 180 return getService().getActivities(className, start, end); 181 } 182 183 /** 184 * Returns the number of activities done on assets identified by the class 185 * name ID. 186 * 187 * @param classNameId the target asset's class name ID 188 * @return the number of matching activities 189 * @throws SystemException if a system exception occurred 190 */ 191 public static int getActivitiesCount(long classNameId) 192 throws com.liferay.portal.kernel.exception.SystemException { 193 return getService().getActivitiesCount(classNameId); 194 } 195 196 /** 197 * Returns the number of activities done on the asset identified by the 198 * class name ID and class primary key that are mirrors of the activity 199 * identified by the mirror activity ID. 200 * 201 * @param mirrorActivityId the primary key of the mirror activity 202 * @param classNameId the target asset's class name ID 203 * @param classPK the primary key of the target asset 204 * @return the number of matching activities 205 * @throws SystemException if a system exception occurred 206 */ 207 public static int getActivitiesCount(long mirrorActivityId, 208 long classNameId, long classPK) 209 throws com.liferay.portal.kernel.exception.SystemException { 210 return getService() 211 .getActivitiesCount(mirrorActivityId, classNameId, classPK); 212 } 213 214 /** 215 * Returns the number of activities done on the asset identified by the 216 * class name and class primary key that are mirrors of the activity 217 * identified by the mirror activity ID. 218 * 219 * @param mirrorActivityId the primary key of the mirror activity 220 * @param className the target asset's class name 221 * @param classPK the primary key of the target asset 222 * @return the number of matching activities 223 * @throws SystemException if a system exception occurred 224 */ 225 public static int getActivitiesCount(long mirrorActivityId, 226 java.lang.String className, long classPK) 227 throws com.liferay.portal.kernel.exception.SystemException { 228 return getService() 229 .getActivitiesCount(mirrorActivityId, className, classPK); 230 } 231 232 /** 233 * Returns the number of activities done on assets identified by class name. 234 * 235 * @param className the target asset's class name 236 * @return the number of matching activities 237 * @throws SystemException if a system exception occurred 238 */ 239 public static int getActivitiesCount(java.lang.String className) 240 throws com.liferay.portal.kernel.exception.SystemException { 241 return getService().getActivitiesCount(className); 242 } 243 244 /** 245 * Returns the activity identified by its primary key. 246 * 247 * @param activityId the primary key of the activity 248 * @return Returns the activity 249 * @throws PortalException if the activity could not be found 250 * @throws SystemException if a system exception occurred 251 */ 252 public static com.liferay.portlet.social.model.SocialActivity getActivity( 253 long activityId) 254 throws com.liferay.portal.kernel.exception.PortalException, 255 com.liferay.portal.kernel.exception.SystemException { 256 return getService().getActivity(activityId); 257 } 258 259 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivitySetActivities( 260 long activitySetId, int start, int end) 261 throws com.liferay.portal.kernel.exception.PortalException, 262 com.liferay.portal.kernel.exception.SystemException { 263 return getService().getActivitySetActivities(activitySetId, start, end); 264 } 265 266 /** 267 * Returns a range of all the activities done in the group. 268 * 269 * <p> 270 * This method only finds activities without mirrors. 271 * </p> 272 * 273 * <p> 274 * Useful when paginating results. Returns a maximum of <code>end - 275 * start</code> instances. <code>start</code> and <code>end</code> are not 276 * primary keys, they are indexes in the result set. Thus, <code>0</code> 277 * refers to the first result in the set. Setting both <code>start</code> 278 * and <code>end</code> to {@link 279 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 280 * result set. 281 * </p> 282 * 283 * @param groupId the primary key of the group 284 * @param start the lower bound of the range of results 285 * @param end the upper bound of the range of results (not inclusive) 286 * @return the range of matching activities 287 * @throws PortalException if a permission checker was not initialized 288 * @throws SystemException if a system exception occurred 289 */ 290 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getGroupActivities( 291 long groupId, int start, int end) 292 throws com.liferay.portal.kernel.exception.PortalException, 293 com.liferay.portal.kernel.exception.SystemException { 294 return getService().getGroupActivities(groupId, start, end); 295 } 296 297 /** 298 * Returns the number of activities done in the group. 299 * 300 * <p> 301 * This method only counts activities without mirrors. 302 * </p> 303 * 304 * @param groupId the primary key of the group 305 * @return the number of matching activities 306 * @throws SystemException if a system exception occurred 307 */ 308 public static int getGroupActivitiesCount(long groupId) 309 throws com.liferay.portal.kernel.exception.SystemException { 310 return getService().getGroupActivitiesCount(groupId); 311 } 312 313 /** 314 * Returns a range of activities done by users that are members of the 315 * group. 316 * 317 * <p> 318 * This method only finds activities without mirrors. 319 * </p> 320 * 321 * <p> 322 * Useful when paginating results. Returns a maximum of <code>end - 323 * start</code> instances. <code>start</code> and <code>end</code> are not 324 * primary keys, they are indexes in the result set. Thus, <code>0</code> 325 * refers to the first result in the set. Setting both <code>start</code> 326 * and <code>end</code> to {@link 327 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 328 * result set. 329 * </p> 330 * 331 * @param groupId the primary key of the group 332 * @param start the lower bound of the range of results 333 * @param end the upper bound of the range of results (not inclusive) 334 * @return the range of matching activities 335 * @throws PortalException if a permission checker was not initialized 336 * @throws SystemException if a system exception occurred 337 */ 338 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getGroupUsersActivities( 339 long groupId, int start, int end) 340 throws com.liferay.portal.kernel.exception.PortalException, 341 com.liferay.portal.kernel.exception.SystemException { 342 return getService().getGroupUsersActivities(groupId, start, end); 343 } 344 345 /** 346 * Returns the number of activities done by users that are members of the 347 * group. 348 * 349 * <p> 350 * This method only counts activities without mirrors. 351 * </p> 352 * 353 * @param groupId the primary key of the group 354 * @return the number of matching activities 355 * @throws SystemException if a system exception occurred 356 */ 357 public static int getGroupUsersActivitiesCount(long groupId) 358 throws com.liferay.portal.kernel.exception.SystemException { 359 return getService().getGroupUsersActivitiesCount(groupId); 360 } 361 362 /** 363 * Returns the activity that has the mirror activity. 364 * 365 * @param mirrorActivityId the primary key of the mirror activity 366 * @return Returns the mirror activity 367 * @throws PortalException if the mirror activity could not be found 368 * @throws SystemException if a system exception occurred 369 */ 370 public static com.liferay.portlet.social.model.SocialActivity getMirrorActivity( 371 long mirrorActivityId) 372 throws com.liferay.portal.kernel.exception.PortalException, 373 com.liferay.portal.kernel.exception.SystemException { 374 return getService().getMirrorActivity(mirrorActivityId); 375 } 376 377 /** 378 * Returns a range of all the activities done in the organization. This 379 * method only finds activities without mirrors. 380 * 381 * <p> 382 * Useful when paginating results. Returns a maximum of <code>end - 383 * start</code> instances. <code>start</code> and <code>end</code> are not 384 * primary keys, they are indexes in the result set. Thus, <code>0</code> 385 * refers to the first result in the set. Setting both <code>start</code> 386 * and <code>end</code> to {@link 387 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 388 * result set. 389 * </p> 390 * 391 * @param organizationId the primary key of the organization 392 * @param start the lower bound of the range of results 393 * @param end the upper bound of the range of results (not inclusive) 394 * @return the range of matching activities 395 * @throws PortalException if a permission checker was not initialized 396 * @throws SystemException if a system exception occurred 397 */ 398 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getOrganizationActivities( 399 long organizationId, int start, int end) 400 throws com.liferay.portal.kernel.exception.PortalException, 401 com.liferay.portal.kernel.exception.SystemException { 402 return getService().getOrganizationActivities(organizationId, start, end); 403 } 404 405 /** 406 * Returns the number of activities done in the organization. This method 407 * only counts activities without mirrors. 408 * 409 * @param organizationId the primary key of the organization 410 * @return the number of matching activities 411 * @throws SystemException if a system exception occurred 412 */ 413 public static int getOrganizationActivitiesCount(long organizationId) 414 throws com.liferay.portal.kernel.exception.SystemException { 415 return getService().getOrganizationActivitiesCount(organizationId); 416 } 417 418 /** 419 * Returns a range of all the activities done by users of the organization. 420 * This method only finds activities without mirrors. 421 * 422 * <p> 423 * Useful when paginating results. Returns a maximum of <code>end - 424 * start</code> instances. <code>start</code> and <code>end</code> are not 425 * primary keys, they are indexes in the result set. Thus, <code>0</code> 426 * refers to the first result in the set. Setting both <code>start</code> 427 * and <code>end</code> to {@link 428 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 429 * result set. 430 * </p> 431 * 432 * @param organizationId the primary key of the organization 433 * @param start the lower bound of the range of results 434 * @param end the upper bound of the range of results (not inclusive) 435 * @return the range of matching activities 436 * @throws PortalException if a permission checker was not initialized 437 * @throws SystemException if a system exception occurred 438 */ 439 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getOrganizationUsersActivities( 440 long organizationId, int start, int end) 441 throws com.liferay.portal.kernel.exception.PortalException, 442 com.liferay.portal.kernel.exception.SystemException { 443 return getService() 444 .getOrganizationUsersActivities(organizationId, start, end); 445 } 446 447 /** 448 * Returns the number of activities done by users of the organization. This 449 * method only counts activities without mirrors. 450 * 451 * @param organizationId the primary key of the organization 452 * @return the number of matching activities 453 * @throws SystemException if a system exception occurred 454 */ 455 public static int getOrganizationUsersActivitiesCount(long organizationId) 456 throws com.liferay.portal.kernel.exception.SystemException { 457 return getService().getOrganizationUsersActivitiesCount(organizationId); 458 } 459 460 /** 461 * Returns a range of all the activities done by users in a relationship 462 * with the user identified by the user ID. 463 * 464 * <p> 465 * Useful when paginating results. Returns a maximum of <code>end - 466 * start</code> instances. <code>start</code> and <code>end</code> are not 467 * primary keys, they are indexes in the result set. Thus, <>0</code> refers 468 * to the first result in the set. Setting both <code>start</code> and 469 * <code>end</code> to {@link 470 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 471 * result set. 472 * </p> 473 * 474 * @param userId the primary key of the user 475 * @param start the lower bound of the range of results 476 * @param end the upper bound of the range of results (not inclusive) 477 * @return the range of matching activities 478 * @throws PortalException if a permission checker was not initialized 479 * @throws SystemException if a system exception occurred 480 */ 481 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getRelationActivities( 482 long userId, int start, int end) 483 throws com.liferay.portal.kernel.exception.PortalException, 484 com.liferay.portal.kernel.exception.SystemException { 485 return getService().getRelationActivities(userId, start, end); 486 } 487 488 /** 489 * Returns a range of all the activities done by users in a relationship of 490 * type <code>type</code> with the user identified by <code>userId</code>. 491 * This method only finds activities without mirrors. 492 * 493 * <p> 494 * Useful when paginating results. Returns a maximum of <code>end - 495 * start</code> instances. <code>start</code> and <code>end</code> are not 496 * primary keys, they are indexes in the result set. Thus, <code>0</code> 497 * refers to the first result in the set. Setting both <code>start</code> 498 * and <code>end</code> to {@link 499 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 500 * result set. 501 * </p> 502 * 503 * @param userId the primary key of the user 504 * @param type the relationship type 505 * @param start the lower bound of the range of results 506 * @param end the upper bound of the range of results (not inclusive) 507 * @return the range of matching activities 508 * @throws PortalException if a permission checker was not initialized 509 * @throws SystemException if a system exception occurred 510 */ 511 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getRelationActivities( 512 long userId, int type, int start, int end) 513 throws com.liferay.portal.kernel.exception.PortalException, 514 com.liferay.portal.kernel.exception.SystemException { 515 return getService().getRelationActivities(userId, type, start, end); 516 } 517 518 /** 519 * Returns the number of activities done by users in a relationship with the 520 * user identified by userId. 521 * 522 * @param userId the primary key of the user 523 * @return the number of matching activities 524 * @throws SystemException if a system exception occurred 525 */ 526 public static int getRelationActivitiesCount(long userId) 527 throws com.liferay.portal.kernel.exception.SystemException { 528 return getService().getRelationActivitiesCount(userId); 529 } 530 531 /** 532 * Returns the number of activities done by users in a relationship of type 533 * <code>type</code> with the user identified by <code>userId</code>. This 534 * method only counts activities without mirrors. 535 * 536 * @param userId the primary key of the user 537 * @param type the relationship type 538 * @return the number of matching activities 539 * @throws SystemException if a system exception occurred 540 */ 541 public static int getRelationActivitiesCount(long userId, int type) 542 throws com.liferay.portal.kernel.exception.SystemException { 543 return getService().getRelationActivitiesCount(userId, type); 544 } 545 546 /** 547 * Returns a range of all the activities done by the user. 548 * 549 * <p> 550 * Useful when paginating results. Returns a maximum of <code>end - 551 * start</code> instances. <code>start</code> and <code>end</code> are not 552 * primary keys, they are indexes in the result set. Thus, <code>0</code> 553 * refers to the first result in the set. Setting both <code>start</code> 554 * and <code>end</code> to {@link 555 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 556 * result set. 557 * </p> 558 * 559 * @param userId the primary key of the user 560 * @param start the lower bound of the range of results 561 * @param end the upper bound of the range of results (not inclusive) 562 * @return the range of matching activities 563 * @throws PortalException if a permission checker was not initialized 564 * @throws SystemException if a system exception occurred 565 */ 566 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserActivities( 567 long userId, int start, int end) 568 throws com.liferay.portal.kernel.exception.PortalException, 569 com.liferay.portal.kernel.exception.SystemException { 570 return getService().getUserActivities(userId, start, end); 571 } 572 573 /** 574 * Returns the number of activities done by the user. 575 * 576 * @param userId the primary key of the user 577 * @return the number of matching activities 578 * @throws SystemException if a system exception occurred 579 */ 580 public static int getUserActivitiesCount(long userId) 581 throws com.liferay.portal.kernel.exception.SystemException { 582 return getService().getUserActivitiesCount(userId); 583 } 584 585 /** 586 * Returns a range of all the activities done in the user's groups. This 587 * method only finds activities without mirrors. 588 * 589 * <p> 590 * Useful when paginating results. Returns a maximum of <code>end - 591 * start</code> instances. <code>start</code> and <code>end</code> are not 592 * primary keys, they are indexes in the result set. Thus, <code>0</code> 593 * refers to the first result in the set. Setting both <code>start</code> 594 * and <code>end</code> to {@link 595 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 596 * result set. 597 * </p> 598 * 599 * @param userId the primary key of the user 600 * @param start the lower bound of the range of results 601 * @param end the upper bound of the range of results (not inclusive) 602 * @return the range of matching activities 603 * @throws PortalException if a permission checker was not initialized 604 * @throws SystemException if a system exception occurred 605 */ 606 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserGroupsActivities( 607 long userId, int start, int end) 608 throws com.liferay.portal.kernel.exception.PortalException, 609 com.liferay.portal.kernel.exception.SystemException { 610 return getService().getUserGroupsActivities(userId, start, end); 611 } 612 613 /** 614 * Returns the number of activities done in user's groups. This method only 615 * counts activities without mirrors. 616 * 617 * @param userId the primary key of the user 618 * @return the number of matching activities 619 * @throws SystemException if a system exception occurred 620 */ 621 public static int getUserGroupsActivitiesCount(long userId) 622 throws com.liferay.portal.kernel.exception.SystemException { 623 return getService().getUserGroupsActivitiesCount(userId); 624 } 625 626 /** 627 * Returns a range of all the activities done in the user's groups and 628 * organizations. This method only finds activities without mirrors. 629 * 630 * <p> 631 * Useful when paginating results. Returns a maximum of <code>end - 632 * start</code> instances. <code>start</code> and <code>end</code> are not 633 * primary keys, they are indexes in the result set. Thus, <code>0</code> 634 * refers to the first result in the set. Setting both <code>start</code> 635 * and <code>end</code> to {@link 636 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 637 * result set. 638 * </p> 639 * 640 * @param userId the primary key of the user 641 * @param start the lower bound of the range of results 642 * @param end the upper bound of the range of results (not inclusive) 643 * @return the range of matching activities 644 * @throws PortalException if a permission checker was not initialized 645 * @throws SystemException if a system exception occurred 646 */ 647 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserGroupsAndOrganizationsActivities( 648 long userId, int start, int end) 649 throws com.liferay.portal.kernel.exception.PortalException, 650 com.liferay.portal.kernel.exception.SystemException { 651 return getService() 652 .getUserGroupsAndOrganizationsActivities(userId, start, end); 653 } 654 655 /** 656 * Returns the number of activities done in user's groups and organizations. 657 * This method only counts activities without mirrors. 658 * 659 * @param userId the primary key of the user 660 * @return the number of matching activities 661 * @throws SystemException if a system exception occurred 662 */ 663 public static int getUserGroupsAndOrganizationsActivitiesCount(long userId) 664 throws com.liferay.portal.kernel.exception.SystemException { 665 return getService().getUserGroupsAndOrganizationsActivitiesCount(userId); 666 } 667 668 /** 669 * Returns a range of all activities done in the user's organizations. This 670 * method only finds activities without mirrors. 671 * 672 * <p> 673 * Useful when paginating results. Returns a maximum of <code>end - 674 * start</code> instances. <code>start</code> and <code>end</code> are not 675 * primary keys, they are indexes in the result set. Thus, <code>0</code> 676 * refers to the first result in the set. Setting both <code>start</code> 677 * and <code>end</code> to {@link 678 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 679 * result set. 680 * </p> 681 * 682 * @param userId the primary key of the user 683 * @param start the lower bound of the range of results 684 * @param end the upper bound of the range of results (not inclusive) 685 * @return the range of matching activities 686 * @throws PortalException if a permission checker was not initialized 687 * @throws SystemException if a system exception occurred 688 */ 689 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserOrganizationsActivities( 690 long userId, int start, int end) 691 throws com.liferay.portal.kernel.exception.PortalException, 692 com.liferay.portal.kernel.exception.SystemException { 693 return getService().getUserOrganizationsActivities(userId, start, end); 694 } 695 696 /** 697 * Returns the number of activities done in the user's organizations. This 698 * method only counts activities without mirrors. 699 * 700 * @param userId the primary key of the user 701 * @return the number of matching activities 702 * @throws SystemException if a system exception occurred 703 */ 704 public static int getUserOrganizationsActivitiesCount(long userId) 705 throws com.liferay.portal.kernel.exception.SystemException { 706 return getService().getUserOrganizationsActivitiesCount(userId); 707 } 708 709 public static SocialActivityService getService() { 710 if (_service == null) { 711 _service = (SocialActivityService)PortalBeanLocatorUtil.locate(SocialActivityService.class.getName()); 712 713 ReferenceRegistry.registerReference(SocialActivityServiceUtil.class, 714 "_service"); 715 } 716 717 return _service; 718 } 719 720 /** 721 * @deprecated As of 6.2.0 722 */ 723 public void setService(SocialActivityService service) { 724 } 725 726 private static SocialActivityService _service; 727 }