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.base;
022:
023: import com.liferay.counter.service.CounterLocalService;
024: import com.liferay.counter.service.CounterLocalServiceFactory;
025: import com.liferay.counter.service.CounterService;
026: import com.liferay.counter.service.CounterServiceFactory;
027:
028: import com.liferay.portal.SystemException;
029: import com.liferay.portal.kernel.dao.DynamicQueryInitializer;
030: import com.liferay.portal.service.GroupLocalService;
031: import com.liferay.portal.service.GroupLocalServiceFactory;
032: import com.liferay.portal.service.GroupService;
033: import com.liferay.portal.service.GroupServiceFactory;
034: import com.liferay.portal.service.LayoutLocalService;
035: import com.liferay.portal.service.LayoutLocalServiceFactory;
036: import com.liferay.portal.service.LayoutService;
037: import com.liferay.portal.service.LayoutServiceFactory;
038: import com.liferay.portal.service.PortletPreferencesLocalService;
039: import com.liferay.portal.service.PortletPreferencesLocalServiceFactory;
040: import com.liferay.portal.service.persistence.GroupFinder;
041: import com.liferay.portal.service.persistence.GroupFinderUtil;
042: import com.liferay.portal.service.persistence.GroupPersistence;
043: import com.liferay.portal.service.persistence.GroupUtil;
044: import com.liferay.portal.service.persistence.LayoutFinder;
045: import com.liferay.portal.service.persistence.LayoutFinderUtil;
046: import com.liferay.portal.service.persistence.LayoutPersistence;
047: import com.liferay.portal.service.persistence.LayoutUtil;
048: import com.liferay.portal.service.persistence.PortletPreferencesFinder;
049: import com.liferay.portal.service.persistence.PortletPreferencesFinderUtil;
050: import com.liferay.portal.service.persistence.PortletPreferencesPersistence;
051: import com.liferay.portal.service.persistence.PortletPreferencesUtil;
052:
053: import com.liferay.portlet.journal.model.JournalContentSearch;
054: import com.liferay.portlet.journal.model.impl.JournalContentSearchImpl;
055: import com.liferay.portlet.journal.service.JournalArticleImageLocalService;
056: import com.liferay.portlet.journal.service.JournalArticleImageLocalServiceFactory;
057: import com.liferay.portlet.journal.service.JournalArticleLocalService;
058: import com.liferay.portlet.journal.service.JournalArticleLocalServiceFactory;
059: import com.liferay.portlet.journal.service.JournalArticleResourceLocalService;
060: import com.liferay.portlet.journal.service.JournalArticleResourceLocalServiceFactory;
061: import com.liferay.portlet.journal.service.JournalArticleService;
062: import com.liferay.portlet.journal.service.JournalArticleServiceFactory;
063: import com.liferay.portlet.journal.service.JournalContentSearchLocalService;
064: import com.liferay.portlet.journal.service.JournalFeedLocalService;
065: import com.liferay.portlet.journal.service.JournalFeedLocalServiceFactory;
066: import com.liferay.portlet.journal.service.JournalFeedService;
067: import com.liferay.portlet.journal.service.JournalFeedServiceFactory;
068: import com.liferay.portlet.journal.service.JournalStructureLocalService;
069: import com.liferay.portlet.journal.service.JournalStructureLocalServiceFactory;
070: import com.liferay.portlet.journal.service.JournalStructureService;
071: import com.liferay.portlet.journal.service.JournalStructureServiceFactory;
072: import com.liferay.portlet.journal.service.JournalTemplateLocalService;
073: import com.liferay.portlet.journal.service.JournalTemplateLocalServiceFactory;
074: import com.liferay.portlet.journal.service.JournalTemplateService;
075: import com.liferay.portlet.journal.service.JournalTemplateServiceFactory;
076: import com.liferay.portlet.journal.service.persistence.JournalArticleFinder;
077: import com.liferay.portlet.journal.service.persistence.JournalArticleFinderUtil;
078: import com.liferay.portlet.journal.service.persistence.JournalArticleImagePersistence;
079: import com.liferay.portlet.journal.service.persistence.JournalArticleImageUtil;
080: import com.liferay.portlet.journal.service.persistence.JournalArticlePersistence;
081: import com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence;
082: import com.liferay.portlet.journal.service.persistence.JournalArticleResourceUtil;
083: import com.liferay.portlet.journal.service.persistence.JournalArticleUtil;
084: import com.liferay.portlet.journal.service.persistence.JournalContentSearchPersistence;
085: import com.liferay.portlet.journal.service.persistence.JournalContentSearchUtil;
086: import com.liferay.portlet.journal.service.persistence.JournalFeedFinder;
087: import com.liferay.portlet.journal.service.persistence.JournalFeedFinderUtil;
088: import com.liferay.portlet.journal.service.persistence.JournalFeedPersistence;
089: import com.liferay.portlet.journal.service.persistence.JournalFeedUtil;
090: import com.liferay.portlet.journal.service.persistence.JournalStructureFinder;
091: import com.liferay.portlet.journal.service.persistence.JournalStructureFinderUtil;
092: import com.liferay.portlet.journal.service.persistence.JournalStructurePersistence;
093: import com.liferay.portlet.journal.service.persistence.JournalStructureUtil;
094: import com.liferay.portlet.journal.service.persistence.JournalTemplateFinder;
095: import com.liferay.portlet.journal.service.persistence.JournalTemplateFinderUtil;
096: import com.liferay.portlet.journal.service.persistence.JournalTemplatePersistence;
097: import com.liferay.portlet.journal.service.persistence.JournalTemplateUtil;
098:
099: import org.springframework.beans.factory.InitializingBean;
100:
101: import java.util.List;
102:
103: /**
104: * <a href="JournalContentSearchLocalServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
105: *
106: * @author Brian Wing Shun Chan
107: *
108: */
109: public abstract class JournalContentSearchLocalServiceBaseImpl
110: implements JournalContentSearchLocalService, InitializingBean {
111: public JournalContentSearch addJournalContentSearch(
112: JournalContentSearch model) throws SystemException {
113: JournalContentSearch journalContentSearch = new JournalContentSearchImpl();
114:
115: journalContentSearch.setNew(true);
116:
117: journalContentSearch.setContentSearchId(model
118: .getContentSearchId());
119: journalContentSearch.setGroupId(model.getGroupId());
120: journalContentSearch.setCompanyId(model.getCompanyId());
121: journalContentSearch.setPrivateLayout(model.getPrivateLayout());
122: journalContentSearch.setLayoutId(model.getLayoutId());
123: journalContentSearch.setPortletId(model.getPortletId());
124: journalContentSearch.setArticleId(model.getArticleId());
125:
126: return journalContentSearchPersistence
127: .update(journalContentSearch);
128: }
129:
130: public List dynamicQuery(DynamicQueryInitializer queryInitializer)
131: throws SystemException {
132: return journalContentSearchPersistence
133: .findWithDynamicQuery(queryInitializer);
134: }
135:
136: public List dynamicQuery(DynamicQueryInitializer queryInitializer,
137: int begin, int end) throws SystemException {
138: return journalContentSearchPersistence.findWithDynamicQuery(
139: queryInitializer, begin, end);
140: }
141:
142: public JournalContentSearch updateJournalContentSearch(
143: JournalContentSearch model) throws SystemException {
144: return journalContentSearchPersistence.update(model, true);
145: }
146:
147: public JournalArticleLocalService getJournalArticleLocalService() {
148: return journalArticleLocalService;
149: }
150:
151: public void setJournalArticleLocalService(
152: JournalArticleLocalService journalArticleLocalService) {
153: this .journalArticleLocalService = journalArticleLocalService;
154: }
155:
156: public JournalArticleService getJournalArticleService() {
157: return journalArticleService;
158: }
159:
160: public void setJournalArticleService(
161: JournalArticleService journalArticleService) {
162: this .journalArticleService = journalArticleService;
163: }
164:
165: public JournalArticlePersistence getJournalArticlePersistence() {
166: return journalArticlePersistence;
167: }
168:
169: public void setJournalArticlePersistence(
170: JournalArticlePersistence journalArticlePersistence) {
171: this .journalArticlePersistence = journalArticlePersistence;
172: }
173:
174: public JournalArticleFinder getJournalArticleFinder() {
175: return journalArticleFinder;
176: }
177:
178: public void setJournalArticleFinder(
179: JournalArticleFinder journalArticleFinder) {
180: this .journalArticleFinder = journalArticleFinder;
181: }
182:
183: public JournalArticleImageLocalService getJournalArticleImageLocalService() {
184: return journalArticleImageLocalService;
185: }
186:
187: public void setJournalArticleImageLocalService(
188: JournalArticleImageLocalService journalArticleImageLocalService) {
189: this .journalArticleImageLocalService = journalArticleImageLocalService;
190: }
191:
192: public JournalArticleImagePersistence getJournalArticleImagePersistence() {
193: return journalArticleImagePersistence;
194: }
195:
196: public void setJournalArticleImagePersistence(
197: JournalArticleImagePersistence journalArticleImagePersistence) {
198: this .journalArticleImagePersistence = journalArticleImagePersistence;
199: }
200:
201: public JournalArticleResourceLocalService getJournalArticleResourceLocalService() {
202: return journalArticleResourceLocalService;
203: }
204:
205: public void setJournalArticleResourceLocalService(
206: JournalArticleResourceLocalService journalArticleResourceLocalService) {
207: this .journalArticleResourceLocalService = journalArticleResourceLocalService;
208: }
209:
210: public JournalArticleResourcePersistence getJournalArticleResourcePersistence() {
211: return journalArticleResourcePersistence;
212: }
213:
214: public void setJournalArticleResourcePersistence(
215: JournalArticleResourcePersistence journalArticleResourcePersistence) {
216: this .journalArticleResourcePersistence = journalArticleResourcePersistence;
217: }
218:
219: public JournalContentSearchPersistence getJournalContentSearchPersistence() {
220: return journalContentSearchPersistence;
221: }
222:
223: public void setJournalContentSearchPersistence(
224: JournalContentSearchPersistence journalContentSearchPersistence) {
225: this .journalContentSearchPersistence = journalContentSearchPersistence;
226: }
227:
228: public JournalFeedLocalService getJournalFeedLocalService() {
229: return journalFeedLocalService;
230: }
231:
232: public void setJournalFeedLocalService(
233: JournalFeedLocalService journalFeedLocalService) {
234: this .journalFeedLocalService = journalFeedLocalService;
235: }
236:
237: public JournalFeedService getJournalFeedService() {
238: return journalFeedService;
239: }
240:
241: public void setJournalFeedService(
242: JournalFeedService journalFeedService) {
243: this .journalFeedService = journalFeedService;
244: }
245:
246: public JournalFeedPersistence getJournalFeedPersistence() {
247: return journalFeedPersistence;
248: }
249:
250: public void setJournalFeedPersistence(
251: JournalFeedPersistence journalFeedPersistence) {
252: this .journalFeedPersistence = journalFeedPersistence;
253: }
254:
255: public JournalFeedFinder getJournalFeedFinder() {
256: return journalFeedFinder;
257: }
258:
259: public void setJournalFeedFinder(JournalFeedFinder journalFeedFinder) {
260: this .journalFeedFinder = journalFeedFinder;
261: }
262:
263: public JournalStructureLocalService getJournalStructureLocalService() {
264: return journalStructureLocalService;
265: }
266:
267: public void setJournalStructureLocalService(
268: JournalStructureLocalService journalStructureLocalService) {
269: this .journalStructureLocalService = journalStructureLocalService;
270: }
271:
272: public JournalStructureService getJournalStructureService() {
273: return journalStructureService;
274: }
275:
276: public void setJournalStructureService(
277: JournalStructureService journalStructureService) {
278: this .journalStructureService = journalStructureService;
279: }
280:
281: public JournalStructurePersistence getJournalStructurePersistence() {
282: return journalStructurePersistence;
283: }
284:
285: public void setJournalStructurePersistence(
286: JournalStructurePersistence journalStructurePersistence) {
287: this .journalStructurePersistence = journalStructurePersistence;
288: }
289:
290: public JournalStructureFinder getJournalStructureFinder() {
291: return journalStructureFinder;
292: }
293:
294: public void setJournalStructureFinder(
295: JournalStructureFinder journalStructureFinder) {
296: this .journalStructureFinder = journalStructureFinder;
297: }
298:
299: public JournalTemplateLocalService getJournalTemplateLocalService() {
300: return journalTemplateLocalService;
301: }
302:
303: public void setJournalTemplateLocalService(
304: JournalTemplateLocalService journalTemplateLocalService) {
305: this .journalTemplateLocalService = journalTemplateLocalService;
306: }
307:
308: public JournalTemplateService getJournalTemplateService() {
309: return journalTemplateService;
310: }
311:
312: public void setJournalTemplateService(
313: JournalTemplateService journalTemplateService) {
314: this .journalTemplateService = journalTemplateService;
315: }
316:
317: public JournalTemplatePersistence getJournalTemplatePersistence() {
318: return journalTemplatePersistence;
319: }
320:
321: public void setJournalTemplatePersistence(
322: JournalTemplatePersistence journalTemplatePersistence) {
323: this .journalTemplatePersistence = journalTemplatePersistence;
324: }
325:
326: public JournalTemplateFinder getJournalTemplateFinder() {
327: return journalTemplateFinder;
328: }
329:
330: public void setJournalTemplateFinder(
331: JournalTemplateFinder journalTemplateFinder) {
332: this .journalTemplateFinder = journalTemplateFinder;
333: }
334:
335: public CounterLocalService getCounterLocalService() {
336: return counterLocalService;
337: }
338:
339: public void setCounterLocalService(
340: CounterLocalService counterLocalService) {
341: this .counterLocalService = counterLocalService;
342: }
343:
344: public CounterService getCounterService() {
345: return counterService;
346: }
347:
348: public void setCounterService(CounterService counterService) {
349: this .counterService = counterService;
350: }
351:
352: public GroupLocalService getGroupLocalService() {
353: return groupLocalService;
354: }
355:
356: public void setGroupLocalService(GroupLocalService groupLocalService) {
357: this .groupLocalService = groupLocalService;
358: }
359:
360: public GroupService getGroupService() {
361: return groupService;
362: }
363:
364: public void setGroupService(GroupService groupService) {
365: this .groupService = groupService;
366: }
367:
368: public GroupPersistence getGroupPersistence() {
369: return groupPersistence;
370: }
371:
372: public void setGroupPersistence(GroupPersistence groupPersistence) {
373: this .groupPersistence = groupPersistence;
374: }
375:
376: public GroupFinder getGroupFinder() {
377: return groupFinder;
378: }
379:
380: public void setGroupFinder(GroupFinder groupFinder) {
381: this .groupFinder = groupFinder;
382: }
383:
384: public LayoutLocalService getLayoutLocalService() {
385: return layoutLocalService;
386: }
387:
388: public void setLayoutLocalService(
389: LayoutLocalService layoutLocalService) {
390: this .layoutLocalService = layoutLocalService;
391: }
392:
393: public LayoutService getLayoutService() {
394: return layoutService;
395: }
396:
397: public void setLayoutService(LayoutService layoutService) {
398: this .layoutService = layoutService;
399: }
400:
401: public LayoutPersistence getLayoutPersistence() {
402: return layoutPersistence;
403: }
404:
405: public void setLayoutPersistence(LayoutPersistence layoutPersistence) {
406: this .layoutPersistence = layoutPersistence;
407: }
408:
409: public LayoutFinder getLayoutFinder() {
410: return layoutFinder;
411: }
412:
413: public void setLayoutFinder(LayoutFinder layoutFinder) {
414: this .layoutFinder = layoutFinder;
415: }
416:
417: public PortletPreferencesLocalService getPortletPreferencesLocalService() {
418: return portletPreferencesLocalService;
419: }
420:
421: public void setPortletPreferencesLocalService(
422: PortletPreferencesLocalService portletPreferencesLocalService) {
423: this .portletPreferencesLocalService = portletPreferencesLocalService;
424: }
425:
426: public PortletPreferencesPersistence getPortletPreferencesPersistence() {
427: return portletPreferencesPersistence;
428: }
429:
430: public void setPortletPreferencesPersistence(
431: PortletPreferencesPersistence portletPreferencesPersistence) {
432: this .portletPreferencesPersistence = portletPreferencesPersistence;
433: }
434:
435: public PortletPreferencesFinder getPortletPreferencesFinder() {
436: return portletPreferencesFinder;
437: }
438:
439: public void setPortletPreferencesFinder(
440: PortletPreferencesFinder portletPreferencesFinder) {
441: this .portletPreferencesFinder = portletPreferencesFinder;
442: }
443:
444: public void afterPropertiesSet() {
445: if (journalArticleLocalService == null) {
446: journalArticleLocalService = JournalArticleLocalServiceFactory
447: .getImpl();
448: }
449:
450: if (journalArticleService == null) {
451: journalArticleService = JournalArticleServiceFactory
452: .getImpl();
453: }
454:
455: if (journalArticlePersistence == null) {
456: journalArticlePersistence = JournalArticleUtil
457: .getPersistence();
458: }
459:
460: if (journalArticleFinder == null) {
461: journalArticleFinder = JournalArticleFinderUtil.getFinder();
462: }
463:
464: if (journalArticleImageLocalService == null) {
465: journalArticleImageLocalService = JournalArticleImageLocalServiceFactory
466: .getImpl();
467: }
468:
469: if (journalArticleImagePersistence == null) {
470: journalArticleImagePersistence = JournalArticleImageUtil
471: .getPersistence();
472: }
473:
474: if (journalArticleResourceLocalService == null) {
475: journalArticleResourceLocalService = JournalArticleResourceLocalServiceFactory
476: .getImpl();
477: }
478:
479: if (journalArticleResourcePersistence == null) {
480: journalArticleResourcePersistence = JournalArticleResourceUtil
481: .getPersistence();
482: }
483:
484: if (journalContentSearchPersistence == null) {
485: journalContentSearchPersistence = JournalContentSearchUtil
486: .getPersistence();
487: }
488:
489: if (journalFeedLocalService == null) {
490: journalFeedLocalService = JournalFeedLocalServiceFactory
491: .getImpl();
492: }
493:
494: if (journalFeedService == null) {
495: journalFeedService = JournalFeedServiceFactory.getImpl();
496: }
497:
498: if (journalFeedPersistence == null) {
499: journalFeedPersistence = JournalFeedUtil.getPersistence();
500: }
501:
502: if (journalFeedFinder == null) {
503: journalFeedFinder = JournalFeedFinderUtil.getFinder();
504: }
505:
506: if (journalStructureLocalService == null) {
507: journalStructureLocalService = JournalStructureLocalServiceFactory
508: .getImpl();
509: }
510:
511: if (journalStructureService == null) {
512: journalStructureService = JournalStructureServiceFactory
513: .getImpl();
514: }
515:
516: if (journalStructurePersistence == null) {
517: journalStructurePersistence = JournalStructureUtil
518: .getPersistence();
519: }
520:
521: if (journalStructureFinder == null) {
522: journalStructureFinder = JournalStructureFinderUtil
523: .getFinder();
524: }
525:
526: if (journalTemplateLocalService == null) {
527: journalTemplateLocalService = JournalTemplateLocalServiceFactory
528: .getImpl();
529: }
530:
531: if (journalTemplateService == null) {
532: journalTemplateService = JournalTemplateServiceFactory
533: .getImpl();
534: }
535:
536: if (journalTemplatePersistence == null) {
537: journalTemplatePersistence = JournalTemplateUtil
538: .getPersistence();
539: }
540:
541: if (journalTemplateFinder == null) {
542: journalTemplateFinder = JournalTemplateFinderUtil
543: .getFinder();
544: }
545:
546: if (counterLocalService == null) {
547: counterLocalService = CounterLocalServiceFactory.getImpl();
548: }
549:
550: if (counterService == null) {
551: counterService = CounterServiceFactory.getImpl();
552: }
553:
554: if (groupLocalService == null) {
555: groupLocalService = GroupLocalServiceFactory.getImpl();
556: }
557:
558: if (groupService == null) {
559: groupService = GroupServiceFactory.getImpl();
560: }
561:
562: if (groupPersistence == null) {
563: groupPersistence = GroupUtil.getPersistence();
564: }
565:
566: if (groupFinder == null) {
567: groupFinder = GroupFinderUtil.getFinder();
568: }
569:
570: if (layoutLocalService == null) {
571: layoutLocalService = LayoutLocalServiceFactory.getImpl();
572: }
573:
574: if (layoutService == null) {
575: layoutService = LayoutServiceFactory.getImpl();
576: }
577:
578: if (layoutPersistence == null) {
579: layoutPersistence = LayoutUtil.getPersistence();
580: }
581:
582: if (layoutFinder == null) {
583: layoutFinder = LayoutFinderUtil.getFinder();
584: }
585:
586: if (portletPreferencesLocalService == null) {
587: portletPreferencesLocalService = PortletPreferencesLocalServiceFactory
588: .getImpl();
589: }
590:
591: if (portletPreferencesPersistence == null) {
592: portletPreferencesPersistence = PortletPreferencesUtil
593: .getPersistence();
594: }
595:
596: if (portletPreferencesFinder == null) {
597: portletPreferencesFinder = PortletPreferencesFinderUtil
598: .getFinder();
599: }
600: }
601:
602: protected JournalArticleLocalService journalArticleLocalService;
603: protected JournalArticleService journalArticleService;
604: protected JournalArticlePersistence journalArticlePersistence;
605: protected JournalArticleFinder journalArticleFinder;
606: protected JournalArticleImageLocalService journalArticleImageLocalService;
607: protected JournalArticleImagePersistence journalArticleImagePersistence;
608: protected JournalArticleResourceLocalService journalArticleResourceLocalService;
609: protected JournalArticleResourcePersistence journalArticleResourcePersistence;
610: protected JournalContentSearchPersistence journalContentSearchPersistence;
611: protected JournalFeedLocalService journalFeedLocalService;
612: protected JournalFeedService journalFeedService;
613: protected JournalFeedPersistence journalFeedPersistence;
614: protected JournalFeedFinder journalFeedFinder;
615: protected JournalStructureLocalService journalStructureLocalService;
616: protected JournalStructureService journalStructureService;
617: protected JournalStructurePersistence journalStructurePersistence;
618: protected JournalStructureFinder journalStructureFinder;
619: protected JournalTemplateLocalService journalTemplateLocalService;
620: protected JournalTemplateService journalTemplateService;
621: protected JournalTemplatePersistence journalTemplatePersistence;
622: protected JournalTemplateFinder journalTemplateFinder;
623: protected CounterLocalService counterLocalService;
624: protected CounterService counterService;
625: protected GroupLocalService groupLocalService;
626: protected GroupService groupService;
627: protected GroupPersistence groupPersistence;
628: protected GroupFinder groupFinder;
629: protected LayoutLocalService layoutLocalService;
630: protected LayoutService layoutService;
631: protected LayoutPersistence layoutPersistence;
632: protected LayoutFinder layoutFinder;
633: protected PortletPreferencesLocalService portletPreferencesLocalService;
634: protected PortletPreferencesPersistence portletPreferencesPersistence;
635: protected PortletPreferencesFinder portletPreferencesFinder;
636: }
|