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