001    /**
002     * Copyright (c) 2000-2010 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 com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    
019    /**
020     * @author Brian Wing Shun Chan
021     */
022    public class BlogsEntryFinderUtil {
023            public static int countByOrganizationId(long organizationId,
024                    java.util.Date displayDate, int status)
025                    throws com.liferay.portal.kernel.exception.SystemException {
026                    return getFinder()
027                                       .countByOrganizationId(organizationId, displayDate, status);
028            }
029    
030            public static int countByOrganizationIds(
031                    java.util.List<java.lang.Long> organizationIds,
032                    java.util.Date displayDate, int status)
033                    throws com.liferay.portal.kernel.exception.SystemException {
034                    return getFinder()
035                                       .countByOrganizationIds(organizationIds, displayDate, status);
036            }
037    
038            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByGroupIds(
039                    long companyId, long groupId, int status, int start, int end)
040                    throws com.liferay.portal.kernel.exception.SystemException {
041                    return getFinder().findByGroupIds(companyId, groupId, status, start, end);
042            }
043    
044            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByOrganizationId(
045                    long organizationId, java.util.Date displayDate, int status, int start,
046                    int end) throws com.liferay.portal.kernel.exception.SystemException {
047                    return getFinder()
048                                       .findByOrganizationId(organizationId, displayDate, status,
049                            start, end);
050            }
051    
052            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByOrganizationIds(
053                    java.util.List<java.lang.Long> organizationIds,
054                    java.util.Date displayDate, int status, int start, int end)
055                    throws com.liferay.portal.kernel.exception.SystemException {
056                    return getFinder()
057                                       .findByOrganizationIds(organizationIds, displayDate, status,
058                            start, end);
059            }
060    
061            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByNoAssets()
062                    throws com.liferay.portal.kernel.exception.SystemException {
063                    return getFinder().findByNoAssets();
064            }
065    
066            public static BlogsEntryFinder getFinder() {
067                    if (_finder == null) {
068                            _finder = (BlogsEntryFinder)PortalBeanLocatorUtil.locate(BlogsEntryFinder.class.getName());
069                    }
070    
071                    return _finder;
072            }
073    
074            public void setFinder(BlogsEntryFinder finder) {
075                    _finder = finder;
076            }
077    
078            private static BlogsEntryFinder _finder;
079    }