1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.journal.service.persistence;
24  
25  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
26  
27  /**
28   * <a href="JournalFeedFinderUtil.java.html"><b><i>View Source</i></b></a>
29   *
30   * @author Brian Wing Shun Chan
31   */
32  public class JournalFeedFinderUtil {
33      public static int countByKeywords(long companyId, long groupId,
34          java.lang.String keywords) throws com.liferay.portal.SystemException {
35          return getFinder().countByKeywords(companyId, groupId, keywords);
36      }
37  
38      public static int countByC_G_F_N_D(long companyId, long groupId,
39          java.lang.String feedId, java.lang.String name,
40          java.lang.String description, boolean andOperator)
41          throws com.liferay.portal.SystemException {
42          return getFinder()
43                     .countByC_G_F_N_D(companyId, groupId, feedId, name,
44              description, andOperator);
45      }
46  
47      public static int countByC_G_F_N_D(long companyId, long groupId,
48          java.lang.String[] feedIds, java.lang.String[] names,
49          java.lang.String[] descriptions, boolean andOperator)
50          throws com.liferay.portal.SystemException {
51          return getFinder()
52                     .countByC_G_F_N_D(companyId, groupId, feedIds, names,
53              descriptions, andOperator);
54      }
55  
56      public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByKeywords(
57          long companyId, long groupId, java.lang.String keywords, int start,
58          int end, com.liferay.portal.kernel.util.OrderByComparator obc)
59          throws com.liferay.portal.SystemException {
60          return getFinder()
61                     .findByKeywords(companyId, groupId, keywords, start, end, obc);
62      }
63  
64      public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByC_G_F_N_D(
65          long companyId, long groupId, java.lang.String feedId,
66          java.lang.String name, java.lang.String description,
67          boolean andOperator, int start, int end,
68          com.liferay.portal.kernel.util.OrderByComparator obc)
69          throws com.liferay.portal.SystemException {
70          return getFinder()
71                     .findByC_G_F_N_D(companyId, groupId, feedId, name,
72              description, andOperator, start, end, obc);
73      }
74  
75      public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByC_G_F_N_D(
76          long companyId, long groupId, java.lang.String[] feedIds,
77          java.lang.String[] names, java.lang.String[] descriptions,
78          boolean andOperator, int start, int end,
79          com.liferay.portal.kernel.util.OrderByComparator obc)
80          throws com.liferay.portal.SystemException {
81          return getFinder()
82                     .findByC_G_F_N_D(companyId, groupId, feedIds, names,
83              descriptions, andOperator, start, end, obc);
84      }
85  
86      public static JournalFeedFinder getFinder() {
87          if (_finder == null) {
88              _finder = (JournalFeedFinder)PortalBeanLocatorUtil.locate(JournalFeedFinder.class.getName());
89          }
90  
91          return _finder;
92      }
93  
94      public void setFinder(JournalFeedFinder finder) {
95          _finder = finder;
96      }
97  
98      private static JournalFeedFinder _finder;
99  }