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 com.liferay.portlet.journal.model.JournalArticle findByR_D(
117         long resourcePrimKey, java.util.Date displayDate)
118         throws com.liferay.portal.SystemException,
119             com.liferay.portlet.journal.NoSuchArticleException {
120         return getFinder().findByR_D(resourcePrimKey, displayDate);
121     }
122 
123     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(
124         long companyId, long groupId, java.lang.String articleId,
125         java.lang.Double version, java.lang.String title,
126         java.lang.String description, java.lang.String content,
127         java.lang.String type, java.lang.String structureId,
128         java.lang.String templateId, java.util.Date displayDateGT,
129         java.util.Date displayDateLT, java.lang.Boolean approved,
130         java.lang.Boolean expired, java.util.Date reviewDate,
131         boolean andOperator, int start, int end,
132         com.liferay.portal.kernel.util.OrderByComparator obc)
133         throws com.liferay.portal.SystemException {
134         return getFinder()
135                    .findByC_G_A_V_T_D_C_T_S_T_D_A_E_R(companyId, groupId,
136             articleId, version, title, description, content, type, structureId,
137             templateId, displayDateGT, displayDateLT, approved, expired,
138             reviewDate, andOperator, start, end, obc);
139     }
140 
141     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(
142         long companyId, long groupId, java.lang.String articleId,
143         java.lang.Double version, java.lang.String title,
144         java.lang.String description, java.lang.String content,
145         java.lang.String type, java.lang.String[] structureIds,
146         java.lang.String[] templateIds, java.util.Date displayDateGT,
147         java.util.Date displayDateLT, java.lang.Boolean approved,
148         java.lang.Boolean expired, java.util.Date reviewDate,
149         boolean andOperator, int start, int end,
150         com.liferay.portal.kernel.util.OrderByComparator obc)
151         throws com.liferay.portal.SystemException {
152         return getFinder()
153                    .findByC_G_A_V_T_D_C_T_S_T_D_A_E_R(companyId, groupId,
154             articleId, version, title, description, content, type,
155             structureIds, templateIds, displayDateGT, displayDateLT, approved,
156             expired, reviewDate, andOperator, start, end, obc);
157     }
158 
159     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(
160         long companyId, long groupId, java.lang.String[] articleIds,
161         java.lang.Double version, java.lang.String[] titles,
162         java.lang.String[] descriptions, java.lang.String[] contents,
163         java.lang.String type, java.lang.String[] structureIds,
164         java.lang.String[] templateIds, java.util.Date displayDateGT,
165         java.util.Date displayDateLT, java.lang.Boolean approved,
166         java.lang.Boolean expired, java.util.Date reviewDate,
167         boolean andOperator, int start, int end,
168         com.liferay.portal.kernel.util.OrderByComparator obc)
169         throws com.liferay.portal.SystemException {
170         return getFinder()
171                    .findByC_G_A_V_T_D_C_T_S_T_D_A_E_R(companyId, groupId,
172             articleIds, version, titles, descriptions, contents, type,
173             structureIds, templateIds, displayDateGT, displayDateLT, approved,
174             expired, reviewDate, andOperator, start, end, obc);
175     }
176 
177     public static JournalArticleFinder getFinder() {
178         if (_finder == null) {
179             _finder = (JournalArticleFinder)PortalBeanLocatorUtil.locate(JournalArticleFinder.class.getName());
180         }
181 
182         return _finder;
183     }
184 
185     public void setFinder(JournalArticleFinder finder) {
186         _finder = finder;
187     }
188 
189     private static JournalArticleFinder _finder;
190 }