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.blogs.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 BlogsStatsUserFinderUtil {
028            public static int countByOrganizationId(long organizationId) {
029                    return getFinder().countByOrganizationId(organizationId);
030            }
031    
032            public static int countByOrganizationIds(
033                    java.util.List<java.lang.Long> organizationIds) {
034                    return getFinder().countByOrganizationIds(organizationIds);
035            }
036    
037            public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByGroupIds(
038                    long companyId, long groupId, int start, int end) {
039                    return getFinder().findByGroupIds(companyId, groupId, start, end);
040            }
041    
042            public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByOrganizationId(
043                    long organizationId, int start, int end,
044                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.blogs.model.BlogsStatsUser> obc) {
045                    return getFinder().findByOrganizationId(organizationId, start, end, obc);
046            }
047    
048            public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByOrganizationIds(
049                    java.util.List<java.lang.Long> organizationIds, int start, int end,
050                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.blogs.model.BlogsStatsUser> obc) {
051                    return getFinder()
052                                       .findByOrganizationIds(organizationIds, start, end, obc);
053            }
054    
055            public static BlogsStatsUserFinder getFinder() {
056                    if (_finder == null) {
057                            _finder = (BlogsStatsUserFinder)PortalBeanLocatorUtil.locate(BlogsStatsUserFinder.class.getName());
058    
059                            ReferenceRegistry.registerReference(BlogsStatsUserFinderUtil.class,
060                                    "_finder");
061                    }
062    
063                    return _finder;
064            }
065    
066            public void setFinder(BlogsStatsUserFinder finder) {
067                    _finder = finder;
068    
069                    ReferenceRegistry.registerReference(BlogsStatsUserFinderUtil.class,
070                            "_finder");
071            }
072    
073            private static BlogsStatsUserFinder _finder;
074    }