1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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  /**
26   * <a href="JournalTemplateFinderUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public class JournalTemplateFinderUtil {
32      public static int countByKeywords(long companyId, long groupId,
33          java.lang.String keywords, java.lang.String structureId,
34          java.lang.String structureIdComparator)
35          throws com.liferay.portal.SystemException {
36          return getFinder().countByKeywords(companyId, groupId, keywords,
37              structureId, structureIdComparator);
38      }
39  
40      public static int countByC_G_T_S_N_D(long companyId, long groupId,
41          java.lang.String templateId, java.lang.String structureId,
42          java.lang.String structureIdComparator, java.lang.String name,
43          java.lang.String description, boolean andOperator)
44          throws com.liferay.portal.SystemException {
45          return getFinder().countByC_G_T_S_N_D(companyId, groupId, templateId,
46              structureId, structureIdComparator, name, description, andOperator);
47      }
48  
49      public static int countByC_G_T_S_N_D(long companyId, long groupId,
50          java.lang.String[] templateIds, java.lang.String structureId,
51          java.lang.String structureIdComparator, java.lang.String[] names,
52          java.lang.String[] descriptions, boolean andOperator)
53          throws com.liferay.portal.SystemException {
54          return getFinder().countByC_G_T_S_N_D(companyId, groupId, templateIds,
55              structureId, structureIdComparator, names, descriptions, andOperator);
56      }
57  
58      public static java.util.List findByKeywords(long companyId, long groupId,
59          java.lang.String keywords, java.lang.String structureId,
60          java.lang.String structureIdComparator, int begin, int end,
61          com.liferay.portal.kernel.util.OrderByComparator obc)
62          throws com.liferay.portal.SystemException {
63          return getFinder().findByKeywords(companyId, groupId, keywords,
64              structureId, structureIdComparator, begin, end, obc);
65      }
66  
67      public static java.util.List findByC_G_T_S_N_D(long companyId,
68          long groupId, java.lang.String templateId,
69          java.lang.String structureId, java.lang.String structureIdComparator,
70          java.lang.String name, java.lang.String description,
71          boolean andOperator, int begin, int end,
72          com.liferay.portal.kernel.util.OrderByComparator obc)
73          throws com.liferay.portal.SystemException {
74          return getFinder().findByC_G_T_S_N_D(companyId, groupId, templateId,
75              structureId, structureIdComparator, name, description, andOperator,
76              begin, end, obc);
77      }
78  
79      public static java.util.List findByC_G_T_S_N_D(long companyId,
80          long groupId, java.lang.String[] templateIds,
81          java.lang.String structureId, java.lang.String structureIdComparator,
82          java.lang.String[] names, java.lang.String[] descriptions,
83          boolean andOperator, int begin, int end,
84          com.liferay.portal.kernel.util.OrderByComparator obc)
85          throws com.liferay.portal.SystemException {
86          return getFinder().findByC_G_T_S_N_D(companyId, groupId, templateIds,
87              structureId, structureIdComparator, names, descriptions,
88              andOperator, begin, end, obc);
89      }
90  
91      public static JournalTemplateFinder getFinder() {
92          return _getUtil()._finder;
93      }
94  
95      public void setFinder(JournalTemplateFinder finder) {
96          _finder = finder;
97      }
98  
99      private static JournalTemplateFinderUtil _getUtil() {
100         if (_util == null) {
101             _util = (JournalTemplateFinderUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
102         }
103 
104         return _util;
105     }
106 
107     private static final String _UTIL = JournalTemplateFinderUtil.class.getName();
108     private static JournalTemplateFinderUtil _util;
109     private JournalTemplateFinder _finder;
110 }