1   /**
2    * Copyright (c) 2000-2009 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   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portlet.social.service.persistence;
21  
22  /**
23   * <a href="SocialActivityFinder.java.html"><b><i>View Source</i></b></a>
24   *
25   * @author Brian Wing Shun Chan
26   *
27   */
28  public interface SocialActivityFinder {
29      public int countByGroupId(long groupId)
30          throws com.liferay.portal.SystemException;
31  
32      public int countByGroupUsers(long groupId)
33          throws com.liferay.portal.SystemException;
34  
35      public int countByOrganizationId(long organizationId)
36          throws com.liferay.portal.SystemException;
37  
38      public int countByOrganizationUsers(long organizationId)
39          throws com.liferay.portal.SystemException;
40  
41      public int countByRelation(long userId)
42          throws com.liferay.portal.SystemException;
43  
44      public int countByRelationType(long userId, int type)
45          throws com.liferay.portal.SystemException;
46  
47      public int countByUserGroups(long userId)
48          throws com.liferay.portal.SystemException;
49  
50      public int countByUserGroupsAndOrganizations(long userId)
51          throws com.liferay.portal.SystemException;
52  
53      public int countByUserOrganizations(long userId)
54          throws com.liferay.portal.SystemException;
55  
56      public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
57          long groupId, int start, int end)
58          throws com.liferay.portal.SystemException;
59  
60      public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupUsers(
61          long groupId, int start, int end)
62          throws com.liferay.portal.SystemException;
63  
64      public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByOrganizationId(
65          long organizationId, int start, int end)
66          throws com.liferay.portal.SystemException;
67  
68      public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByOrganizationUsers(
69          long organizationId, int start, int end)
70          throws com.liferay.portal.SystemException;
71  
72      public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByRelation(
73          long userId, int start, int end)
74          throws com.liferay.portal.SystemException;
75  
76      public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByRelationType(
77          long userId, int type, int start, int end)
78          throws com.liferay.portal.SystemException;
79  
80      public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserGroups(
81          long userId, int start, int end)
82          throws com.liferay.portal.SystemException;
83  
84      public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserGroupsAndOrganizations(
85          long userId, int start, int end)
86          throws com.liferay.portal.SystemException;
87  
88      public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserOrganizations(
89          long userId, int start, int end)
90          throws com.liferay.portal.SystemException;
91  }