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