1   /**
2    * Copyright (c) 2000-2009 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   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portlet.journal.service.persistence;
21  
22  /**
23   * <a href="JournalArticleFinder.java.html"><b><i>View Source</i></b></a>
24   *
25   * @author Brian Wing Shun Chan
26   *
27   */
28  public interface JournalArticleFinder {
29      public int countByKeywords(long companyId, long groupId,
30          java.lang.String keywords, java.lang.Double version,
31          java.lang.String type, java.lang.String structureId,
32          java.lang.String templateId, java.util.Date displayDateGT,
33          java.util.Date displayDateLT, java.lang.Boolean approved,
34          java.lang.Boolean expired, java.util.Date reviewDate)
35          throws com.liferay.portal.SystemException;
36  
37      public int countByC_G_A_V_T_D_C_T_S_T_D_A_E_R(long companyId, long groupId,
38          java.lang.String articleId, java.lang.Double version,
39          java.lang.String title, java.lang.String description,
40          java.lang.String content, java.lang.String type,
41          java.lang.String structureId, java.lang.String templateId,
42          java.util.Date displayDateGT, java.util.Date displayDateLT,
43          java.lang.Boolean approved, java.lang.Boolean expired,
44          java.util.Date reviewDate, boolean andOperator)
45          throws com.liferay.portal.SystemException;
46  
47      public int countByC_G_A_V_T_D_C_T_S_T_D_A_E_R(long companyId, long groupId,
48          java.lang.String articleId, java.lang.Double version,
49          java.lang.String title, java.lang.String description,
50          java.lang.String content, java.lang.String type,
51          java.lang.String[] structureIds, java.lang.String[] templateIds,
52          java.util.Date displayDateGT, java.util.Date displayDateLT,
53          java.lang.Boolean approved, java.lang.Boolean expired,
54          java.util.Date reviewDate, boolean andOperator)
55          throws com.liferay.portal.SystemException;
56  
57      public int countByC_G_A_V_T_D_C_T_S_T_D_A_E_R(long companyId, long groupId,
58          java.lang.String[] articleIds, java.lang.Double version,
59          java.lang.String[] titles, java.lang.String[] descriptions,
60          java.lang.String[] contents, java.lang.String type,
61          java.lang.String[] structureIds, java.lang.String[] templateIds,
62          java.util.Date displayDateGT, java.util.Date displayDateLT,
63          java.lang.Boolean approved, java.lang.Boolean expired,
64          java.util.Date reviewDate, boolean andOperator)
65          throws com.liferay.portal.SystemException;
66  
67      public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByExpirationDate(
68          java.lang.Boolean expired, java.util.Date expirationDateLT,
69          java.util.Date expirationDateGT)
70          throws com.liferay.portal.SystemException;
71  
72      public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByKeywords(
73          long companyId, long groupId, java.lang.String keywords,
74          java.lang.Double version, java.lang.String type,
75          java.lang.String structureId, java.lang.String templateId,
76          java.util.Date displayDateGT, java.util.Date displayDateLT,
77          java.lang.Boolean approved, java.lang.Boolean expired,
78          java.util.Date reviewDate, int start, int end,
79          com.liferay.portal.kernel.util.OrderByComparator obc)
80          throws com.liferay.portal.SystemException;
81  
82      public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByReviewDate(
83          java.util.Date reviewDateLT, java.util.Date reviewDateGT)
84          throws com.liferay.portal.SystemException;
85  
86      public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByC_G_A_V_T_D_C_T_S_T_D_A_E_R(
87          long companyId, long groupId, java.lang.String articleId,
88          java.lang.Double version, java.lang.String title,
89          java.lang.String description, java.lang.String content,
90          java.lang.String type, java.lang.String structureId,
91          java.lang.String templateId, java.util.Date displayDateGT,
92          java.util.Date displayDateLT, java.lang.Boolean approved,
93          java.lang.Boolean expired, java.util.Date reviewDate,
94          boolean andOperator, int start, int end,
95          com.liferay.portal.kernel.util.OrderByComparator obc)
96          throws com.liferay.portal.SystemException;
97  
98      public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByC_G_A_V_T_D_C_T_S_T_D_A_E_R(
99          long companyId, long groupId, java.lang.String articleId,
100         java.lang.Double version, java.lang.String title,
101         java.lang.String description, java.lang.String content,
102         java.lang.String type, java.lang.String[] structureIds,
103         java.lang.String[] templateIds, java.util.Date displayDateGT,
104         java.util.Date displayDateLT, java.lang.Boolean approved,
105         java.lang.Boolean expired, java.util.Date reviewDate,
106         boolean andOperator, int start, int end,
107         com.liferay.portal.kernel.util.OrderByComparator obc)
108         throws com.liferay.portal.SystemException;
109 
110     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByC_G_A_V_T_D_C_T_S_T_D_A_E_R(
111         long companyId, long groupId, java.lang.String[] articleIds,
112         java.lang.Double version, java.lang.String[] titles,
113         java.lang.String[] descriptions, java.lang.String[] contents,
114         java.lang.String type, java.lang.String[] structureIds,
115         java.lang.String[] templateIds, java.util.Date displayDateGT,
116         java.util.Date displayDateLT, java.lang.Boolean approved,
117         java.lang.Boolean expired, java.util.Date reviewDate,
118         boolean andOperator, int start, int end,
119         com.liferay.portal.kernel.util.OrderByComparator obc)
120         throws com.liferay.portal.SystemException;
121 }