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