1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.social.service.persistence;
16  
17  /**
18   * <a href="SocialActivityFinder.java.html"><b><i>View Source</i></b></a>
19   *
20   * @author Brian Wing Shun Chan
21   */
22  public interface SocialActivityFinder {
23      public int countByGroupId(long groupId)
24          throws com.liferay.portal.kernel.exception.SystemException;
25  
26      public int countByGroupUsers(long groupId)
27          throws com.liferay.portal.kernel.exception.SystemException;
28  
29      public int countByOrganizationId(long organizationId)
30          throws com.liferay.portal.kernel.exception.SystemException;
31  
32      public int countByOrganizationUsers(long organizationId)
33          throws com.liferay.portal.kernel.exception.SystemException;
34  
35      public int countByRelation(long userId)
36          throws com.liferay.portal.kernel.exception.SystemException;
37  
38      public int countByRelationType(long userId, int type)
39          throws com.liferay.portal.kernel.exception.SystemException;
40  
41      public int countByUserGroups(long userId)
42          throws com.liferay.portal.kernel.exception.SystemException;
43  
44      public int countByUserGroupsAndOrganizations(long userId)
45          throws com.liferay.portal.kernel.exception.SystemException;
46  
47      public int countByUserOrganizations(long userId)
48          throws com.liferay.portal.kernel.exception.SystemException;
49  
50      public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
51          long groupId, int start, int end)
52          throws com.liferay.portal.kernel.exception.SystemException;
53  
54      public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupUsers(
55          long groupId, int start, int end)
56          throws com.liferay.portal.kernel.exception.SystemException;
57  
58      public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByOrganizationId(
59          long organizationId, int start, int end)
60          throws com.liferay.portal.kernel.exception.SystemException;
61  
62      public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByOrganizationUsers(
63          long organizationId, int start, int end)
64          throws com.liferay.portal.kernel.exception.SystemException;
65  
66      public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByRelation(
67          long userId, int start, int end)
68          throws com.liferay.portal.kernel.exception.SystemException;
69  
70      public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByRelationType(
71          long userId, int type, int start, int end)
72          throws com.liferay.portal.kernel.exception.SystemException;
73  
74      public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserGroups(
75          long userId, int start, int end)
76          throws com.liferay.portal.kernel.exception.SystemException;
77  
78      public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserGroupsAndOrganizations(
79          long userId, int start, int end)
80          throws com.liferay.portal.kernel.exception.SystemException;
81  
82      public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserOrganizations(
83          long userId, int start, int end)
84          throws com.liferay.portal.kernel.exception.SystemException;
85  }