001    /**
002     * Copyright (c) 2000-present 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.persistence;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    /**
020     * @author Brian Wing Shun Chan
021     * @generated
022     */
023    @ProviderType
024    public interface SocialActivityFinder {
025            public int countByGroupId(long groupId);
026    
027            public int countByGroupUsers(long groupId);
028    
029            public int countByOrganizationId(long organizationId);
030    
031            public int countByOrganizationUsers(long organizationId);
032    
033            public int countByRelation(long userId);
034    
035            public int countByRelationType(long userId, int type);
036    
037            public int countByUserGroups(long userId);
038    
039            public int countByUserGroupsAndOrganizations(long userId);
040    
041            public int countByUserOrganizations(long userId);
042    
043            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
044                    long groupId, int start, int end);
045    
046            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupUsers(
047                    long groupId, int start, int end);
048    
049            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByOrganizationId(
050                    long organizationId, int start, int end);
051    
052            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByOrganizationUsers(
053                    long organizationId, int start, int end);
054    
055            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByRelation(
056                    long userId, int start, int end);
057    
058            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByRelationType(
059                    long userId, int type, int start, int end);
060    
061            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserGroups(
062                    long userId, int start, int end);
063    
064            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserGroupsAndOrganizations(
065                    long userId, int start, int end);
066    
067            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserOrganizations(
068                    long userId, int start, int end);
069    }