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    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * @author Brian Wing Shun Chan
024     * @generated
025     */
026    @ProviderType
027    public class SocialActivityFinderUtil {
028            public static int countByGroupId(long groupId) {
029                    return getFinder().countByGroupId(groupId);
030            }
031    
032            public static int countByGroupUsers(long groupId) {
033                    return getFinder().countByGroupUsers(groupId);
034            }
035    
036            public static int countByOrganizationId(long organizationId) {
037                    return getFinder().countByOrganizationId(organizationId);
038            }
039    
040            public static int countByOrganizationUsers(long organizationId) {
041                    return getFinder().countByOrganizationUsers(organizationId);
042            }
043    
044            public static int countByRelation(long userId) {
045                    return getFinder().countByRelation(userId);
046            }
047    
048            public static int countByRelationType(long userId, int type) {
049                    return getFinder().countByRelationType(userId, type);
050            }
051    
052            public static int countByUserGroups(long userId) {
053                    return getFinder().countByUserGroups(userId);
054            }
055    
056            public static int countByUserGroupsAndOrganizations(long userId) {
057                    return getFinder().countByUserGroupsAndOrganizations(userId);
058            }
059    
060            public static int countByUserOrganizations(long userId) {
061                    return getFinder().countByUserOrganizations(userId);
062            }
063    
064            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
065                    long groupId, int start, int end) {
066                    return getFinder().findByGroupId(groupId, start, end);
067            }
068    
069            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupUsers(
070                    long groupId, int start, int end) {
071                    return getFinder().findByGroupUsers(groupId, start, end);
072            }
073    
074            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByOrganizationId(
075                    long organizationId, int start, int end) {
076                    return getFinder().findByOrganizationId(organizationId, start, end);
077            }
078    
079            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByOrganizationUsers(
080                    long organizationId, int start, int end) {
081                    return getFinder().findByOrganizationUsers(organizationId, start, end);
082            }
083    
084            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByRelation(
085                    long userId, int start, int end) {
086                    return getFinder().findByRelation(userId, start, end);
087            }
088    
089            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByRelationType(
090                    long userId, int type, int start, int end) {
091                    return getFinder().findByRelationType(userId, type, start, end);
092            }
093    
094            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserGroups(
095                    long userId, int start, int end) {
096                    return getFinder().findByUserGroups(userId, start, end);
097            }
098    
099            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserGroupsAndOrganizations(
100                    long userId, int start, int end) {
101                    return getFinder().findByUserGroupsAndOrganizations(userId, start, end);
102            }
103    
104            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserOrganizations(
105                    long userId, int start, int end) {
106                    return getFinder().findByUserOrganizations(userId, start, end);
107            }
108    
109            public static SocialActivityFinder getFinder() {
110                    if (_finder == null) {
111                            _finder = (SocialActivityFinder)PortalBeanLocatorUtil.locate(SocialActivityFinder.class.getName());
112    
113                            ReferenceRegistry.registerReference(SocialActivityFinderUtil.class,
114                                    "_finder");
115                    }
116    
117                    return _finder;
118            }
119    
120            public void setFinder(SocialActivityFinder finder) {
121                    _finder = finder;
122    
123                    ReferenceRegistry.registerReference(SocialActivityFinderUtil.class,
124                            "_finder");
125            }
126    
127            private static SocialActivityFinder _finder;
128    }