1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.blogs.service.persistence;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  
19  /**
20   * <a href="BlogsEntryFinderUtil.java.html"><b><i>View Source</i></b></a>
21   *
22   * @author Brian Wing Shun Chan
23   */
24  public class BlogsEntryFinderUtil {
25      public static int countByOrganizationId(long organizationId,
26          java.util.Date displayDate, int status)
27          throws com.liferay.portal.kernel.exception.SystemException {
28          return getFinder()
29                     .countByOrganizationId(organizationId, displayDate, status);
30      }
31  
32      public static int countByOrganizationIds(
33          java.util.List<java.lang.Long> organizationIds,
34          java.util.Date displayDate, int status)
35          throws com.liferay.portal.kernel.exception.SystemException {
36          return getFinder()
37                     .countByOrganizationIds(organizationIds, displayDate, status);
38      }
39  
40      public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByGroupIds(
41          long companyId, long groupId, int status, int start, int end)
42          throws com.liferay.portal.kernel.exception.SystemException {
43          return getFinder().findByGroupIds(companyId, groupId, status, start, end);
44      }
45  
46      public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByOrganizationId(
47          long organizationId, java.util.Date displayDate, int status, int start,
48          int end) throws com.liferay.portal.kernel.exception.SystemException {
49          return getFinder()
50                     .findByOrganizationId(organizationId, displayDate, status,
51              start, end);
52      }
53  
54      public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByOrganizationIds(
55          java.util.List<java.lang.Long> organizationIds,
56          java.util.Date displayDate, int status, int start, int end)
57          throws com.liferay.portal.kernel.exception.SystemException {
58          return getFinder()
59                     .findByOrganizationIds(organizationIds, displayDate, status,
60              start, end);
61      }
62  
63      public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByNoAssets()
64          throws com.liferay.portal.kernel.exception.SystemException {
65          return getFinder().findByNoAssets();
66      }
67  
68      public static BlogsEntryFinder getFinder() {
69          if (_finder == null) {
70              _finder = (BlogsEntryFinder)PortalBeanLocatorUtil.locate(BlogsEntryFinder.class.getName());
71          }
72  
73          return _finder;
74      }
75  
76      public void setFinder(BlogsEntryFinder finder) {
77          _finder = finder;
78      }
79  
80      private static BlogsEntryFinder _finder;
81  }