1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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.base;
24  
25  import com.liferay.counter.service.CounterLocalService;
26  import com.liferay.counter.service.CounterService;
27  
28  import com.liferay.portal.PortalException;
29  import com.liferay.portal.SystemException;
30  import com.liferay.portal.kernel.annotation.BeanReference;
31  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
32  import com.liferay.portal.service.GroupLocalService;
33  import com.liferay.portal.service.GroupService;
34  import com.liferay.portal.service.LayoutLocalService;
35  import com.liferay.portal.service.LayoutService;
36  import com.liferay.portal.service.PortletPreferencesLocalService;
37  import com.liferay.portal.service.PortletPreferencesService;
38  import com.liferay.portal.service.persistence.GroupFinder;
39  import com.liferay.portal.service.persistence.GroupPersistence;
40  import com.liferay.portal.service.persistence.LayoutFinder;
41  import com.liferay.portal.service.persistence.LayoutPersistence;
42  import com.liferay.portal.service.persistence.PortletPreferencesFinder;
43  import com.liferay.portal.service.persistence.PortletPreferencesPersistence;
44  import com.liferay.portal.util.PortalUtil;
45  
46  import com.liferay.portlet.journal.model.JournalContentSearch;
47  import com.liferay.portlet.journal.service.JournalArticleImageLocalService;
48  import com.liferay.portlet.journal.service.JournalArticleLocalService;
49  import com.liferay.portlet.journal.service.JournalArticleResourceLocalService;
50  import com.liferay.portlet.journal.service.JournalArticleService;
51  import com.liferay.portlet.journal.service.JournalContentSearchLocalService;
52  import com.liferay.portlet.journal.service.JournalFeedLocalService;
53  import com.liferay.portlet.journal.service.JournalFeedService;
54  import com.liferay.portlet.journal.service.JournalStructureLocalService;
55  import com.liferay.portlet.journal.service.JournalStructureService;
56  import com.liferay.portlet.journal.service.JournalTemplateLocalService;
57  import com.liferay.portlet.journal.service.JournalTemplateService;
58  import com.liferay.portlet.journal.service.persistence.JournalArticleFinder;
59  import com.liferay.portlet.journal.service.persistence.JournalArticleImagePersistence;
60  import com.liferay.portlet.journal.service.persistence.JournalArticlePersistence;
61  import com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence;
62  import com.liferay.portlet.journal.service.persistence.JournalContentSearchPersistence;
63  import com.liferay.portlet.journal.service.persistence.JournalFeedFinder;
64  import com.liferay.portlet.journal.service.persistence.JournalFeedPersistence;
65  import com.liferay.portlet.journal.service.persistence.JournalStructureFinder;
66  import com.liferay.portlet.journal.service.persistence.JournalStructurePersistence;
67  import com.liferay.portlet.journal.service.persistence.JournalTemplateFinder;
68  import com.liferay.portlet.journal.service.persistence.JournalTemplatePersistence;
69  
70  import java.util.List;
71  
72  /**
73   * <a href="JournalContentSearchLocalServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
74   *
75   * @author Brian Wing Shun Chan
76   *
77   */
78  public abstract class JournalContentSearchLocalServiceBaseImpl
79      implements JournalContentSearchLocalService {
80      public JournalContentSearch addJournalContentSearch(
81          JournalContentSearch journalContentSearch) throws SystemException {
82          journalContentSearch.setNew(true);
83  
84          return journalContentSearchPersistence.update(journalContentSearch,
85              false);
86      }
87  
88      public JournalContentSearch createJournalContentSearch(long contentSearchId) {
89          return journalContentSearchPersistence.create(contentSearchId);
90      }
91  
92      public void deleteJournalContentSearch(long contentSearchId)
93          throws PortalException, SystemException {
94          journalContentSearchPersistence.remove(contentSearchId);
95      }
96  
97      public void deleteJournalContentSearch(
98          JournalContentSearch journalContentSearch) throws SystemException {
99          journalContentSearchPersistence.remove(journalContentSearch);
100     }
101 
102     public List<Object> dynamicQuery(DynamicQuery dynamicQuery)
103         throws SystemException {
104         return journalContentSearchPersistence.findWithDynamicQuery(dynamicQuery);
105     }
106 
107     public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start,
108         int end) throws SystemException {
109         return journalContentSearchPersistence.findWithDynamicQuery(dynamicQuery,
110             start, end);
111     }
112 
113     public JournalContentSearch getJournalContentSearch(long contentSearchId)
114         throws PortalException, SystemException {
115         return journalContentSearchPersistence.findByPrimaryKey(contentSearchId);
116     }
117 
118     public List<JournalContentSearch> getJournalContentSearchs(int start,
119         int end) throws SystemException {
120         return journalContentSearchPersistence.findAll(start, end);
121     }
122 
123     public int getJournalContentSearchsCount() throws SystemException {
124         return journalContentSearchPersistence.countAll();
125     }
126 
127     public JournalContentSearch updateJournalContentSearch(
128         JournalContentSearch journalContentSearch) throws SystemException {
129         journalContentSearch.setNew(false);
130 
131         return journalContentSearchPersistence.update(journalContentSearch, true);
132     }
133 
134     public JournalContentSearch updateJournalContentSearch(
135         JournalContentSearch journalContentSearch, boolean merge)
136         throws SystemException {
137         journalContentSearch.setNew(false);
138 
139         return journalContentSearchPersistence.update(journalContentSearch,
140             merge);
141     }
142 
143     public JournalArticleLocalService getJournalArticleLocalService() {
144         return journalArticleLocalService;
145     }
146 
147     public void setJournalArticleLocalService(
148         JournalArticleLocalService journalArticleLocalService) {
149         this.journalArticleLocalService = journalArticleLocalService;
150     }
151 
152     public JournalArticleService getJournalArticleService() {
153         return journalArticleService;
154     }
155 
156     public void setJournalArticleService(
157         JournalArticleService journalArticleService) {
158         this.journalArticleService = journalArticleService;
159     }
160 
161     public JournalArticlePersistence getJournalArticlePersistence() {
162         return journalArticlePersistence;
163     }
164 
165     public void setJournalArticlePersistence(
166         JournalArticlePersistence journalArticlePersistence) {
167         this.journalArticlePersistence = journalArticlePersistence;
168     }
169 
170     public JournalArticleFinder getJournalArticleFinder() {
171         return journalArticleFinder;
172     }
173 
174     public void setJournalArticleFinder(
175         JournalArticleFinder journalArticleFinder) {
176         this.journalArticleFinder = journalArticleFinder;
177     }
178 
179     public JournalArticleImageLocalService getJournalArticleImageLocalService() {
180         return journalArticleImageLocalService;
181     }
182 
183     public void setJournalArticleImageLocalService(
184         JournalArticleImageLocalService journalArticleImageLocalService) {
185         this.journalArticleImageLocalService = journalArticleImageLocalService;
186     }
187 
188     public JournalArticleImagePersistence getJournalArticleImagePersistence() {
189         return journalArticleImagePersistence;
190     }
191 
192     public void setJournalArticleImagePersistence(
193         JournalArticleImagePersistence journalArticleImagePersistence) {
194         this.journalArticleImagePersistence = journalArticleImagePersistence;
195     }
196 
197     public JournalArticleResourceLocalService getJournalArticleResourceLocalService() {
198         return journalArticleResourceLocalService;
199     }
200 
201     public void setJournalArticleResourceLocalService(
202         JournalArticleResourceLocalService journalArticleResourceLocalService) {
203         this.journalArticleResourceLocalService = journalArticleResourceLocalService;
204     }
205 
206     public JournalArticleResourcePersistence getJournalArticleResourcePersistence() {
207         return journalArticleResourcePersistence;
208     }
209 
210     public void setJournalArticleResourcePersistence(
211         JournalArticleResourcePersistence journalArticleResourcePersistence) {
212         this.journalArticleResourcePersistence = journalArticleResourcePersistence;
213     }
214 
215     public JournalContentSearchLocalService getJournalContentSearchLocalService() {
216         return journalContentSearchLocalService;
217     }
218 
219     public void setJournalContentSearchLocalService(
220         JournalContentSearchLocalService journalContentSearchLocalService) {
221         this.journalContentSearchLocalService = journalContentSearchLocalService;
222     }
223 
224     public JournalContentSearchPersistence getJournalContentSearchPersistence() {
225         return journalContentSearchPersistence;
226     }
227 
228     public void setJournalContentSearchPersistence(
229         JournalContentSearchPersistence journalContentSearchPersistence) {
230         this.journalContentSearchPersistence = journalContentSearchPersistence;
231     }
232 
233     public JournalFeedLocalService getJournalFeedLocalService() {
234         return journalFeedLocalService;
235     }
236 
237     public void setJournalFeedLocalService(
238         JournalFeedLocalService journalFeedLocalService) {
239         this.journalFeedLocalService = journalFeedLocalService;
240     }
241 
242     public JournalFeedService getJournalFeedService() {
243         return journalFeedService;
244     }
245 
246     public void setJournalFeedService(JournalFeedService journalFeedService) {
247         this.journalFeedService = journalFeedService;
248     }
249 
250     public JournalFeedPersistence getJournalFeedPersistence() {
251         return journalFeedPersistence;
252     }
253 
254     public void setJournalFeedPersistence(
255         JournalFeedPersistence journalFeedPersistence) {
256         this.journalFeedPersistence = journalFeedPersistence;
257     }
258 
259     public JournalFeedFinder getJournalFeedFinder() {
260         return journalFeedFinder;
261     }
262 
263     public void setJournalFeedFinder(JournalFeedFinder journalFeedFinder) {
264         this.journalFeedFinder = journalFeedFinder;
265     }
266 
267     public JournalStructureLocalService getJournalStructureLocalService() {
268         return journalStructureLocalService;
269     }
270 
271     public void setJournalStructureLocalService(
272         JournalStructureLocalService journalStructureLocalService) {
273         this.journalStructureLocalService = journalStructureLocalService;
274     }
275 
276     public JournalStructureService getJournalStructureService() {
277         return journalStructureService;
278     }
279 
280     public void setJournalStructureService(
281         JournalStructureService journalStructureService) {
282         this.journalStructureService = journalStructureService;
283     }
284 
285     public JournalStructurePersistence getJournalStructurePersistence() {
286         return journalStructurePersistence;
287     }
288 
289     public void setJournalStructurePersistence(
290         JournalStructurePersistence journalStructurePersistence) {
291         this.journalStructurePersistence = journalStructurePersistence;
292     }
293 
294     public JournalStructureFinder getJournalStructureFinder() {
295         return journalStructureFinder;
296     }
297 
298     public void setJournalStructureFinder(
299         JournalStructureFinder journalStructureFinder) {
300         this.journalStructureFinder = journalStructureFinder;
301     }
302 
303     public JournalTemplateLocalService getJournalTemplateLocalService() {
304         return journalTemplateLocalService;
305     }
306 
307     public void setJournalTemplateLocalService(
308         JournalTemplateLocalService journalTemplateLocalService) {
309         this.journalTemplateLocalService = journalTemplateLocalService;
310     }
311 
312     public JournalTemplateService getJournalTemplateService() {
313         return journalTemplateService;
314     }
315 
316     public void setJournalTemplateService(
317         JournalTemplateService journalTemplateService) {
318         this.journalTemplateService = journalTemplateService;
319     }
320 
321     public JournalTemplatePersistence getJournalTemplatePersistence() {
322         return journalTemplatePersistence;
323     }
324 
325     public void setJournalTemplatePersistence(
326         JournalTemplatePersistence journalTemplatePersistence) {
327         this.journalTemplatePersistence = journalTemplatePersistence;
328     }
329 
330     public JournalTemplateFinder getJournalTemplateFinder() {
331         return journalTemplateFinder;
332     }
333 
334     public void setJournalTemplateFinder(
335         JournalTemplateFinder journalTemplateFinder) {
336         this.journalTemplateFinder = journalTemplateFinder;
337     }
338 
339     public CounterLocalService getCounterLocalService() {
340         return counterLocalService;
341     }
342 
343     public void setCounterLocalService(CounterLocalService counterLocalService) {
344         this.counterLocalService = counterLocalService;
345     }
346 
347     public CounterService getCounterService() {
348         return counterService;
349     }
350 
351     public void setCounterService(CounterService counterService) {
352         this.counterService = counterService;
353     }
354 
355     public GroupLocalService getGroupLocalService() {
356         return groupLocalService;
357     }
358 
359     public void setGroupLocalService(GroupLocalService groupLocalService) {
360         this.groupLocalService = groupLocalService;
361     }
362 
363     public GroupService getGroupService() {
364         return groupService;
365     }
366 
367     public void setGroupService(GroupService groupService) {
368         this.groupService = groupService;
369     }
370 
371     public GroupPersistence getGroupPersistence() {
372         return groupPersistence;
373     }
374 
375     public void setGroupPersistence(GroupPersistence groupPersistence) {
376         this.groupPersistence = groupPersistence;
377     }
378 
379     public GroupFinder getGroupFinder() {
380         return groupFinder;
381     }
382 
383     public void setGroupFinder(GroupFinder groupFinder) {
384         this.groupFinder = groupFinder;
385     }
386 
387     public LayoutLocalService getLayoutLocalService() {
388         return layoutLocalService;
389     }
390 
391     public void setLayoutLocalService(LayoutLocalService layoutLocalService) {
392         this.layoutLocalService = layoutLocalService;
393     }
394 
395     public LayoutService getLayoutService() {
396         return layoutService;
397     }
398 
399     public void setLayoutService(LayoutService layoutService) {
400         this.layoutService = layoutService;
401     }
402 
403     public LayoutPersistence getLayoutPersistence() {
404         return layoutPersistence;
405     }
406 
407     public void setLayoutPersistence(LayoutPersistence layoutPersistence) {
408         this.layoutPersistence = layoutPersistence;
409     }
410 
411     public LayoutFinder getLayoutFinder() {
412         return layoutFinder;
413     }
414 
415     public void setLayoutFinder(LayoutFinder layoutFinder) {
416         this.layoutFinder = layoutFinder;
417     }
418 
419     public PortletPreferencesLocalService getPortletPreferencesLocalService() {
420         return portletPreferencesLocalService;
421     }
422 
423     public void setPortletPreferencesLocalService(
424         PortletPreferencesLocalService portletPreferencesLocalService) {
425         this.portletPreferencesLocalService = portletPreferencesLocalService;
426     }
427 
428     public PortletPreferencesService getPortletPreferencesService() {
429         return portletPreferencesService;
430     }
431 
432     public void setPortletPreferencesService(
433         PortletPreferencesService portletPreferencesService) {
434         this.portletPreferencesService = portletPreferencesService;
435     }
436 
437     public PortletPreferencesPersistence getPortletPreferencesPersistence() {
438         return portletPreferencesPersistence;
439     }
440 
441     public void setPortletPreferencesPersistence(
442         PortletPreferencesPersistence portletPreferencesPersistence) {
443         this.portletPreferencesPersistence = portletPreferencesPersistence;
444     }
445 
446     public PortletPreferencesFinder getPortletPreferencesFinder() {
447         return portletPreferencesFinder;
448     }
449 
450     public void setPortletPreferencesFinder(
451         PortletPreferencesFinder portletPreferencesFinder) {
452         this.portletPreferencesFinder = portletPreferencesFinder;
453     }
454 
455     protected void runSQL(String sql) throws SystemException {
456         try {
457             PortalUtil.runSQL(sql);
458         }
459         catch (Exception e) {
460             throw new SystemException(e);
461         }
462     }
463 
464     @BeanReference(name = "com.liferay.portlet.journal.service.JournalArticleLocalService.impl")
465     protected JournalArticleLocalService journalArticleLocalService;
466     @BeanReference(name = "com.liferay.portlet.journal.service.JournalArticleService.impl")
467     protected JournalArticleService journalArticleService;
468     @BeanReference(name = "com.liferay.portlet.journal.service.persistence.JournalArticlePersistence.impl")
469     protected JournalArticlePersistence journalArticlePersistence;
470     @BeanReference(name = "com.liferay.portlet.journal.service.persistence.JournalArticleFinder.impl")
471     protected JournalArticleFinder journalArticleFinder;
472     @BeanReference(name = "com.liferay.portlet.journal.service.JournalArticleImageLocalService.impl")
473     protected JournalArticleImageLocalService journalArticleImageLocalService;
474     @BeanReference(name = "com.liferay.portlet.journal.service.persistence.JournalArticleImagePersistence.impl")
475     protected JournalArticleImagePersistence journalArticleImagePersistence;
476     @BeanReference(name = "com.liferay.portlet.journal.service.JournalArticleResourceLocalService.impl")
477     protected JournalArticleResourceLocalService journalArticleResourceLocalService;
478     @BeanReference(name = "com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence.impl")
479     protected JournalArticleResourcePersistence journalArticleResourcePersistence;
480     @BeanReference(name = "com.liferay.portlet.journal.service.JournalContentSearchLocalService.impl")
481     protected JournalContentSearchLocalService journalContentSearchLocalService;
482     @BeanReference(name = "com.liferay.portlet.journal.service.persistence.JournalContentSearchPersistence.impl")
483     protected JournalContentSearchPersistence journalContentSearchPersistence;
484     @BeanReference(name = "com.liferay.portlet.journal.service.JournalFeedLocalService.impl")
485     protected JournalFeedLocalService journalFeedLocalService;
486     @BeanReference(name = "com.liferay.portlet.journal.service.JournalFeedService.impl")
487     protected JournalFeedService journalFeedService;
488     @BeanReference(name = "com.liferay.portlet.journal.service.persistence.JournalFeedPersistence.impl")
489     protected JournalFeedPersistence journalFeedPersistence;
490     @BeanReference(name = "com.liferay.portlet.journal.service.persistence.JournalFeedFinder.impl")
491     protected JournalFeedFinder journalFeedFinder;
492     @BeanReference(name = "com.liferay.portlet.journal.service.JournalStructureLocalService.impl")
493     protected JournalStructureLocalService journalStructureLocalService;
494     @BeanReference(name = "com.liferay.portlet.journal.service.JournalStructureService.impl")
495     protected JournalStructureService journalStructureService;
496     @BeanReference(name = "com.liferay.portlet.journal.service.persistence.JournalStructurePersistence.impl")
497     protected JournalStructurePersistence journalStructurePersistence;
498     @BeanReference(name = "com.liferay.portlet.journal.service.persistence.JournalStructureFinder.impl")
499     protected JournalStructureFinder journalStructureFinder;
500     @BeanReference(name = "com.liferay.portlet.journal.service.JournalTemplateLocalService.impl")
501     protected JournalTemplateLocalService journalTemplateLocalService;
502     @BeanReference(name = "com.liferay.portlet.journal.service.JournalTemplateService.impl")
503     protected JournalTemplateService journalTemplateService;
504     @BeanReference(name = "com.liferay.portlet.journal.service.persistence.JournalTemplatePersistence.impl")
505     protected JournalTemplatePersistence journalTemplatePersistence;
506     @BeanReference(name = "com.liferay.portlet.journal.service.persistence.JournalTemplateFinder.impl")
507     protected JournalTemplateFinder journalTemplateFinder;
508     @BeanReference(name = "com.liferay.counter.service.CounterLocalService.impl")
509     protected CounterLocalService counterLocalService;
510     @BeanReference(name = "com.liferay.counter.service.CounterService.impl")
511     protected CounterService counterService;
512     @BeanReference(name = "com.liferay.portal.service.GroupLocalService.impl")
513     protected GroupLocalService groupLocalService;
514     @BeanReference(name = "com.liferay.portal.service.GroupService.impl")
515     protected GroupService groupService;
516     @BeanReference(name = "com.liferay.portal.service.persistence.GroupPersistence.impl")
517     protected GroupPersistence groupPersistence;
518     @BeanReference(name = "com.liferay.portal.service.persistence.GroupFinder.impl")
519     protected GroupFinder groupFinder;
520     @BeanReference(name = "com.liferay.portal.service.LayoutLocalService.impl")
521     protected LayoutLocalService layoutLocalService;
522     @BeanReference(name = "com.liferay.portal.service.LayoutService.impl")
523     protected LayoutService layoutService;
524     @BeanReference(name = "com.liferay.portal.service.persistence.LayoutPersistence.impl")
525     protected LayoutPersistence layoutPersistence;
526     @BeanReference(name = "com.liferay.portal.service.persistence.LayoutFinder.impl")
527     protected LayoutFinder layoutFinder;
528     @BeanReference(name = "com.liferay.portal.service.PortletPreferencesLocalService.impl")
529     protected PortletPreferencesLocalService portletPreferencesLocalService;
530     @BeanReference(name = "com.liferay.portal.service.PortletPreferencesService.impl")
531     protected PortletPreferencesService portletPreferencesService;
532     @BeanReference(name = "com.liferay.portal.service.persistence.PortletPreferencesPersistence.impl")
533     protected PortletPreferencesPersistence portletPreferencesPersistence;
534     @BeanReference(name = "com.liferay.portal.service.persistence.PortletPreferencesFinder.impl")
535     protected PortletPreferencesFinder portletPreferencesFinder;
536 }