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