1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights 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  public interface JournalArticleFinder {
31      public int countByKeywords(long companyId, long groupId,
32          java.lang.String keywords, java.lang.Double version,
33          java.lang.String type, java.lang.String structureId,
34          java.lang.String templateId, java.util.Date displayDateGT,
35          java.util.Date displayDateLT, java.lang.Boolean approved,
36          java.lang.Boolean expired, java.util.Date reviewDate)
37          throws com.liferay.portal.SystemException;
38  
39      public int countByC_G_A_V_T_D_C_T_S_T_D_A_E_R(long companyId, long groupId,
40          java.lang.String articleId, java.lang.Double version,
41          java.lang.String title, java.lang.String description,
42          java.lang.String content, java.lang.String type,
43          java.lang.String structureId, java.lang.String templateId,
44          java.util.Date displayDateGT, java.util.Date displayDateLT,
45          java.lang.Boolean approved, java.lang.Boolean expired,
46          java.util.Date reviewDate, boolean andOperator)
47          throws com.liferay.portal.SystemException;
48  
49      public int countByC_G_A_V_T_D_C_T_S_T_D_A_E_R(long companyId, long groupId,
50          java.lang.String articleId, java.lang.Double version,
51          java.lang.String title, java.lang.String description,
52          java.lang.String content, java.lang.String type,
53          java.lang.String[] structureIds, java.lang.String[] templateIds,
54          java.util.Date displayDateGT, java.util.Date displayDateLT,
55          java.lang.Boolean approved, java.lang.Boolean expired,
56          java.util.Date reviewDate, boolean andOperator)
57          throws com.liferay.portal.SystemException;
58  
59      public int countByC_G_A_V_T_D_C_T_S_T_D_A_E_R(long companyId, long groupId,
60          java.lang.String[] articleIds, java.lang.Double version,
61          java.lang.String[] titles, java.lang.String[] descriptions,
62          java.lang.String[] contents, java.lang.String type,
63          java.lang.String[] structureIds, java.lang.String[] templateIds,
64          java.util.Date displayDateGT, java.util.Date displayDateLT,
65          java.lang.Boolean approved, java.lang.Boolean expired,
66          java.util.Date reviewDate, boolean andOperator)
67          throws com.liferay.portal.SystemException;
68  
69      public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByExpirationDate(
70          java.lang.Boolean expired, java.util.Date expirationDateLT,
71          java.util.Date expirationDateGT)
72          throws com.liferay.portal.SystemException;
73  
74      public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByKeywords(
75          long companyId, long groupId, java.lang.String keywords,
76          java.lang.Double version, java.lang.String type,
77          java.lang.String structureId, java.lang.String templateId,
78          java.util.Date displayDateGT, java.util.Date displayDateLT,
79          java.lang.Boolean approved, java.lang.Boolean expired,
80          java.util.Date reviewDate, int start, int end,
81          com.liferay.portal.kernel.util.OrderByComparator obc)
82          throws com.liferay.portal.SystemException;
83  
84      public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByReviewDate(
85          java.util.Date reviewDateLT, java.util.Date reviewDateGT)
86          throws com.liferay.portal.SystemException;
87  
88      public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByC_G_A_V_T_D_C_T_S_T_D_A_E_R(
89          long companyId, long groupId, java.lang.String articleId,
90          java.lang.Double version, java.lang.String title,
91          java.lang.String description, java.lang.String content,
92          java.lang.String type, java.lang.String structureId,
93          java.lang.String templateId, java.util.Date displayDateGT,
94          java.util.Date displayDateLT, java.lang.Boolean approved,
95          java.lang.Boolean expired, java.util.Date reviewDate,
96          boolean andOperator, int start, int end,
97          com.liferay.portal.kernel.util.OrderByComparator obc)
98          throws com.liferay.portal.SystemException;
99  
100     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByC_G_A_V_T_D_C_T_S_T_D_A_E_R(
101         long companyId, long groupId, java.lang.String articleId,
102         java.lang.Double version, java.lang.String title,
103         java.lang.String description, java.lang.String content,
104         java.lang.String type, java.lang.String[] structureIds,
105         java.lang.String[] templateIds, java.util.Date displayDateGT,
106         java.util.Date displayDateLT, java.lang.Boolean approved,
107         java.lang.Boolean expired, java.util.Date reviewDate,
108         boolean andOperator, int start, int end,
109         com.liferay.portal.kernel.util.OrderByComparator obc)
110         throws com.liferay.portal.SystemException;
111 
112     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByC_G_A_V_T_D_C_T_S_T_D_A_E_R(
113         long companyId, long groupId, java.lang.String[] articleIds,
114         java.lang.Double version, java.lang.String[] titles,
115         java.lang.String[] descriptions, java.lang.String[] contents,
116         java.lang.String type, java.lang.String[] structureIds,
117         java.lang.String[] templateIds, java.util.Date displayDateGT,
118         java.util.Date displayDateLT, java.lang.Boolean approved,
119         java.lang.Boolean expired, java.util.Date reviewDate,
120         boolean andOperator, int start, int end,
121         com.liferay.portal.kernel.util.OrderByComparator obc)
122         throws com.liferay.portal.SystemException;
123 }