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.wiki.service.persistence;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  
19  /**
20   * <a href="WikiPageFinderUtil.java.html"><b><i>View Source</i></b></a>
21   *
22   * @author Brian Wing Shun Chan
23   */
24  public class WikiPageFinderUtil {
25      public static int countByCreateDate(long nodeId, java.util.Date createDate,
26          boolean before) throws com.liferay.portal.SystemException {
27          return getFinder().countByCreateDate(nodeId, createDate, before);
28      }
29  
30      public static int countByCreateDate(long nodeId,
31          java.sql.Timestamp createDate, boolean before)
32          throws com.liferay.portal.SystemException {
33          return getFinder().countByCreateDate(nodeId, createDate, before);
34      }
35  
36      public static com.liferay.portlet.wiki.model.WikiPage findByResourcePrimKey(
37          long resourcePrimKey)
38          throws com.liferay.portal.SystemException,
39              com.liferay.portlet.wiki.NoSuchPageException {
40          return getFinder().findByResourcePrimKey(resourcePrimKey);
41      }
42  
43      public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByCreateDate(
44          long nodeId, java.util.Date createDate, boolean before, int start,
45          int end) throws com.liferay.portal.SystemException {
46          return getFinder()
47                     .findByCreateDate(nodeId, createDate, before, start, end);
48      }
49  
50      public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByCreateDate(
51          long nodeId, java.sql.Timestamp createDate, boolean before, int start,
52          int end) throws com.liferay.portal.SystemException {
53          return getFinder()
54                     .findByCreateDate(nodeId, createDate, before, start, end);
55      }
56  
57      public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByNoAssets()
58          throws com.liferay.portal.SystemException {
59          return getFinder().findByNoAssets();
60      }
61  
62      public static WikiPageFinder getFinder() {
63          if (_finder == null) {
64              _finder = (WikiPageFinder)PortalBeanLocatorUtil.locate(WikiPageFinder.class.getName());
65          }
66  
67          return _finder;
68      }
69  
70      public void setFinder(WikiPageFinder finder) {
71          _finder = finder;
72      }
73  
74      private static WikiPageFinder _finder;
75  }