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