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="JournalArticleFinderUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public class JournalArticleFinderUtil {
32      public static int countByKeywords(long companyId, long groupId,
33          java.lang.String keywords, java.lang.Double version,
34          java.lang.String type, java.lang.String structureId,
35          java.lang.String templateId, java.util.Date displayDateGT,
36          java.util.Date displayDateLT, java.lang.Boolean approved,
37          java.lang.Boolean expired, java.util.Date reviewDate)
38          throws com.liferay.portal.SystemException {
39          return getFinder().countByKeywords(companyId, groupId, keywords,
40              version, type, structureId, templateId, displayDateGT,
41              displayDateLT, approved, expired, reviewDate);
42      }
43  
44      public static int countByC_G_A_V_T_D_C_T_S_T_D_A_E_R(long companyId,
45          long groupId, java.lang.String articleId, java.lang.Double version,
46          java.lang.String title, java.lang.String description,
47          java.lang.String content, java.lang.String type,
48          java.lang.String structureId, java.lang.String templateId,
49          java.util.Date displayDateGT, java.util.Date displayDateLT,
50          java.lang.Boolean approved, java.lang.Boolean expired,
51          java.util.Date reviewDate, boolean andOperator)
52          throws com.liferay.portal.SystemException {
53          return getFinder().countByC_G_A_V_T_D_C_T_S_T_D_A_E_R(companyId,
54              groupId, articleId, version, title, description, content, type,
55              structureId, templateId, displayDateGT, displayDateLT, approved,
56              expired, reviewDate, andOperator);
57      }
58  
59      public static int countByC_G_A_V_T_D_C_T_S_T_D_A_E_R(long companyId,
60          long groupId, java.lang.String articleId, java.lang.Double version,
61          java.lang.String title, java.lang.String description,
62          java.lang.String content, java.lang.String type,
63          java.lang.String[] structureIds, java.lang.String[] templateIds,
64          java.util.Date displayDateGT, java.util.Date displayDateLT,
65          java.lang.Boolean approved, java.lang.Boolean expired,
66          java.util.Date reviewDate, boolean andOperator)
67          throws com.liferay.portal.SystemException {
68          return getFinder().countByC_G_A_V_T_D_C_T_S_T_D_A_E_R(companyId,
69              groupId, articleId, version, title, description, content, type,
70              structureIds, templateIds, displayDateGT, displayDateLT, approved,
71              expired, reviewDate, andOperator);
72      }
73  
74      public static int countByC_G_A_V_T_D_C_T_S_T_D_A_E_R(long companyId,
75          long groupId, java.lang.String[] articleIds, java.lang.Double version,
76          java.lang.String[] titles, java.lang.String[] descriptions,
77          java.lang.String[] contents, java.lang.String type,
78          java.lang.String[] structureIds, java.lang.String[] templateIds,
79          java.util.Date displayDateGT, java.util.Date displayDateLT,
80          java.lang.Boolean approved, java.lang.Boolean expired,
81          java.util.Date reviewDate, boolean andOperator)
82          throws com.liferay.portal.SystemException {
83          return getFinder().countByC_G_A_V_T_D_C_T_S_T_D_A_E_R(companyId,
84              groupId, articleIds, version, titles, descriptions, contents, type,
85              structureIds, templateIds, displayDateGT, displayDateLT, approved,
86              expired, reviewDate, andOperator);
87      }
88  
89      public static java.util.List findByExpirationDate(
90          java.lang.Boolean expired, java.util.Date expirationDateLT,
91          java.util.Date expirationDateGT)
92          throws com.liferay.portal.SystemException {
93          return getFinder().findByExpirationDate(expired, expirationDateLT,
94              expirationDateGT);
95      }
96  
97      public static java.util.List findByKeywords(long companyId, long groupId,
98          java.lang.String keywords, java.lang.Double version,
99          java.lang.String type, java.lang.String structureId,
100         java.lang.String templateId, java.util.Date displayDateGT,
101         java.util.Date displayDateLT, java.lang.Boolean approved,
102         java.lang.Boolean expired, java.util.Date reviewDate, int begin,
103         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
104         throws com.liferay.portal.SystemException {
105         return getFinder().findByKeywords(companyId, groupId, keywords,
106             version, type, structureId, templateId, displayDateGT,
107             displayDateLT, approved, expired, reviewDate, begin, end, obc);
108     }
109 
110     public static java.util.List findByReviewDate(java.util.Date reviewDateLT,
111         java.util.Date reviewDateGT) throws com.liferay.portal.SystemException {
112         return getFinder().findByReviewDate(reviewDateLT, reviewDateGT);
113     }
114 
115     public static java.util.List findByC_G_A_V_T_D_C_T_S_T_D_A_E_R(
116         long companyId, long groupId, java.lang.String articleId,
117         java.lang.Double version, java.lang.String title,
118         java.lang.String description, java.lang.String content,
119         java.lang.String type, java.lang.String structureId,
120         java.lang.String templateId, java.util.Date displayDateGT,
121         java.util.Date displayDateLT, java.lang.Boolean approved,
122         java.lang.Boolean expired, java.util.Date reviewDate,
123         boolean andOperator, int begin, int end,
124         com.liferay.portal.kernel.util.OrderByComparator obc)
125         throws com.liferay.portal.SystemException {
126         return getFinder().findByC_G_A_V_T_D_C_T_S_T_D_A_E_R(companyId,
127             groupId, articleId, version, title, description, content, type,
128             structureId, templateId, displayDateGT, displayDateLT, approved,
129             expired, reviewDate, andOperator, begin, end, obc);
130     }
131 
132     public static java.util.List findByC_G_A_V_T_D_C_T_S_T_D_A_E_R(
133         long companyId, long groupId, java.lang.String articleId,
134         java.lang.Double version, java.lang.String title,
135         java.lang.String description, java.lang.String content,
136         java.lang.String type, java.lang.String[] structureIds,
137         java.lang.String[] templateIds, java.util.Date displayDateGT,
138         java.util.Date displayDateLT, java.lang.Boolean approved,
139         java.lang.Boolean expired, java.util.Date reviewDate,
140         boolean andOperator, int begin, int end,
141         com.liferay.portal.kernel.util.OrderByComparator obc)
142         throws com.liferay.portal.SystemException {
143         return getFinder().findByC_G_A_V_T_D_C_T_S_T_D_A_E_R(companyId,
144             groupId, articleId, version, title, description, content, type,
145             structureIds, templateIds, displayDateGT, displayDateLT, approved,
146             expired, reviewDate, andOperator, begin, end, obc);
147     }
148 
149     public static java.util.List findByC_G_A_V_T_D_C_T_S_T_D_A_E_R(
150         long companyId, long groupId, java.lang.String[] articleIds,
151         java.lang.Double version, java.lang.String[] titles,
152         java.lang.String[] descriptions, java.lang.String[] contents,
153         java.lang.String type, java.lang.String[] structureIds,
154         java.lang.String[] templateIds, java.util.Date displayDateGT,
155         java.util.Date displayDateLT, java.lang.Boolean approved,
156         java.lang.Boolean expired, java.util.Date reviewDate,
157         boolean andOperator, int begin, int end,
158         com.liferay.portal.kernel.util.OrderByComparator obc)
159         throws com.liferay.portal.SystemException {
160         return getFinder().findByC_G_A_V_T_D_C_T_S_T_D_A_E_R(companyId,
161             groupId, articleIds, version, titles, descriptions, contents, type,
162             structureIds, templateIds, displayDateGT, displayDateLT, approved,
163             expired, reviewDate, andOperator, begin, end, obc);
164     }
165 
166     public static JournalArticleFinder getFinder() {
167         return _getUtil()._finder;
168     }
169 
170     public void setFinder(JournalArticleFinder finder) {
171         _finder = finder;
172     }
173 
174     private static JournalArticleFinderUtil _getUtil() {
175         if (_util == null) {
176             _util = (JournalArticleFinderUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
177         }
178 
179         return _util;
180     }
181 
182     private static final String _UTIL = JournalArticleFinderUtil.class.getName();
183     private static JournalArticleFinderUtil _util;
184     private JournalArticleFinder _finder;
185 }