1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portlet.journal.service.persistence;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  
19  /**
20   * <a href="JournalFeedFinderUtil.java.html"><b><i>View Source</i></b></a>
21   *
22   * @author Brian Wing Shun Chan
23   */
24  public class JournalFeedFinderUtil {
25      public static int countByKeywords(long companyId, long groupId,
26          java.lang.String keywords) throws com.liferay.portal.SystemException {
27          return getFinder().countByKeywords(companyId, groupId, keywords);
28      }
29  
30      public static int countByC_G_F_N_D(long companyId, long groupId,
31          java.lang.String feedId, java.lang.String name,
32          java.lang.String description, boolean andOperator)
33          throws com.liferay.portal.SystemException {
34          return getFinder()
35                     .countByC_G_F_N_D(companyId, groupId, feedId, name,
36              description, andOperator);
37      }
38  
39      public static int countByC_G_F_N_D(long companyId, long groupId,
40          java.lang.String[] feedIds, java.lang.String[] names,
41          java.lang.String[] descriptions, boolean andOperator)
42          throws com.liferay.portal.SystemException {
43          return getFinder()
44                     .countByC_G_F_N_D(companyId, groupId, feedIds, names,
45              descriptions, andOperator);
46      }
47  
48      public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByKeywords(
49          long companyId, long groupId, java.lang.String keywords, int start,
50          int end, com.liferay.portal.kernel.util.OrderByComparator obc)
51          throws com.liferay.portal.SystemException {
52          return getFinder()
53                     .findByKeywords(companyId, groupId, keywords, start, end, obc);
54      }
55  
56      public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByC_G_F_N_D(
57          long companyId, long groupId, java.lang.String feedId,
58          java.lang.String name, java.lang.String description,
59          boolean andOperator, int start, int end,
60          com.liferay.portal.kernel.util.OrderByComparator obc)
61          throws com.liferay.portal.SystemException {
62          return getFinder()
63                     .findByC_G_F_N_D(companyId, groupId, feedId, name,
64              description, andOperator, start, end, obc);
65      }
66  
67      public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByC_G_F_N_D(
68          long companyId, long groupId, java.lang.String[] feedIds,
69          java.lang.String[] names, java.lang.String[] descriptions,
70          boolean andOperator, int start, int end,
71          com.liferay.portal.kernel.util.OrderByComparator obc)
72          throws com.liferay.portal.SystemException {
73          return getFinder()
74                     .findByC_G_F_N_D(companyId, groupId, feedIds, names,
75              descriptions, andOperator, start, end, obc);
76      }
77  
78      public static JournalFeedFinder getFinder() {
79          if (_finder == null) {
80              _finder = (JournalFeedFinder)PortalBeanLocatorUtil.locate(JournalFeedFinder.class.getName());
81          }
82  
83          return _finder;
84      }
85  
86      public void setFinder(JournalFeedFinder finder) {
87          _finder = finder;
88      }
89  
90      private static JournalFeedFinder _finder;
91  }