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