001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.blogs.service.persistence;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    
019    /**
020     * @author Brian Wing Shun Chan
021     */
022    public class BlogsStatsUserFinderUtil {
023            public static int countByOrganizationId(long organizationId)
024                    throws com.liferay.portal.kernel.exception.SystemException {
025                    return getFinder().countByOrganizationId(organizationId);
026            }
027    
028            public static int countByOrganizationIds(
029                    java.util.List<java.lang.Long> organizationIds)
030                    throws com.liferay.portal.kernel.exception.SystemException {
031                    return getFinder().countByOrganizationIds(organizationIds);
032            }
033    
034            public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByGroupIds(
035                    long companyId, long groupId, int start, int end)
036                    throws com.liferay.portal.kernel.exception.SystemException {
037                    return getFinder().findByGroupIds(companyId, groupId, start, end);
038            }
039    
040            public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByOrganizationId(
041                    long organizationId, int start, int end,
042                    com.liferay.portal.kernel.util.OrderByComparator obc)
043                    throws com.liferay.portal.kernel.exception.SystemException {
044                    return getFinder().findByOrganizationId(organizationId, start, end, obc);
045            }
046    
047            public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByOrganizationIds(
048                    java.util.List<java.lang.Long> organizationIds, int start, int end,
049                    com.liferay.portal.kernel.util.OrderByComparator obc)
050                    throws com.liferay.portal.kernel.exception.SystemException {
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    
060                    return _finder;
061            }
062    
063            public void setFinder(BlogsStatsUserFinder finder) {
064                    _finder = finder;
065            }
066    
067            private static BlogsStatsUserFinder _finder;
068    }