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;
022:
023: /**
024: * <a href="JournalContentSearchLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * <p>
027: * ServiceBuilder generated this class. Modifications in this class will be
028: * overwritten the next time is generated.
029: * </p>
030: *
031: * <p>
032: * This class provides static methods for the
033: * <code>com.liferay.portlet.journal.service.JournalContentSearchLocalService</code>
034: * bean. The static methods of this class calls the same methods of the bean
035: * instance. It's convenient to be able to just write one line to call a method
036: * on a bean instead of writing a lookup call and a method call.
037: * </p>
038: *
039: * <p>
040: * <code>com.liferay.portlet.journal.service.JournalContentSearchLocalServiceFactory</code>
041: * is responsible for the lookup of the bean.
042: * </p>
043: *
044: * @author Brian Wing Shun Chan
045: *
046: * @see com.liferay.portlet.journal.service.JournalContentSearchLocalService
047: * @see com.liferay.portlet.journal.service.JournalContentSearchLocalServiceFactory
048: *
049: */
050: public class JournalContentSearchLocalServiceUtil {
051: public static com.liferay.portlet.journal.model.JournalContentSearch addJournalContentSearch(
052: com.liferay.portlet.journal.model.JournalContentSearch model)
053: throws com.liferay.portal.SystemException {
054: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
055: .getService();
056:
057: return journalContentSearchLocalService
058: .addJournalContentSearch(model);
059: }
060:
061: public static java.util.List dynamicQuery(
062: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
063: throws com.liferay.portal.SystemException {
064: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
065: .getService();
066:
067: return journalContentSearchLocalService
068: .dynamicQuery(queryInitializer);
069: }
070:
071: public static java.util.List dynamicQuery(
072: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
073: int begin, int end)
074: throws com.liferay.portal.SystemException {
075: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
076: .getService();
077:
078: return journalContentSearchLocalService.dynamicQuery(
079: queryInitializer, begin, end);
080: }
081:
082: public static com.liferay.portlet.journal.model.JournalContentSearch updateJournalContentSearch(
083: com.liferay.portlet.journal.model.JournalContentSearch model)
084: throws com.liferay.portal.SystemException {
085: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
086: .getService();
087:
088: return journalContentSearchLocalService
089: .updateJournalContentSearch(model);
090: }
091:
092: public static com.liferay.portlet.journal.service.persistence.JournalArticlePersistence getJournalArticlePersistence() {
093: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
094: .getService();
095:
096: return journalContentSearchLocalService
097: .getJournalArticlePersistence();
098: }
099:
100: public static void setJournalArticlePersistence(
101: com.liferay.portlet.journal.service.persistence.JournalArticlePersistence journalArticlePersistence) {
102: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
103: .getService();
104:
105: journalContentSearchLocalService
106: .setJournalArticlePersistence(journalArticlePersistence);
107: }
108:
109: public static com.liferay.portlet.journal.service.persistence.JournalArticleFinder getJournalArticleFinder() {
110: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
111: .getService();
112:
113: return journalContentSearchLocalService
114: .getJournalArticleFinder();
115: }
116:
117: public static void setJournalArticleFinder(
118: com.liferay.portlet.journal.service.persistence.JournalArticleFinder journalArticleFinder) {
119: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
120: .getService();
121:
122: journalContentSearchLocalService
123: .setJournalArticleFinder(journalArticleFinder);
124: }
125:
126: public static com.liferay.portlet.journal.service.persistence.JournalArticleImagePersistence getJournalArticleImagePersistence() {
127: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
128: .getService();
129:
130: return journalContentSearchLocalService
131: .getJournalArticleImagePersistence();
132: }
133:
134: public static void setJournalArticleImagePersistence(
135: com.liferay.portlet.journal.service.persistence.JournalArticleImagePersistence journalArticleImagePersistence) {
136: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
137: .getService();
138:
139: journalContentSearchLocalService
140: .setJournalArticleImagePersistence(journalArticleImagePersistence);
141: }
142:
143: public static com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence getJournalArticleResourcePersistence() {
144: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
145: .getService();
146:
147: return journalContentSearchLocalService
148: .getJournalArticleResourcePersistence();
149: }
150:
151: public static void setJournalArticleResourcePersistence(
152: com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence journalArticleResourcePersistence) {
153: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
154: .getService();
155:
156: journalContentSearchLocalService
157: .setJournalArticleResourcePersistence(journalArticleResourcePersistence);
158: }
159:
160: public static com.liferay.portlet.journal.service.persistence.JournalContentSearchPersistence getJournalContentSearchPersistence() {
161: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
162: .getService();
163:
164: return journalContentSearchLocalService
165: .getJournalContentSearchPersistence();
166: }
167:
168: public static void setJournalContentSearchPersistence(
169: com.liferay.portlet.journal.service.persistence.JournalContentSearchPersistence journalContentSearchPersistence) {
170: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
171: .getService();
172:
173: journalContentSearchLocalService
174: .setJournalContentSearchPersistence(journalContentSearchPersistence);
175: }
176:
177: public static com.liferay.portlet.journal.service.persistence.JournalFeedPersistence getJournalFeedPersistence() {
178: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
179: .getService();
180:
181: return journalContentSearchLocalService
182: .getJournalFeedPersistence();
183: }
184:
185: public static void setJournalFeedPersistence(
186: com.liferay.portlet.journal.service.persistence.JournalFeedPersistence journalFeedPersistence) {
187: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
188: .getService();
189:
190: journalContentSearchLocalService
191: .setJournalFeedPersistence(journalFeedPersistence);
192: }
193:
194: public static com.liferay.portlet.journal.service.persistence.JournalFeedFinder getJournalFeedFinder() {
195: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
196: .getService();
197:
198: return journalContentSearchLocalService.getJournalFeedFinder();
199: }
200:
201: public static void setJournalFeedFinder(
202: com.liferay.portlet.journal.service.persistence.JournalFeedFinder journalFeedFinder) {
203: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
204: .getService();
205:
206: journalContentSearchLocalService
207: .setJournalFeedFinder(journalFeedFinder);
208: }
209:
210: public static com.liferay.portlet.journal.service.persistence.JournalStructurePersistence getJournalStructurePersistence() {
211: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
212: .getService();
213:
214: return journalContentSearchLocalService
215: .getJournalStructurePersistence();
216: }
217:
218: public static void setJournalStructurePersistence(
219: com.liferay.portlet.journal.service.persistence.JournalStructurePersistence journalStructurePersistence) {
220: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
221: .getService();
222:
223: journalContentSearchLocalService
224: .setJournalStructurePersistence(journalStructurePersistence);
225: }
226:
227: public static com.liferay.portlet.journal.service.persistence.JournalStructureFinder getJournalStructureFinder() {
228: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
229: .getService();
230:
231: return journalContentSearchLocalService
232: .getJournalStructureFinder();
233: }
234:
235: public static void setJournalStructureFinder(
236: com.liferay.portlet.journal.service.persistence.JournalStructureFinder journalStructureFinder) {
237: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
238: .getService();
239:
240: journalContentSearchLocalService
241: .setJournalStructureFinder(journalStructureFinder);
242: }
243:
244: public static com.liferay.portlet.journal.service.persistence.JournalTemplatePersistence getJournalTemplatePersistence() {
245: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
246: .getService();
247:
248: return journalContentSearchLocalService
249: .getJournalTemplatePersistence();
250: }
251:
252: public static void setJournalTemplatePersistence(
253: com.liferay.portlet.journal.service.persistence.JournalTemplatePersistence journalTemplatePersistence) {
254: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
255: .getService();
256:
257: journalContentSearchLocalService
258: .setJournalTemplatePersistence(journalTemplatePersistence);
259: }
260:
261: public static com.liferay.portlet.journal.service.persistence.JournalTemplateFinder getJournalTemplateFinder() {
262: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
263: .getService();
264:
265: return journalContentSearchLocalService
266: .getJournalTemplateFinder();
267: }
268:
269: public static void setJournalTemplateFinder(
270: com.liferay.portlet.journal.service.persistence.JournalTemplateFinder journalTemplateFinder) {
271: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
272: .getService();
273:
274: journalContentSearchLocalService
275: .setJournalTemplateFinder(journalTemplateFinder);
276: }
277:
278: public static com.liferay.portal.service.persistence.GroupPersistence getGroupPersistence() {
279: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
280: .getService();
281:
282: return journalContentSearchLocalService.getGroupPersistence();
283: }
284:
285: public static void setGroupPersistence(
286: com.liferay.portal.service.persistence.GroupPersistence groupPersistence) {
287: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
288: .getService();
289:
290: journalContentSearchLocalService
291: .setGroupPersistence(groupPersistence);
292: }
293:
294: public static com.liferay.portal.service.persistence.GroupFinder getGroupFinder() {
295: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
296: .getService();
297:
298: return journalContentSearchLocalService.getGroupFinder();
299: }
300:
301: public static void setGroupFinder(
302: com.liferay.portal.service.persistence.GroupFinder groupFinder) {
303: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
304: .getService();
305:
306: journalContentSearchLocalService.setGroupFinder(groupFinder);
307: }
308:
309: public static com.liferay.portal.service.persistence.LayoutPersistence getLayoutPersistence() {
310: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
311: .getService();
312:
313: return journalContentSearchLocalService.getLayoutPersistence();
314: }
315:
316: public static void setLayoutPersistence(
317: com.liferay.portal.service.persistence.LayoutPersistence layoutPersistence) {
318: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
319: .getService();
320:
321: journalContentSearchLocalService
322: .setLayoutPersistence(layoutPersistence);
323: }
324:
325: public static com.liferay.portal.service.persistence.LayoutFinder getLayoutFinder() {
326: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
327: .getService();
328:
329: return journalContentSearchLocalService.getLayoutFinder();
330: }
331:
332: public static void setLayoutFinder(
333: com.liferay.portal.service.persistence.LayoutFinder layoutFinder) {
334: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
335: .getService();
336:
337: journalContentSearchLocalService.setLayoutFinder(layoutFinder);
338: }
339:
340: public static com.liferay.portal.service.persistence.PortletPreferencesPersistence getPortletPreferencesPersistence() {
341: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
342: .getService();
343:
344: return journalContentSearchLocalService
345: .getPortletPreferencesPersistence();
346: }
347:
348: public static void setPortletPreferencesPersistence(
349: com.liferay.portal.service.persistence.PortletPreferencesPersistence portletPreferencesPersistence) {
350: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
351: .getService();
352:
353: journalContentSearchLocalService
354: .setPortletPreferencesPersistence(portletPreferencesPersistence);
355: }
356:
357: public static com.liferay.portal.service.persistence.PortletPreferencesFinder getPortletPreferencesFinder() {
358: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
359: .getService();
360:
361: return journalContentSearchLocalService
362: .getPortletPreferencesFinder();
363: }
364:
365: public static void setPortletPreferencesFinder(
366: com.liferay.portal.service.persistence.PortletPreferencesFinder portletPreferencesFinder) {
367: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
368: .getService();
369:
370: journalContentSearchLocalService
371: .setPortletPreferencesFinder(portletPreferencesFinder);
372: }
373:
374: public static void afterPropertiesSet() {
375: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
376: .getService();
377:
378: journalContentSearchLocalService.afterPropertiesSet();
379: }
380:
381: public static void checkContentSearches(long companyId)
382: throws com.liferay.portal.PortalException,
383: com.liferay.portal.SystemException {
384: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
385: .getService();
386:
387: journalContentSearchLocalService
388: .checkContentSearches(companyId);
389: }
390:
391: public static void deleteArticleContentSearch(long groupId,
392: boolean privateLayout, long layoutId,
393: java.lang.String portletId, java.lang.String articleId)
394: throws com.liferay.portal.PortalException,
395: com.liferay.portal.SystemException {
396: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
397: .getService();
398:
399: journalContentSearchLocalService.deleteArticleContentSearch(
400: groupId, privateLayout, layoutId, portletId, articleId);
401: }
402:
403: public static void deleteArticleContentSearches(long groupId,
404: java.lang.String articleId)
405: throws com.liferay.portal.SystemException {
406: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
407: .getService();
408:
409: journalContentSearchLocalService.deleteArticleContentSearches(
410: groupId, articleId);
411: }
412:
413: public static void deleteLayoutContentSearches(long groupId,
414: boolean privateLayout, long layoutId)
415: throws com.liferay.portal.SystemException {
416: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
417: .getService();
418:
419: journalContentSearchLocalService.deleteLayoutContentSearches(
420: groupId, privateLayout, layoutId);
421: }
422:
423: public static void deleteOwnerContentSearches(long groupId,
424: boolean privateLayout)
425: throws com.liferay.portal.SystemException {
426: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
427: .getService();
428:
429: journalContentSearchLocalService.deleteOwnerContentSearches(
430: groupId, privateLayout);
431: }
432:
433: public static java.util.List getArticleContentSearches()
434: throws com.liferay.portal.SystemException {
435: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
436: .getService();
437:
438: return journalContentSearchLocalService
439: .getArticleContentSearches();
440: }
441:
442: public static java.util.List getArticleContentSearches(
443: long groupId, java.lang.String articleId)
444: throws com.liferay.portal.SystemException {
445: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
446: .getService();
447:
448: return journalContentSearchLocalService
449: .getArticleContentSearches(groupId, articleId);
450: }
451:
452: public static java.util.List getLayoutIds(long groupId,
453: boolean privateLayout, java.lang.String articleId)
454: throws com.liferay.portal.SystemException {
455: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
456: .getService();
457:
458: return journalContentSearchLocalService.getLayoutIds(groupId,
459: privateLayout, articleId);
460: }
461:
462: public static int getLayoutIdsCount(long groupId,
463: boolean privateLayout, java.lang.String articleId)
464: throws com.liferay.portal.SystemException {
465: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
466: .getService();
467:
468: return journalContentSearchLocalService.getLayoutIdsCount(
469: groupId, privateLayout, articleId);
470: }
471:
472: public static com.liferay.portlet.journal.model.JournalContentSearch updateContentSearch(
473: long groupId, boolean privateLayout, long layoutId,
474: java.lang.String portletId, java.lang.String articleId)
475: throws com.liferay.portal.PortalException,
476: com.liferay.portal.SystemException {
477: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
478: .getService();
479:
480: return journalContentSearchLocalService.updateContentSearch(
481: groupId, privateLayout, layoutId, portletId, articleId);
482: }
483:
484: public static com.liferay.portlet.journal.model.JournalContentSearch updateContentSearch(
485: long groupId, boolean privateLayout, long layoutId,
486: java.lang.String portletId, java.lang.String articleId,
487: boolean purge) throws com.liferay.portal.PortalException,
488: com.liferay.portal.SystemException {
489: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
490: .getService();
491:
492: return journalContentSearchLocalService.updateContentSearch(
493: groupId, privateLayout, layoutId, portletId, articleId,
494: purge);
495: }
496:
497: public static java.util.List updateContentSearch(long groupId,
498: boolean privateLayout, long layoutId,
499: java.lang.String portletId, java.lang.String[] articleIds)
500: throws com.liferay.portal.PortalException,
501: com.liferay.portal.SystemException {
502: JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
503: .getService();
504:
505: return journalContentSearchLocalService
506: .updateContentSearch(groupId, privateLayout, layoutId,
507: portletId, articleIds);
508: }
509: }
|