1   /**
2    * Copyright (c) 2000-2009 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 start, 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 com.liferay.portlet.journal.model.JournalArticle findByR_D(
90          long resourcePrimKey, java.util.Date displayDate)
91          throws com.liferay.portal.SystemException,
92              com.liferay.portlet.journal.NoSuchArticleException;
93  
94      public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByC_G_A_V_T_D_C_T_S_T_D_A_E_R(
95          long companyId, long groupId, java.lang.String articleId,
96          java.lang.Double version, java.lang.String title,
97          java.lang.String description, java.lang.String content,
98          java.lang.String type, java.lang.String structureId,
99          java.lang.String templateId, java.util.Date displayDateGT,
100         java.util.Date displayDateLT, java.lang.Boolean approved,
101         java.lang.Boolean expired, java.util.Date reviewDate,
102         boolean andOperator, int start, int end,
103         com.liferay.portal.kernel.util.OrderByComparator obc)
104         throws com.liferay.portal.SystemException;
105 
106     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByC_G_A_V_T_D_C_T_S_T_D_A_E_R(
107         long companyId, long groupId, java.lang.String articleId,
108         java.lang.Double version, java.lang.String title,
109         java.lang.String description, java.lang.String content,
110         java.lang.String type, java.lang.String[] structureIds,
111         java.lang.String[] templateIds, java.util.Date displayDateGT,
112         java.util.Date displayDateLT, java.lang.Boolean approved,
113         java.lang.Boolean expired, java.util.Date reviewDate,
114         boolean andOperator, int start, int end,
115         com.liferay.portal.kernel.util.OrderByComparator obc)
116         throws com.liferay.portal.SystemException;
117 
118     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByC_G_A_V_T_D_C_T_S_T_D_A_E_R(
119         long companyId, long groupId, java.lang.String[] articleIds,
120         java.lang.Double version, java.lang.String[] titles,
121         java.lang.String[] descriptions, java.lang.String[] contents,
122         java.lang.String type, java.lang.String[] structureIds,
123         java.lang.String[] templateIds, java.util.Date displayDateGT,
124         java.util.Date displayDateLT, java.lang.Boolean approved,
125         java.lang.Boolean expired, java.util.Date reviewDate,
126         boolean andOperator, int start, int end,
127         com.liferay.portal.kernel.util.OrderByComparator obc)
128         throws com.liferay.portal.SystemException;
129 }