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