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