1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
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.SystemException;
25  
26      public int countByGroupUsers(long groupId)
27          throws com.liferay.portal.SystemException;
28  
29      public int countByOrganizationId(long organizationId)
30          throws com.liferay.portal.SystemException;
31  
32      public int countByOrganizationUsers(long organizationId)
33          throws com.liferay.portal.SystemException;
34  
35      public int countByRelation(long userId)
36          throws com.liferay.portal.SystemException;
37  
38      public int countByRelationType(long userId, int type)
39          throws com.liferay.portal.SystemException;
40  
41      public int countByUserGroups(long userId)
42          throws com.liferay.portal.SystemException;
43  
44      public int countByUserGroupsAndOrganizations(long userId)
45          throws com.liferay.portal.SystemException;
46  
47      public int countByUserOrganizations(long userId)
48          throws com.liferay.portal.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.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.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.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.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.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.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.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.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.SystemException;
85  }