001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.journal.service.persistence;
022:
023: /**
024: * <a href="JournalArticleFinderUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class JournalArticleFinderUtil {
030: public static int countByKeywords(long companyId, long groupId,
031: java.lang.String keywords, java.lang.Double version,
032: java.lang.String type, java.lang.String structureId,
033: java.lang.String templateId, java.util.Date displayDateGT,
034: java.util.Date displayDateLT, java.lang.Boolean approved,
035: java.lang.Boolean expired, java.util.Date reviewDate)
036: throws com.liferay.portal.SystemException {
037: return getFinder().countByKeywords(companyId, groupId,
038: keywords, version, type, structureId, templateId,
039: displayDateGT, displayDateLT, approved, expired,
040: reviewDate);
041: }
042:
043: public static int countByC_G_A_V_T_D_C_T_S_T_D_A_E_R(
044: long companyId, long groupId, java.lang.String articleId,
045: java.lang.Double version, java.lang.String title,
046: java.lang.String description, java.lang.String content,
047: java.lang.String type, java.lang.String structureId,
048: java.lang.String templateId, java.util.Date displayDateGT,
049: java.util.Date displayDateLT, java.lang.Boolean approved,
050: java.lang.Boolean expired, java.util.Date reviewDate,
051: boolean andOperator)
052: throws com.liferay.portal.SystemException {
053: return getFinder().countByC_G_A_V_T_D_C_T_S_T_D_A_E_R(
054: companyId, groupId, articleId, version, title,
055: description, content, type, structureId, templateId,
056: displayDateGT, displayDateLT, approved, expired,
057: reviewDate, andOperator);
058: }
059:
060: public static int countByC_G_A_V_T_D_C_T_S_T_D_A_E_R(
061: long companyId, long groupId, java.lang.String articleId,
062: java.lang.Double version, java.lang.String title,
063: java.lang.String description, java.lang.String content,
064: java.lang.String type, java.lang.String[] structureIds,
065: java.lang.String[] templateIds,
066: java.util.Date displayDateGT, java.util.Date displayDateLT,
067: java.lang.Boolean approved, java.lang.Boolean expired,
068: java.util.Date reviewDate, boolean andOperator)
069: throws com.liferay.portal.SystemException {
070: return getFinder().countByC_G_A_V_T_D_C_T_S_T_D_A_E_R(
071: companyId, groupId, articleId, version, title,
072: description, content, type, structureIds, templateIds,
073: displayDateGT, displayDateLT, approved, expired,
074: reviewDate, andOperator);
075: }
076:
077: public static int countByC_G_A_V_T_D_C_T_S_T_D_A_E_R(
078: long companyId, long groupId,
079: java.lang.String[] articleIds, java.lang.Double version,
080: java.lang.String[] titles, java.lang.String[] descriptions,
081: java.lang.String[] contents, java.lang.String type,
082: java.lang.String[] structureIds,
083: java.lang.String[] templateIds,
084: java.util.Date displayDateGT, java.util.Date displayDateLT,
085: java.lang.Boolean approved, java.lang.Boolean expired,
086: java.util.Date reviewDate, boolean andOperator)
087: throws com.liferay.portal.SystemException {
088: return getFinder().countByC_G_A_V_T_D_C_T_S_T_D_A_E_R(
089: companyId, groupId, articleIds, version, titles,
090: descriptions, contents, type, structureIds,
091: templateIds, displayDateGT, displayDateLT, approved,
092: expired, reviewDate, andOperator);
093: }
094:
095: public static java.util.List findByExpirationDate(
096: java.lang.Boolean expired, java.util.Date expirationDateLT,
097: java.util.Date expirationDateGT)
098: throws com.liferay.portal.SystemException {
099: return getFinder().findByExpirationDate(expired,
100: expirationDateLT, expirationDateGT);
101: }
102:
103: public static java.util.List findByKeywords(long companyId,
104: long groupId, java.lang.String keywords,
105: java.lang.Double version, java.lang.String type,
106: java.lang.String structureId, java.lang.String templateId,
107: java.util.Date displayDateGT, java.util.Date displayDateLT,
108: java.lang.Boolean approved, java.lang.Boolean expired,
109: java.util.Date reviewDate, int begin, int end,
110: com.liferay.portal.kernel.util.OrderByComparator obc)
111: throws com.liferay.portal.SystemException {
112: return getFinder().findByKeywords(companyId, groupId, keywords,
113: version, type, structureId, templateId, displayDateGT,
114: displayDateLT, approved, expired, reviewDate, begin,
115: end, obc);
116: }
117:
118: public static java.util.List findByReviewDate(
119: java.util.Date reviewDateLT, java.util.Date reviewDateGT)
120: throws com.liferay.portal.SystemException {
121: return getFinder().findByReviewDate(reviewDateLT, reviewDateGT);
122: }
123:
124: public static java.util.List findByC_G_A_V_T_D_C_T_S_T_D_A_E_R(
125: long companyId, long groupId, java.lang.String articleId,
126: java.lang.Double version, java.lang.String title,
127: java.lang.String description, java.lang.String content,
128: java.lang.String type, java.lang.String structureId,
129: java.lang.String templateId, java.util.Date displayDateGT,
130: java.util.Date displayDateLT, java.lang.Boolean approved,
131: java.lang.Boolean expired, java.util.Date reviewDate,
132: boolean andOperator, int begin, int end,
133: com.liferay.portal.kernel.util.OrderByComparator obc)
134: throws com.liferay.portal.SystemException {
135: return getFinder().findByC_G_A_V_T_D_C_T_S_T_D_A_E_R(companyId,
136: groupId, articleId, version, title, description,
137: content, type, structureId, templateId, displayDateGT,
138: displayDateLT, approved, expired, reviewDate,
139: andOperator, begin, end, obc);
140: }
141:
142: public static java.util.List findByC_G_A_V_T_D_C_T_S_T_D_A_E_R(
143: long companyId, long groupId, java.lang.String articleId,
144: java.lang.Double version, java.lang.String title,
145: java.lang.String description, java.lang.String content,
146: java.lang.String type, java.lang.String[] structureIds,
147: java.lang.String[] templateIds,
148: java.util.Date displayDateGT, java.util.Date displayDateLT,
149: java.lang.Boolean approved, java.lang.Boolean expired,
150: java.util.Date reviewDate, boolean andOperator, int begin,
151: int end,
152: com.liferay.portal.kernel.util.OrderByComparator obc)
153: throws com.liferay.portal.SystemException {
154: return getFinder().findByC_G_A_V_T_D_C_T_S_T_D_A_E_R(companyId,
155: groupId, articleId, version, title, description,
156: content, type, structureIds, templateIds,
157: displayDateGT, displayDateLT, approved, expired,
158: reviewDate, andOperator, begin, end, obc);
159: }
160:
161: public static java.util.List findByC_G_A_V_T_D_C_T_S_T_D_A_E_R(
162: long companyId, long groupId,
163: java.lang.String[] articleIds, java.lang.Double version,
164: java.lang.String[] titles, java.lang.String[] descriptions,
165: java.lang.String[] contents, java.lang.String type,
166: java.lang.String[] structureIds,
167: java.lang.String[] templateIds,
168: java.util.Date displayDateGT, java.util.Date displayDateLT,
169: java.lang.Boolean approved, java.lang.Boolean expired,
170: java.util.Date reviewDate, boolean andOperator, int begin,
171: int end,
172: com.liferay.portal.kernel.util.OrderByComparator obc)
173: throws com.liferay.portal.SystemException {
174: return getFinder().findByC_G_A_V_T_D_C_T_S_T_D_A_E_R(companyId,
175: groupId, articleIds, version, titles, descriptions,
176: contents, type, structureIds, templateIds,
177: displayDateGT, displayDateLT, approved, expired,
178: reviewDate, andOperator, begin, end, obc);
179: }
180:
181: public static JournalArticleFinder getFinder() {
182: return _getUtil()._finder;
183: }
184:
185: public void setFinder(JournalArticleFinder finder) {
186: _finder = finder;
187: }
188:
189: private static JournalArticleFinderUtil _getUtil() {
190: if (_util == null) {
191: _util = (JournalArticleFinderUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
192: .locate(_UTIL);
193: }
194:
195: return _util;
196: }
197:
198: private static final String _UTIL = JournalArticleFinderUtil.class
199: .getName();
200: private static JournalArticleFinderUtil _util;
201: private JournalArticleFinder _finder;
202: }
|