001 /** 002 * Copyright (c) 2000-2012 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 * <p> 021 * This class is a wrapper for {@link SocialActivityLocalService}. 022 * </p> 023 * 024 * @author Brian Wing Shun Chan 025 * @see SocialActivityLocalService 026 * @generated 027 */ 028 public class SocialActivityLocalServiceWrapper 029 implements SocialActivityLocalService, 030 ServiceWrapper<SocialActivityLocalService> { 031 public SocialActivityLocalServiceWrapper( 032 SocialActivityLocalService socialActivityLocalService) { 033 _socialActivityLocalService = socialActivityLocalService; 034 } 035 036 /** 037 * Adds the social activity to the database. Also notifies the appropriate model listeners. 038 * 039 * @param socialActivity the social activity 040 * @return the social activity that was added 041 * @throws SystemException if a system exception occurred 042 */ 043 public com.liferay.portlet.social.model.SocialActivity addSocialActivity( 044 com.liferay.portlet.social.model.SocialActivity socialActivity) 045 throws com.liferay.portal.kernel.exception.SystemException { 046 return _socialActivityLocalService.addSocialActivity(socialActivity); 047 } 048 049 /** 050 * Creates a new social activity with the primary key. Does not add the social activity to the database. 051 * 052 * @param activityId the primary key for the new social activity 053 * @return the new social activity 054 */ 055 public com.liferay.portlet.social.model.SocialActivity createSocialActivity( 056 long activityId) { 057 return _socialActivityLocalService.createSocialActivity(activityId); 058 } 059 060 /** 061 * Deletes the social activity with the primary key from the database. Also notifies the appropriate model listeners. 062 * 063 * @param activityId the primary key of the social activity 064 * @return the social activity that was removed 065 * @throws PortalException if a social activity with the primary key could not be found 066 * @throws SystemException if a system exception occurred 067 */ 068 public com.liferay.portlet.social.model.SocialActivity deleteSocialActivity( 069 long activityId) 070 throws com.liferay.portal.kernel.exception.PortalException, 071 com.liferay.portal.kernel.exception.SystemException { 072 return _socialActivityLocalService.deleteSocialActivity(activityId); 073 } 074 075 /** 076 * Deletes the social activity from the database. Also notifies the appropriate model listeners. 077 * 078 * @param socialActivity the social activity 079 * @return the social activity that was removed 080 * @throws SystemException if a system exception occurred 081 */ 082 public com.liferay.portlet.social.model.SocialActivity deleteSocialActivity( 083 com.liferay.portlet.social.model.SocialActivity socialActivity) 084 throws com.liferay.portal.kernel.exception.SystemException { 085 return _socialActivityLocalService.deleteSocialActivity(socialActivity); 086 } 087 088 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { 089 return _socialActivityLocalService.dynamicQuery(); 090 } 091 092 /** 093 * Performs a dynamic query on the database and returns the matching rows. 094 * 095 * @param dynamicQuery the dynamic query 096 * @return the matching rows 097 * @throws SystemException if a system exception occurred 098 */ 099 @SuppressWarnings("rawtypes") 100 public java.util.List dynamicQuery( 101 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) 102 throws com.liferay.portal.kernel.exception.SystemException { 103 return _socialActivityLocalService.dynamicQuery(dynamicQuery); 104 } 105 106 /** 107 * Performs a dynamic query on the database and returns a range of the matching rows. 108 * 109 * <p> 110 * 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. 111 * </p> 112 * 113 * @param dynamicQuery the dynamic query 114 * @param start the lower bound of the range of model instances 115 * @param end the upper bound of the range of model instances (not inclusive) 116 * @return the range of matching rows 117 * @throws SystemException if a system exception occurred 118 */ 119 @SuppressWarnings("rawtypes") 120 public java.util.List dynamicQuery( 121 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 122 int end) throws com.liferay.portal.kernel.exception.SystemException { 123 return _socialActivityLocalService.dynamicQuery(dynamicQuery, start, end); 124 } 125 126 /** 127 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 128 * 129 * <p> 130 * 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. 131 * </p> 132 * 133 * @param dynamicQuery the dynamic query 134 * @param start the lower bound of the range of model instances 135 * @param end the upper bound of the range of model instances (not inclusive) 136 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 137 * @return the ordered range of matching rows 138 * @throws SystemException if a system exception occurred 139 */ 140 @SuppressWarnings("rawtypes") 141 public java.util.List dynamicQuery( 142 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 143 int end, 144 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 145 throws com.liferay.portal.kernel.exception.SystemException { 146 return _socialActivityLocalService.dynamicQuery(dynamicQuery, start, 147 end, orderByComparator); 148 } 149 150 /** 151 * Returns the number of rows that match the dynamic query. 152 * 153 * @param dynamicQuery the dynamic query 154 * @return the number of rows that match the dynamic query 155 * @throws SystemException if a system exception occurred 156 */ 157 public long dynamicQueryCount( 158 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) 159 throws com.liferay.portal.kernel.exception.SystemException { 160 return _socialActivityLocalService.dynamicQueryCount(dynamicQuery); 161 } 162 163 public com.liferay.portlet.social.model.SocialActivity fetchSocialActivity( 164 long activityId) 165 throws com.liferay.portal.kernel.exception.SystemException { 166 return _socialActivityLocalService.fetchSocialActivity(activityId); 167 } 168 169 /** 170 * Returns the social activity with the primary key. 171 * 172 * @param activityId the primary key of the social activity 173 * @return the social activity 174 * @throws PortalException if a social activity with the primary key could not be found 175 * @throws SystemException if a system exception occurred 176 */ 177 public com.liferay.portlet.social.model.SocialActivity getSocialActivity( 178 long activityId) 179 throws com.liferay.portal.kernel.exception.PortalException, 180 com.liferay.portal.kernel.exception.SystemException { 181 return _socialActivityLocalService.getSocialActivity(activityId); 182 } 183 184 public com.liferay.portal.model.PersistedModel getPersistedModel( 185 java.io.Serializable primaryKeyObj) 186 throws com.liferay.portal.kernel.exception.PortalException, 187 com.liferay.portal.kernel.exception.SystemException { 188 return _socialActivityLocalService.getPersistedModel(primaryKeyObj); 189 } 190 191 /** 192 * Returns a range of all the social activities. 193 * 194 * <p> 195 * 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. 196 * </p> 197 * 198 * @param start the lower bound of the range of social activities 199 * @param end the upper bound of the range of social activities (not inclusive) 200 * @return the range of social activities 201 * @throws SystemException if a system exception occurred 202 */ 203 public java.util.List<com.liferay.portlet.social.model.SocialActivity> getSocialActivities( 204 int start, int end) 205 throws com.liferay.portal.kernel.exception.SystemException { 206 return _socialActivityLocalService.getSocialActivities(start, end); 207 } 208 209 /** 210 * Returns the number of social activities. 211 * 212 * @return the number of social activities 213 * @throws SystemException if a system exception occurred 214 */ 215 public int getSocialActivitiesCount() 216 throws com.liferay.portal.kernel.exception.SystemException { 217 return _socialActivityLocalService.getSocialActivitiesCount(); 218 } 219 220 /** 221 * Updates the social activity in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 222 * 223 * @param socialActivity the social activity 224 * @return the social activity that was updated 225 * @throws SystemException if a system exception occurred 226 */ 227 public com.liferay.portlet.social.model.SocialActivity updateSocialActivity( 228 com.liferay.portlet.social.model.SocialActivity socialActivity) 229 throws com.liferay.portal.kernel.exception.SystemException { 230 return _socialActivityLocalService.updateSocialActivity(socialActivity); 231 } 232 233 /** 234 * Returns the Spring bean ID for this bean. 235 * 236 * @return the Spring bean ID for this bean 237 */ 238 public java.lang.String getBeanIdentifier() { 239 return _socialActivityLocalService.getBeanIdentifier(); 240 } 241 242 /** 243 * Sets the Spring bean ID for this bean. 244 * 245 * @param beanIdentifier the Spring bean ID for this bean 246 */ 247 public void setBeanIdentifier(java.lang.String beanIdentifier) { 248 _socialActivityLocalService.setBeanIdentifier(beanIdentifier); 249 } 250 251 /** 252 * Records an activity with the given time in the database. 253 * 254 * <p> 255 * This method records a social activity done on an asset, identified by its 256 * class name and class primary key, in the database. Additional information 257 * (such as the original message ID for a reply to a forum post) is passed 258 * in via the <code>extraData</code> in JSON format. For activities 259 * affecting another user, a mirror activity is generated that describes the 260 * action from the user's point of view. The target user's ID is passed in 261 * via the <code>receiverUserId</code>. 262 * </p> 263 * 264 * <p> 265 * Example for a mirrored activity:<br> When a user replies to a message 266 * boards post, the reply action is stored in the database with the 267 * <code>receiverUserId</code> being the ID of the author of the original 268 * message. The <code>extraData</code> contains the ID of the original 269 * message in JSON format. A mirror activity is generated with the values of 270 * the <code>userId</code> and the <code>receiverUserId</code> swapped. This 271 * mirror activity basically describes a "replied to" event. 272 * </p> 273 * 274 * <p> 275 * Mirror activities are most often used in relation to friend requests and 276 * activities. 277 * </p> 278 * 279 * @param userId the primary key of the acting user 280 * @param groupId the primary key of the group 281 * @param createDate the activity's date 282 * @param className the target asset's class name 283 * @param classPK the primary key of the target asset 284 * @param type the activity's type 285 * @param extraData any extra data regarding the activity 286 * @param receiverUserId the primary key of the receiving user 287 * @throws PortalException if the user or group could not be found 288 * @throws SystemException if a system exception occurred 289 */ 290 public void addActivity(long userId, long groupId, 291 java.util.Date createDate, java.lang.String className, long classPK, 292 int type, java.lang.String extraData, long receiverUserId) 293 throws com.liferay.portal.kernel.exception.PortalException, 294 com.liferay.portal.kernel.exception.SystemException { 295 _socialActivityLocalService.addActivity(userId, groupId, createDate, 296 className, classPK, type, extraData, receiverUserId); 297 } 298 299 /** 300 * Records an activity in the database, using a time based on the current 301 * time in an attempt to make the activity's time unique. 302 * 303 * @param userId the primary key of the acting user 304 * @param groupId the primary key of the group 305 * @param className the target asset's class name 306 * @param classPK the primary key of the target asset 307 * @param type the activity's type 308 * @param extraData any extra data regarding the activity 309 * @param receiverUserId the primary key of the receiving user 310 * @throws PortalException if the user or group could not be found 311 * @throws SystemException if a system exception occurred 312 */ 313 public void addActivity(long userId, long groupId, 314 java.lang.String className, long classPK, int type, 315 java.lang.String extraData, long receiverUserId) 316 throws com.liferay.portal.kernel.exception.PortalException, 317 com.liferay.portal.kernel.exception.SystemException { 318 _socialActivityLocalService.addActivity(userId, groupId, className, 319 classPK, type, extraData, receiverUserId); 320 } 321 322 public void addActivity( 323 com.liferay.portlet.social.model.SocialActivity activity, 324 com.liferay.portlet.social.model.SocialActivity mirrorActivity) 325 throws com.liferay.portal.kernel.exception.PortalException, 326 com.liferay.portal.kernel.exception.SystemException { 327 _socialActivityLocalService.addActivity(activity, mirrorActivity); 328 } 329 330 /** 331 * Records an activity in the database, but only if there isn't already an 332 * activity with the same parameters. 333 * 334 * <p> 335 * For the main functionality see {@link #addActivity(long, long, Date, 336 * String, long, int, String, long)} 337 * </p> 338 * 339 * @param userId the primary key of the acting user 340 * @param groupId the primary key of the group 341 * @param createDate the activity's date 342 * @param className the target asset's class name 343 * @param classPK the primary key of the target asset 344 * @param type the activity's type 345 * @param extraData any extra data regarding the activity 346 * @param receiverUserId the primary key of the receiving user 347 * @throws PortalException if the user or group could not be found 348 * @throws SystemException if a system exception occurred 349 */ 350 public void addUniqueActivity(long userId, long groupId, 351 java.util.Date createDate, java.lang.String className, long classPK, 352 int type, java.lang.String extraData, long receiverUserId) 353 throws com.liferay.portal.kernel.exception.PortalException, 354 com.liferay.portal.kernel.exception.SystemException { 355 _socialActivityLocalService.addUniqueActivity(userId, groupId, 356 createDate, className, classPK, type, extraData, receiverUserId); 357 } 358 359 /** 360 * Records an activity with the current time in the database, but only if 361 * there isn't one with the same parameters. 362 * 363 * <p> 364 * For the main functionality see {@link #addActivity(long, long, Date, 365 * String, long, int, String, long)} 366 * </p> 367 * 368 * @param userId the primary key of the acting user 369 * @param groupId the primary key of the group 370 * @param className the target asset's class name 371 * @param classPK the primary key of the target asset 372 * @param type the activity's type 373 * @param extraData any extra data regarding the activity 374 * @param receiverUserId the primary key of the receiving user 375 * @throws PortalException if the user or group could not be found 376 * @throws SystemException if a system exception occurred 377 */ 378 public void addUniqueActivity(long userId, long groupId, 379 java.lang.String className, long classPK, int type, 380 java.lang.String extraData, long receiverUserId) 381 throws com.liferay.portal.kernel.exception.PortalException, 382 com.liferay.portal.kernel.exception.SystemException { 383 _socialActivityLocalService.addUniqueActivity(userId, groupId, 384 className, classPK, type, extraData, receiverUserId); 385 } 386 387 /** 388 * Removes stored activities for the asset. 389 * 390 * @param assetEntry the asset from which to remove stored activities 391 * @throws PortalException if a portal exception occurred 392 * @throws SystemException if a system exception occurred 393 */ 394 public void deleteActivities( 395 com.liferay.portlet.asset.model.AssetEntry assetEntry) 396 throws com.liferay.portal.kernel.exception.PortalException, 397 com.liferay.portal.kernel.exception.SystemException { 398 _socialActivityLocalService.deleteActivities(assetEntry); 399 } 400 401 /** 402 * Removes stored activities for the asset identified by the class name and 403 * class primary key. 404 * 405 * @param className the target asset's class name 406 * @param classPK the primary key of the target asset 407 * @throws SystemException if a system exception occurred 408 */ 409 public void deleteActivities(java.lang.String className, long classPK) 410 throws com.liferay.portal.kernel.exception.SystemException { 411 _socialActivityLocalService.deleteActivities(className, classPK); 412 } 413 414 /** 415 * Removes the stored activity from the database. 416 * 417 * @param activityId the primary key of the stored activity 418 * @throws PortalException if the activity could not be found 419 * @throws SystemException if a system exception occurred 420 */ 421 public void deleteActivity(long activityId) 422 throws com.liferay.portal.kernel.exception.PortalException, 423 com.liferay.portal.kernel.exception.SystemException { 424 _socialActivityLocalService.deleteActivity(activityId); 425 } 426 427 /** 428 * Removes the stored activity and its mirror activity from the database. 429 * 430 * @param activity the activity to be removed 431 * @throws SystemException if a system exception occurred 432 */ 433 public void deleteActivity( 434 com.liferay.portlet.social.model.SocialActivity activity) 435 throws com.liferay.portal.kernel.exception.SystemException { 436 _socialActivityLocalService.deleteActivity(activity); 437 } 438 439 /** 440 * Removes the user's stored activities from the database. 441 * 442 * <p> 443 * This method removes all activities where the user is either the actor or 444 * the receiver. 445 * </p> 446 * 447 * @param userId the primary key of the user 448 * @throws PortalException if the user's activity counters could not be 449 deleted 450 * @throws SystemException if a system exception occurred 451 */ 452 public void deleteUserActivities(long userId) 453 throws com.liferay.portal.kernel.exception.PortalException, 454 com.liferay.portal.kernel.exception.SystemException { 455 _socialActivityLocalService.deleteUserActivities(userId); 456 } 457 458 /** 459 * Returns a range of all the activities done on assets identified by the 460 * class name ID. 461 * 462 * <p> 463 * Useful when paginating results. Returns a maximum of <code>end - 464 * start</code> instances. <code>start</code> and <code>end</code> are not 465 * primary keys, they are indexes in the result set. Thus, <code>0</code> 466 * refers to the first result in the set. Setting both <code>start</code> 467 * and <code>end</code> to {@link 468 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 469 * result set. 470 * </p> 471 * 472 * @param classNameId the target asset's class name ID 473 * @param start the lower bound of the range of results 474 * @param end the upper bound of the range of results (not inclusive) 475 * @return the range of matching activities 476 * @throws SystemException if a system exception occurred 477 */ 478 public java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities( 479 long classNameId, int start, int end) 480 throws com.liferay.portal.kernel.exception.SystemException { 481 return _socialActivityLocalService.getActivities(classNameId, start, end); 482 } 483 484 /** 485 * Returns a range of all the activities done on the asset identified by the 486 * class name ID and class primary key that are mirrors of the activity 487 * identified by the mirror activity ID. 488 * 489 * <p> 490 * Useful when paginating results. Returns a maximum of <code>end - 491 * start</code> instances. <code>start</code> and <code>end</code> are not 492 * primary keys, they are indexes in the result set. Thus, <code>0</code> 493 * refers to the first result in the set. Setting both <code>start</code> 494 * and <code>end</code> to {@link 495 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 496 * result set. 497 * </p> 498 * 499 * @param mirrorActivityId the primary key of the mirror activity 500 * @param classNameId the target asset's class name ID 501 * @param classPK the primary key of the target asset 502 * @param start the lower bound of the range of results 503 * @param end the upper bound of the range of results (not inclusive) 504 * @return the range of matching activities 505 * @throws SystemException if a system exception occurred 506 */ 507 public java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities( 508 long mirrorActivityId, long classNameId, long classPK, int start, 509 int end) throws com.liferay.portal.kernel.exception.SystemException { 510 return _socialActivityLocalService.getActivities(mirrorActivityId, 511 classNameId, classPK, start, end); 512 } 513 514 /** 515 * Returns a range of all the activities done on the asset identified by the 516 * class name and the class primary key that are mirrors of the activity 517 * identified by the mirror activity ID. 518 * 519 * <p> 520 * Useful when paginating results. Returns a maximum of <code>end - 521 * start</code> instances. <code>start</code> and <code>end</code> are not 522 * primary keys, they are indexes in the result set. Thus, <code>0</code> 523 * refers to the first result in the set. Setting both <code>start</code> 524 * and <code>end</code> to {@link 525 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 526 * result set. 527 * </p> 528 * 529 * @param mirrorActivityId the primary key of the mirror activity 530 * @param className the target asset's class name 531 * @param classPK the primary key of the target asset 532 * @param start the lower bound of the range of results 533 * @param end the upper bound of the range of results (not inclusive) 534 * @return the range of matching activities 535 * @throws SystemException if a system exception occurred 536 */ 537 public java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities( 538 long mirrorActivityId, java.lang.String className, long classPK, 539 int start, int end) 540 throws com.liferay.portal.kernel.exception.SystemException { 541 return _socialActivityLocalService.getActivities(mirrorActivityId, 542 className, classPK, start, end); 543 } 544 545 /** 546 * Returns a range of all the activities done on assets identified by the 547 * class name. 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 className the target asset's class name 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 SystemException if a system exception occurred 564 */ 565 public java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities( 566 java.lang.String className, int start, int end) 567 throws com.liferay.portal.kernel.exception.SystemException { 568 return _socialActivityLocalService.getActivities(className, start, end); 569 } 570 571 /** 572 * Returns the number of activities done on assets identified by the class 573 * name ID. 574 * 575 * @param classNameId the target asset's class name ID 576 * @return the number of matching activities 577 * @throws SystemException if a system exception occurred 578 */ 579 public int getActivitiesCount(long classNameId) 580 throws com.liferay.portal.kernel.exception.SystemException { 581 return _socialActivityLocalService.getActivitiesCount(classNameId); 582 } 583 584 /** 585 * Returns the number of activities done on the asset identified by the 586 * class name ID and class primary key that are mirrors of the activity 587 * identified by the mirror activity ID. 588 * 589 * @param mirrorActivityId the primary key of the mirror activity 590 * @param classNameId the target asset's class name ID 591 * @param classPK the primary key of the target asset 592 * @return the number of matching activities 593 * @throws SystemException if a system exception occurred 594 */ 595 public int getActivitiesCount(long mirrorActivityId, long classNameId, 596 long classPK) 597 throws com.liferay.portal.kernel.exception.SystemException { 598 return _socialActivityLocalService.getActivitiesCount(mirrorActivityId, 599 classNameId, classPK); 600 } 601 602 /** 603 * Returns the number of activities done on the asset identified by the 604 * class name and class primary key that are mirrors of the activity 605 * identified by the mirror activity ID. 606 * 607 * @param mirrorActivityId the primary key of the mirror activity 608 * @param className the target asset's class name 609 * @param classPK the primary key of the target asset 610 * @return the number of matching activities 611 * @throws SystemException if a system exception occurred 612 */ 613 public int getActivitiesCount(long mirrorActivityId, 614 java.lang.String className, long classPK) 615 throws com.liferay.portal.kernel.exception.SystemException { 616 return _socialActivityLocalService.getActivitiesCount(mirrorActivityId, 617 className, classPK); 618 } 619 620 /** 621 * Returns the number of activities done on assets identified by class name. 622 * 623 * @param className the target asset's class name 624 * @return the number of matching activities 625 * @throws SystemException if a system exception occurred 626 */ 627 public int getActivitiesCount(java.lang.String className) 628 throws com.liferay.portal.kernel.exception.SystemException { 629 return _socialActivityLocalService.getActivitiesCount(className); 630 } 631 632 /** 633 * Returns the activity identified by its primary key. 634 * 635 * @param activityId the primary key of the activity 636 * @return Returns the activity 637 * @throws PortalException if the activity could not be found 638 * @throws SystemException if a system exception occurred 639 */ 640 public com.liferay.portlet.social.model.SocialActivity getActivity( 641 long activityId) 642 throws com.liferay.portal.kernel.exception.PortalException, 643 com.liferay.portal.kernel.exception.SystemException { 644 return _socialActivityLocalService.getActivity(activityId); 645 } 646 647 /** 648 * Returns a range of all the activities done in the group. 649 * 650 * <p> 651 * This method only finds activities without mirrors. 652 * </p> 653 * 654 * <p> 655 * Useful when paginating results. Returns a maximum of <code>end - 656 * start</code> instances. <code>start</code> and <code>end</code> are not 657 * primary keys, they are indexes in the result set. Thus, <code>0</code> 658 * refers to the first result in the set. Setting both <code>start</code> 659 * and <code>end</code> to {@link 660 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 661 * result set. 662 * </p> 663 * 664 * @param groupId the primary key of the group 665 * @param start the lower bound of the range of results 666 * @param end the upper bound of the range of results (not inclusive) 667 * @return the range of matching activities 668 * @throws SystemException if a system exception occurred 669 */ 670 public java.util.List<com.liferay.portlet.social.model.SocialActivity> getGroupActivities( 671 long groupId, int start, int end) 672 throws com.liferay.portal.kernel.exception.SystemException { 673 return _socialActivityLocalService.getGroupActivities(groupId, start, 674 end); 675 } 676 677 /** 678 * Returns the number of activities done in the group. 679 * 680 * <p> 681 * This method only counts activities without mirrors. 682 * </p> 683 * 684 * @param groupId the primary key of the group 685 * @return the number of matching activities 686 * @throws SystemException if a system exception occurred 687 */ 688 public int getGroupActivitiesCount(long groupId) 689 throws com.liferay.portal.kernel.exception.SystemException { 690 return _socialActivityLocalService.getGroupActivitiesCount(groupId); 691 } 692 693 /** 694 * Returns a range of activities done by users that are members of the 695 * group. 696 * 697 * <p> 698 * This method only finds activities without mirrors. 699 * </p> 700 * 701 * <p> 702 * Useful when paginating results. Returns a maximum of <code>end - 703 * start</code> instances. <code>start</code> and <code>end</code> are not 704 * primary keys, they are indexes in the result set. Thus, <code>0</code> 705 * refers to the first result in the set. Setting both <code>start</code> 706 * and <code>end</code> to {@link 707 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 708 * result set. 709 * </p> 710 * 711 * @param groupId the primary key of the group 712 * @param start the lower bound of the range of results 713 * @param end the upper bound of the range of results (not inclusive) 714 * @return the range of matching activities 715 * @throws SystemException if a system exception occurred 716 */ 717 public java.util.List<com.liferay.portlet.social.model.SocialActivity> getGroupUsersActivities( 718 long groupId, int start, int end) 719 throws com.liferay.portal.kernel.exception.SystemException { 720 return _socialActivityLocalService.getGroupUsersActivities(groupId, 721 start, end); 722 } 723 724 /** 725 * Returns the number of activities done by users that are members of the 726 * group. 727 * 728 * <p> 729 * This method only counts activities without mirrors. 730 * </p> 731 * 732 * @param groupId the primary key of the group 733 * @return the number of matching activities 734 * @throws SystemException if a system exception occurred 735 */ 736 public int getGroupUsersActivitiesCount(long groupId) 737 throws com.liferay.portal.kernel.exception.SystemException { 738 return _socialActivityLocalService.getGroupUsersActivitiesCount(groupId); 739 } 740 741 /** 742 * Returns the activity that has the mirror activity. 743 * 744 * @param mirrorActivityId the primary key of the mirror activity 745 * @return Returns the mirror activity 746 * @throws PortalException if the mirror activity could not be found 747 * @throws SystemException if a system exception occurred 748 */ 749 public com.liferay.portlet.social.model.SocialActivity getMirrorActivity( 750 long mirrorActivityId) 751 throws com.liferay.portal.kernel.exception.PortalException, 752 com.liferay.portal.kernel.exception.SystemException { 753 return _socialActivityLocalService.getMirrorActivity(mirrorActivityId); 754 } 755 756 /** 757 * Returns a range of all the activities done in the organization. This 758 * method only finds activities without mirrors. 759 * 760 * <p> 761 * Useful when paginating results. Returns a maximum of <code>end - 762 * start</code> instances. <code>start</code> and <code>end</code> are not 763 * primary keys, they are indexes in the result set. Thus, <code>0</code> 764 * refers to the first result in the set. Setting both <code>start</code> 765 * and <code>end</code> to {@link 766 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 767 * result set. 768 * </p> 769 * 770 * @param organizationId the primary key of the organization 771 * @param start the lower bound of the range of results 772 * @param end the upper bound of the range of results (not inclusive) 773 * @return the range of matching activities 774 * @throws SystemException if a system exception occurred 775 */ 776 public java.util.List<com.liferay.portlet.social.model.SocialActivity> getOrganizationActivities( 777 long organizationId, int start, int end) 778 throws com.liferay.portal.kernel.exception.SystemException { 779 return _socialActivityLocalService.getOrganizationActivities(organizationId, 780 start, end); 781 } 782 783 /** 784 * Returns the number of activities done in the organization. This method 785 * only counts activities without mirrors. 786 * 787 * @param organizationId the primary key of the organization 788 * @return the number of matching activities 789 * @throws SystemException if a system exception occurred 790 */ 791 public int getOrganizationActivitiesCount(long organizationId) 792 throws com.liferay.portal.kernel.exception.SystemException { 793 return _socialActivityLocalService.getOrganizationActivitiesCount(organizationId); 794 } 795 796 /** 797 * Returns a range of all the activities done by users of the organization. 798 * This method only finds activities without mirrors. 799 * 800 * <p> 801 * Useful when paginating results. Returns a maximum of <code>end - 802 * start</code> instances. <code>start</code> and <code>end</code> are not 803 * primary keys, they are indexes in the result set. Thus, <code>0</code> 804 * refers to the first result in the set. Setting both <code>start</code> 805 * and <code>end</code> to {@link 806 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 807 * result set. 808 * </p> 809 * 810 * @param organizationId the primary key of the organization 811 * @param start the lower bound of the range of results 812 * @param end the upper bound of the range of results (not inclusive) 813 * @return the range of matching activities 814 * @throws SystemException if a system exception occurred 815 */ 816 public java.util.List<com.liferay.portlet.social.model.SocialActivity> getOrganizationUsersActivities( 817 long organizationId, int start, int end) 818 throws com.liferay.portal.kernel.exception.SystemException { 819 return _socialActivityLocalService.getOrganizationUsersActivities(organizationId, 820 start, end); 821 } 822 823 /** 824 * Returns the number of activities done by users of the organization. This 825 * method only counts activities without mirrors. 826 * 827 * @param organizationId the primary key of the organization 828 * @return the number of matching activities 829 * @throws SystemException if a system exception occurred 830 */ 831 public int getOrganizationUsersActivitiesCount(long organizationId) 832 throws com.liferay.portal.kernel.exception.SystemException { 833 return _socialActivityLocalService.getOrganizationUsersActivitiesCount(organizationId); 834 } 835 836 /** 837 * Returns a range of all the activities done by users in a relationship 838 * with the user identified by the user ID. 839 * 840 * <p> 841 * Useful when paginating results. Returns a maximum of <code>end - 842 * start</code> instances. <code>start</code> and <code>end</code> are not 843 * primary keys, they are indexes in the result set. Thus, <>0</code> refers 844 * to the first result in the set. Setting both <code>start</code> and 845 * <code>end</code> to {@link 846 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 847 * result set. 848 * </p> 849 * 850 * @param userId the primary key of the user 851 * @param start the lower bound of the range of results 852 * @param end the upper bound of the range of results (not inclusive) 853 * @return the range of matching activities 854 * @throws SystemException if a system exception occurred 855 */ 856 public java.util.List<com.liferay.portlet.social.model.SocialActivity> getRelationActivities( 857 long userId, int start, int end) 858 throws com.liferay.portal.kernel.exception.SystemException { 859 return _socialActivityLocalService.getRelationActivities(userId, start, 860 end); 861 } 862 863 /** 864 * Returns a range of all the activities done by users in a relationship of 865 * type <code>type</code> with the user identified by <code>userId</code>. 866 * This method only finds activities without mirrors. 867 * 868 * <p> 869 * Useful when paginating results. Returns a maximum of <code>end - 870 * start</code> instances. <code>start</code> and <code>end</code> are not 871 * primary keys, they are indexes in the result set. Thus, <code>0</code> 872 * refers to the first result in the set. Setting both <code>start</code> 873 * and <code>end</code> to {@link 874 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 875 * result set. 876 * </p> 877 * 878 * @param userId the primary key of the user 879 * @param type the relationship type 880 * @param start the lower bound of the range of results 881 * @param end the upper bound of the range of results (not inclusive) 882 * @return the range of matching activities 883 * @throws SystemException if a system exception occurred 884 */ 885 public java.util.List<com.liferay.portlet.social.model.SocialActivity> getRelationActivities( 886 long userId, int type, int start, int end) 887 throws com.liferay.portal.kernel.exception.SystemException { 888 return _socialActivityLocalService.getRelationActivities(userId, type, 889 start, end); 890 } 891 892 /** 893 * Returns the number of activities done by users in a relationship with the 894 * user identified by userId. 895 * 896 * @param userId the primary key of the user 897 * @return the number of matching activities 898 * @throws SystemException if a system exception occurred 899 */ 900 public int getRelationActivitiesCount(long userId) 901 throws com.liferay.portal.kernel.exception.SystemException { 902 return _socialActivityLocalService.getRelationActivitiesCount(userId); 903 } 904 905 /** 906 * Returns the number of activities done by users in a relationship of type 907 * <code>type</code> with the user identified by <code>userId</code>. This 908 * method only counts activities without mirrors. 909 * 910 * @param userId the primary key of the user 911 * @param type the relationship type 912 * @return the number of matching activities 913 * @throws SystemException if a system exception occurred 914 */ 915 public int getRelationActivitiesCount(long userId, int type) 916 throws com.liferay.portal.kernel.exception.SystemException { 917 return _socialActivityLocalService.getRelationActivitiesCount(userId, 918 type); 919 } 920 921 /** 922 * Returns a range of all the activities done by the user. 923 * 924 * <p> 925 * Useful when paginating results. Returns a maximum of <code>end - 926 * start</code> instances. <code>start</code> and <code>end</code> are not 927 * primary keys, they are indexes in the result set. Thus, <code>0</code> 928 * refers to the first result in the set. Setting both <code>start</code> 929 * and <code>end</code> to {@link 930 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 931 * result set. 932 * </p> 933 * 934 * @param userId the primary key of the user 935 * @param start the lower bound of the range of results 936 * @param end the upper bound of the range of results (not inclusive) 937 * @return the range of matching activities 938 * @throws SystemException if a system exception occurred 939 */ 940 public java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserActivities( 941 long userId, int start, int end) 942 throws com.liferay.portal.kernel.exception.SystemException { 943 return _socialActivityLocalService.getUserActivities(userId, start, end); 944 } 945 946 /** 947 * Returns the number of activities done by the user. 948 * 949 * @param userId the primary key of the user 950 * @return the number of matching activities 951 * @throws SystemException if a system exception occurred 952 */ 953 public int getUserActivitiesCount(long userId) 954 throws com.liferay.portal.kernel.exception.SystemException { 955 return _socialActivityLocalService.getUserActivitiesCount(userId); 956 } 957 958 /** 959 * Returns a range of all the activities done in the user's groups. This 960 * method only finds activities without mirrors. 961 * 962 * <p> 963 * Useful when paginating results. Returns a maximum of <code>end - 964 * start</code> instances. <code>start</code> and <code>end</code> are not 965 * primary keys, they are indexes in the result set. Thus, <code>0</code> 966 * refers to the first result in the set. Setting both <code>start</code> 967 * and <code>end</code> to {@link 968 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 969 * result set. 970 * </p> 971 * 972 * @param userId the primary key of the user 973 * @param start the lower bound of the range of results 974 * @param end the upper bound of the range of results (not inclusive) 975 * @return the range of matching activities 976 * @throws SystemException if a system exception occurred 977 */ 978 public java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserGroupsActivities( 979 long userId, int start, int end) 980 throws com.liferay.portal.kernel.exception.SystemException { 981 return _socialActivityLocalService.getUserGroupsActivities(userId, 982 start, end); 983 } 984 985 /** 986 * Returns the number of activities done in user's groups. This method only 987 * counts activities without mirrors. 988 * 989 * @param userId the primary key of the user 990 * @return the number of matching activities 991 * @throws SystemException if a system exception occurred 992 */ 993 public int getUserGroupsActivitiesCount(long userId) 994 throws com.liferay.portal.kernel.exception.SystemException { 995 return _socialActivityLocalService.getUserGroupsActivitiesCount(userId); 996 } 997 998 /** 999 * Returns a range of all the activities done in the user's groups and 1000 * organizations. This method only finds activities without mirrors. 1001 * 1002 * <p> 1003 * Useful when paginating results. Returns a maximum of <code>end - 1004 * start</code> instances. <code>start</code> and <code>end</code> are not 1005 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1006 * refers to the first result in the set. Setting both <code>start</code> 1007 * and <code>end</code> to {@link 1008 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 1009 * result set. 1010 * </p> 1011 * 1012 * @param userId the primary key of the user 1013 * @param start the lower bound of the range of results 1014 * @param end the upper bound of the range of results (not inclusive) 1015 * @return the range of matching activities 1016 * @throws SystemException if a system exception occurred 1017 */ 1018 public java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserGroupsAndOrganizationsActivities( 1019 long userId, int start, int end) 1020 throws com.liferay.portal.kernel.exception.SystemException { 1021 return _socialActivityLocalService.getUserGroupsAndOrganizationsActivities(userId, 1022 start, end); 1023 } 1024 1025 /** 1026 * Returns the number of activities done in user's groups and organizations. 1027 * This method only counts activities without mirrors. 1028 * 1029 * @param userId the primary key of the user 1030 * @return the number of matching activities 1031 * @throws SystemException if a system exception occurred 1032 */ 1033 public int getUserGroupsAndOrganizationsActivitiesCount(long userId) 1034 throws com.liferay.portal.kernel.exception.SystemException { 1035 return _socialActivityLocalService.getUserGroupsAndOrganizationsActivitiesCount(userId); 1036 } 1037 1038 /** 1039 * Returns a range of all activities done in the user's organizations. This 1040 * method only finds activities without mirrors. 1041 * 1042 * <p> 1043 * Useful when paginating results. Returns a maximum of <code>end - 1044 * start</code> instances. <code>start</code> and <code>end</code> are not 1045 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1046 * refers to the first result in the set. Setting both <code>start</code> 1047 * and <code>end</code> to {@link 1048 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 1049 * result set. 1050 * </p> 1051 * 1052 * @param userId the primary key of the user 1053 * @param start the lower bound of the range of results 1054 * @param end the upper bound of the range of results (not inclusive) 1055 * @return the range of matching activities 1056 * @throws SystemException if a system exception occurred 1057 */ 1058 public java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserOrganizationsActivities( 1059 long userId, int start, int end) 1060 throws com.liferay.portal.kernel.exception.SystemException { 1061 return _socialActivityLocalService.getUserOrganizationsActivities(userId, 1062 start, end); 1063 } 1064 1065 /** 1066 * Returns the number of activities done in the user's organizations. This 1067 * method only counts activities without mirrors. 1068 * 1069 * @param userId the primary key of the user 1070 * @return the number of matching activities 1071 * @throws SystemException if a system exception occurred 1072 */ 1073 public int getUserOrganizationsActivitiesCount(long userId) 1074 throws com.liferay.portal.kernel.exception.SystemException { 1075 return _socialActivityLocalService.getUserOrganizationsActivitiesCount(userId); 1076 } 1077 1078 /** 1079 * @deprecated Renamed to {@link #getWrappedService} 1080 */ 1081 public SocialActivityLocalService getWrappedSocialActivityLocalService() { 1082 return _socialActivityLocalService; 1083 } 1084 1085 /** 1086 * @deprecated Renamed to {@link #setWrappedService} 1087 */ 1088 public void setWrappedSocialActivityLocalService( 1089 SocialActivityLocalService socialActivityLocalService) { 1090 _socialActivityLocalService = socialActivityLocalService; 1091 } 1092 1093 public SocialActivityLocalService getWrappedService() { 1094 return _socialActivityLocalService; 1095 } 1096 1097 public void setWrappedService( 1098 SocialActivityLocalService socialActivityLocalService) { 1099 _socialActivityLocalService = socialActivityLocalService; 1100 } 1101 1102 private SocialActivityLocalService _socialActivityLocalService; 1103 }