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="JournalArticleFinder.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public interface JournalArticleFinder {
32      public 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  
40      public int countByC_G_A_V_T_D_C_T_S_T_D_A_E_R(long companyId, long groupId,
41          java.lang.String articleId, java.lang.Double version,
42          java.lang.String title, java.lang.String description,
43          java.lang.String content, java.lang.String type,
44          java.lang.String structureId, java.lang.String templateId,
45          java.util.Date displayDateGT, java.util.Date displayDateLT,
46          java.lang.Boolean approved, java.lang.Boolean expired,
47          java.util.Date reviewDate, boolean andOperator)
48          throws com.liferay.portal.SystemException;
49  
50      public int countByC_G_A_V_T_D_C_T_S_T_D_A_E_R(long companyId, long groupId,
51          java.lang.String articleId, java.lang.Double version,
52          java.lang.String title, java.lang.String description,
53          java.lang.String content, java.lang.String type,
54          java.lang.String[] structureIds, java.lang.String[] templateIds,
55          java.util.Date displayDateGT, java.util.Date displayDateLT,
56          java.lang.Boolean approved, java.lang.Boolean expired,
57          java.util.Date reviewDate, boolean andOperator)
58          throws com.liferay.portal.SystemException;
59  
60      public int countByC_G_A_V_T_D_C_T_S_T_D_A_E_R(long companyId, long groupId,
61          java.lang.String[] articleIds, java.lang.Double version,
62          java.lang.String[] titles, java.lang.String[] descriptions,
63          java.lang.String[] contents, java.lang.String type,
64          java.lang.String[] structureIds, java.lang.String[] templateIds,
65          java.util.Date displayDateGT, java.util.Date displayDateLT,
66          java.lang.Boolean approved, java.lang.Boolean expired,
67          java.util.Date reviewDate, boolean andOperator)
68          throws com.liferay.portal.SystemException;
69  
70      public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByExpirationDate(
71          java.lang.Boolean expired, java.util.Date expirationDateLT,
72          java.util.Date expirationDateGT)
73          throws com.liferay.portal.SystemException;
74  
75      public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByKeywords(
76          long companyId, long groupId, java.lang.String keywords,
77          java.lang.Double version, java.lang.String type,
78          java.lang.String structureId, java.lang.String templateId,
79          java.util.Date displayDateGT, java.util.Date displayDateLT,
80          java.lang.Boolean approved, java.lang.Boolean expired,
81          java.util.Date reviewDate, int begin, int end,
82          com.liferay.portal.kernel.util.OrderByComparator obc)
83          throws com.liferay.portal.SystemException;
84  
85      public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByReviewDate(
86          java.util.Date reviewDateLT, java.util.Date reviewDateGT)
87          throws com.liferay.portal.SystemException;
88  
89      public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByC_G_A_V_T_D_C_T_S_T_D_A_E_R(
90          long companyId, long groupId, java.lang.String articleId,
91          java.lang.Double version, java.lang.String title,
92          java.lang.String description, java.lang.String content,
93          java.lang.String type, java.lang.String structureId,
94          java.lang.String templateId, java.util.Date displayDateGT,
95          java.util.Date displayDateLT, java.lang.Boolean approved,
96          java.lang.Boolean expired, java.util.Date reviewDate,
97          boolean andOperator, int begin, int end,
98          com.liferay.portal.kernel.util.OrderByComparator obc)
99          throws com.liferay.portal.SystemException;
100 
101     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByC_G_A_V_T_D_C_T_S_T_D_A_E_R(
102         long companyId, long groupId, java.lang.String articleId,
103         java.lang.Double version, java.lang.String title,
104         java.lang.String description, java.lang.String content,
105         java.lang.String type, java.lang.String[] structureIds,
106         java.lang.String[] templateIds, java.util.Date displayDateGT,
107         java.util.Date displayDateLT, java.lang.Boolean approved,
108         java.lang.Boolean expired, java.util.Date reviewDate,
109         boolean andOperator, int begin, int end,
110         com.liferay.portal.kernel.util.OrderByComparator obc)
111         throws com.liferay.portal.SystemException;
112 
113     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByC_G_A_V_T_D_C_T_S_T_D_A_E_R(
114         long companyId, long groupId, java.lang.String[] articleIds,
115         java.lang.Double version, java.lang.String[] titles,
116         java.lang.String[] descriptions, java.lang.String[] contents,
117         java.lang.String type, java.lang.String[] structureIds,
118         java.lang.String[] templateIds, java.util.Date displayDateGT,
119         java.util.Date displayDateLT, java.lang.Boolean approved,
120         java.lang.Boolean expired, java.util.Date reviewDate,
121         boolean andOperator, int begin, int end,
122         com.liferay.portal.kernel.util.OrderByComparator obc)
123         throws com.liferay.portal.SystemException;
124 }