1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.social.service.persistence;
24  
25  /**
26   * <a href="SocialActivityFinder.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   */
30  public interface SocialActivityFinder {
31      public int countByGroupId(long groupId)
32          throws com.liferay.portal.SystemException;
33  
34      public int countByGroupUsers(long groupId)
35          throws com.liferay.portal.SystemException;
36  
37      public int countByOrganizationId(long organizationId)
38          throws com.liferay.portal.SystemException;
39  
40      public int countByOrganizationUsers(long organizationId)
41          throws com.liferay.portal.SystemException;
42  
43      public int countByRelation(long userId)
44          throws com.liferay.portal.SystemException;
45  
46      public int countByRelationType(long userId, int type)
47          throws com.liferay.portal.SystemException;
48  
49      public int countByUserGroups(long userId)
50          throws com.liferay.portal.SystemException;
51  
52      public int countByUserGroupsAndOrganizations(long userId)
53          throws com.liferay.portal.SystemException;
54  
55      public int countByUserOrganizations(long userId)
56          throws com.liferay.portal.SystemException;
57  
58      public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
59          long groupId, int start, int end)
60          throws com.liferay.portal.SystemException;
61  
62      public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupUsers(
63          long groupId, int start, int end)
64          throws com.liferay.portal.SystemException;
65  
66      public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByOrganizationId(
67          long organizationId, int start, int end)
68          throws com.liferay.portal.SystemException;
69  
70      public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByOrganizationUsers(
71          long organizationId, int start, int end)
72          throws com.liferay.portal.SystemException;
73  
74      public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByRelation(
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> findByRelationType(
79          long userId, int type, int start, int end)
80          throws com.liferay.portal.SystemException;
81  
82      public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserGroups(
83          long userId, int start, int end)
84          throws com.liferay.portal.SystemException;
85  
86      public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserGroupsAndOrganizations(
87          long userId, int start, int end)
88          throws com.liferay.portal.SystemException;
89  
90      public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserOrganizations(
91          long userId, int start, int end)
92          throws com.liferay.portal.SystemException;
93  }