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.ResourceLocalService;
031: import com.liferay.portal.service.ResourceLocalServiceFactory;
032: import com.liferay.portal.service.ResourceService;
033: import com.liferay.portal.service.ResourceServiceFactory;
034: import com.liferay.portal.service.UserLocalService;
035: import com.liferay.portal.service.UserLocalServiceFactory;
036: import com.liferay.portal.service.UserService;
037: import com.liferay.portal.service.UserServiceFactory;
038: import com.liferay.portal.service.persistence.ResourceFinder;
039: import com.liferay.portal.service.persistence.ResourceFinderUtil;
040: import com.liferay.portal.service.persistence.ResourcePersistence;
041: import com.liferay.portal.service.persistence.ResourceUtil;
042: import com.liferay.portal.service.persistence.UserFinder;
043: import com.liferay.portal.service.persistence.UserFinderUtil;
044: import com.liferay.portal.service.persistence.UserPersistence;
045: import com.liferay.portal.service.persistence.UserUtil;
046:
047: import com.liferay.portlet.journal.model.JournalFeed;
048: import com.liferay.portlet.journal.model.impl.JournalFeedImpl;
049: import com.liferay.portlet.journal.service.JournalArticleImageLocalService;
050: import com.liferay.portlet.journal.service.JournalArticleImageLocalServiceFactory;
051: import com.liferay.portlet.journal.service.JournalArticleLocalService;
052: import com.liferay.portlet.journal.service.JournalArticleLocalServiceFactory;
053: import com.liferay.portlet.journal.service.JournalArticleResourceLocalService;
054: import com.liferay.portlet.journal.service.JournalArticleResourceLocalServiceFactory;
055: import com.liferay.portlet.journal.service.JournalArticleService;
056: import com.liferay.portlet.journal.service.JournalArticleServiceFactory;
057: import com.liferay.portlet.journal.service.JournalContentSearchLocalService;
058: import com.liferay.portlet.journal.service.JournalContentSearchLocalServiceFactory;
059: import com.liferay.portlet.journal.service.JournalFeedLocalService;
060: import com.liferay.portlet.journal.service.JournalStructureLocalService;
061: import com.liferay.portlet.journal.service.JournalStructureLocalServiceFactory;
062: import com.liferay.portlet.journal.service.JournalStructureService;
063: import com.liferay.portlet.journal.service.JournalStructureServiceFactory;
064: import com.liferay.portlet.journal.service.JournalTemplateLocalService;
065: import com.liferay.portlet.journal.service.JournalTemplateLocalServiceFactory;
066: import com.liferay.portlet.journal.service.JournalTemplateService;
067: import com.liferay.portlet.journal.service.JournalTemplateServiceFactory;
068: import com.liferay.portlet.journal.service.persistence.JournalArticleFinder;
069: import com.liferay.portlet.journal.service.persistence.JournalArticleFinderUtil;
070: import com.liferay.portlet.journal.service.persistence.JournalArticleImagePersistence;
071: import com.liferay.portlet.journal.service.persistence.JournalArticleImageUtil;
072: import com.liferay.portlet.journal.service.persistence.JournalArticlePersistence;
073: import com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence;
074: import com.liferay.portlet.journal.service.persistence.JournalArticleResourceUtil;
075: import com.liferay.portlet.journal.service.persistence.JournalArticleUtil;
076: import com.liferay.portlet.journal.service.persistence.JournalContentSearchPersistence;
077: import com.liferay.portlet.journal.service.persistence.JournalContentSearchUtil;
078: import com.liferay.portlet.journal.service.persistence.JournalFeedFinder;
079: import com.liferay.portlet.journal.service.persistence.JournalFeedFinderUtil;
080: import com.liferay.portlet.journal.service.persistence.JournalFeedPersistence;
081: import com.liferay.portlet.journal.service.persistence.JournalFeedUtil;
082: import com.liferay.portlet.journal.service.persistence.JournalStructureFinder;
083: import com.liferay.portlet.journal.service.persistence.JournalStructureFinderUtil;
084: import com.liferay.portlet.journal.service.persistence.JournalStructurePersistence;
085: import com.liferay.portlet.journal.service.persistence.JournalStructureUtil;
086: import com.liferay.portlet.journal.service.persistence.JournalTemplateFinder;
087: import com.liferay.portlet.journal.service.persistence.JournalTemplateFinderUtil;
088: import com.liferay.portlet.journal.service.persistence.JournalTemplatePersistence;
089: import com.liferay.portlet.journal.service.persistence.JournalTemplateUtil;
090:
091: import org.springframework.beans.factory.InitializingBean;
092:
093: import java.util.List;
094:
095: /**
096: * <a href="JournalFeedLocalServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
097: *
098: * @author Brian Wing Shun Chan
099: *
100: */
101: public abstract class JournalFeedLocalServiceBaseImpl implements
102: JournalFeedLocalService, InitializingBean {
103: public JournalFeed addJournalFeed(JournalFeed model)
104: throws SystemException {
105: JournalFeed journalFeed = new JournalFeedImpl();
106:
107: journalFeed.setNew(true);
108:
109: journalFeed.setUuid(model.getUuid());
110: journalFeed.setId(model.getId());
111: journalFeed.setGroupId(model.getGroupId());
112: journalFeed.setCompanyId(model.getCompanyId());
113: journalFeed.setUserId(model.getUserId());
114: journalFeed.setUserName(model.getUserName());
115: journalFeed.setCreateDate(model.getCreateDate());
116: journalFeed.setModifiedDate(model.getModifiedDate());
117: journalFeed.setFeedId(model.getFeedId());
118: journalFeed.setName(model.getName());
119: journalFeed.setDescription(model.getDescription());
120: journalFeed.setType(model.getType());
121: journalFeed.setStructureId(model.getStructureId());
122: journalFeed.setTemplateId(model.getTemplateId());
123: journalFeed
124: .setRendererTemplateId(model.getRendererTemplateId());
125: journalFeed.setDelta(model.getDelta());
126: journalFeed.setOrderByCol(model.getOrderByCol());
127: journalFeed.setOrderByType(model.getOrderByType());
128: journalFeed.setTargetLayoutFriendlyUrl(model
129: .getTargetLayoutFriendlyUrl());
130: journalFeed.setTargetPortletId(model.getTargetPortletId());
131: journalFeed.setContentField(model.getContentField());
132: journalFeed.setFeedType(model.getFeedType());
133: journalFeed.setFeedVersion(model.getFeedVersion());
134:
135: return journalFeedPersistence.update(journalFeed);
136: }
137:
138: public List dynamicQuery(DynamicQueryInitializer queryInitializer)
139: throws SystemException {
140: return journalFeedPersistence
141: .findWithDynamicQuery(queryInitializer);
142: }
143:
144: public List dynamicQuery(DynamicQueryInitializer queryInitializer,
145: int begin, int end) throws SystemException {
146: return journalFeedPersistence.findWithDynamicQuery(
147: queryInitializer, begin, end);
148: }
149:
150: public JournalFeed updateJournalFeed(JournalFeed model)
151: throws SystemException {
152: return journalFeedPersistence.update(model, true);
153: }
154:
155: public JournalArticleLocalService getJournalArticleLocalService() {
156: return journalArticleLocalService;
157: }
158:
159: public void setJournalArticleLocalService(
160: JournalArticleLocalService journalArticleLocalService) {
161: this .journalArticleLocalService = journalArticleLocalService;
162: }
163:
164: public JournalArticleService getJournalArticleService() {
165: return journalArticleService;
166: }
167:
168: public void setJournalArticleService(
169: JournalArticleService journalArticleService) {
170: this .journalArticleService = journalArticleService;
171: }
172:
173: public JournalArticlePersistence getJournalArticlePersistence() {
174: return journalArticlePersistence;
175: }
176:
177: public void setJournalArticlePersistence(
178: JournalArticlePersistence journalArticlePersistence) {
179: this .journalArticlePersistence = journalArticlePersistence;
180: }
181:
182: public JournalArticleFinder getJournalArticleFinder() {
183: return journalArticleFinder;
184: }
185:
186: public void setJournalArticleFinder(
187: JournalArticleFinder journalArticleFinder) {
188: this .journalArticleFinder = journalArticleFinder;
189: }
190:
191: public JournalArticleImageLocalService getJournalArticleImageLocalService() {
192: return journalArticleImageLocalService;
193: }
194:
195: public void setJournalArticleImageLocalService(
196: JournalArticleImageLocalService journalArticleImageLocalService) {
197: this .journalArticleImageLocalService = journalArticleImageLocalService;
198: }
199:
200: public JournalArticleImagePersistence getJournalArticleImagePersistence() {
201: return journalArticleImagePersistence;
202: }
203:
204: public void setJournalArticleImagePersistence(
205: JournalArticleImagePersistence journalArticleImagePersistence) {
206: this .journalArticleImagePersistence = journalArticleImagePersistence;
207: }
208:
209: public JournalArticleResourceLocalService getJournalArticleResourceLocalService() {
210: return journalArticleResourceLocalService;
211: }
212:
213: public void setJournalArticleResourceLocalService(
214: JournalArticleResourceLocalService journalArticleResourceLocalService) {
215: this .journalArticleResourceLocalService = journalArticleResourceLocalService;
216: }
217:
218: public JournalArticleResourcePersistence getJournalArticleResourcePersistence() {
219: return journalArticleResourcePersistence;
220: }
221:
222: public void setJournalArticleResourcePersistence(
223: JournalArticleResourcePersistence journalArticleResourcePersistence) {
224: this .journalArticleResourcePersistence = journalArticleResourcePersistence;
225: }
226:
227: public JournalContentSearchLocalService getJournalContentSearchLocalService() {
228: return journalContentSearchLocalService;
229: }
230:
231: public void setJournalContentSearchLocalService(
232: JournalContentSearchLocalService journalContentSearchLocalService) {
233: this .journalContentSearchLocalService = journalContentSearchLocalService;
234: }
235:
236: public JournalContentSearchPersistence getJournalContentSearchPersistence() {
237: return journalContentSearchPersistence;
238: }
239:
240: public void setJournalContentSearchPersistence(
241: JournalContentSearchPersistence journalContentSearchPersistence) {
242: this .journalContentSearchPersistence = journalContentSearchPersistence;
243: }
244:
245: public JournalFeedPersistence getJournalFeedPersistence() {
246: return journalFeedPersistence;
247: }
248:
249: public void setJournalFeedPersistence(
250: JournalFeedPersistence journalFeedPersistence) {
251: this .journalFeedPersistence = journalFeedPersistence;
252: }
253:
254: public JournalFeedFinder getJournalFeedFinder() {
255: return journalFeedFinder;
256: }
257:
258: public void setJournalFeedFinder(JournalFeedFinder journalFeedFinder) {
259: this .journalFeedFinder = journalFeedFinder;
260: }
261:
262: public JournalStructureLocalService getJournalStructureLocalService() {
263: return journalStructureLocalService;
264: }
265:
266: public void setJournalStructureLocalService(
267: JournalStructureLocalService journalStructureLocalService) {
268: this .journalStructureLocalService = journalStructureLocalService;
269: }
270:
271: public JournalStructureService getJournalStructureService() {
272: return journalStructureService;
273: }
274:
275: public void setJournalStructureService(
276: JournalStructureService journalStructureService) {
277: this .journalStructureService = journalStructureService;
278: }
279:
280: public JournalStructurePersistence getJournalStructurePersistence() {
281: return journalStructurePersistence;
282: }
283:
284: public void setJournalStructurePersistence(
285: JournalStructurePersistence journalStructurePersistence) {
286: this .journalStructurePersistence = journalStructurePersistence;
287: }
288:
289: public JournalStructureFinder getJournalStructureFinder() {
290: return journalStructureFinder;
291: }
292:
293: public void setJournalStructureFinder(
294: JournalStructureFinder journalStructureFinder) {
295: this .journalStructureFinder = journalStructureFinder;
296: }
297:
298: public JournalTemplateLocalService getJournalTemplateLocalService() {
299: return journalTemplateLocalService;
300: }
301:
302: public void setJournalTemplateLocalService(
303: JournalTemplateLocalService journalTemplateLocalService) {
304: this .journalTemplateLocalService = journalTemplateLocalService;
305: }
306:
307: public JournalTemplateService getJournalTemplateService() {
308: return journalTemplateService;
309: }
310:
311: public void setJournalTemplateService(
312: JournalTemplateService journalTemplateService) {
313: this .journalTemplateService = journalTemplateService;
314: }
315:
316: public JournalTemplatePersistence getJournalTemplatePersistence() {
317: return journalTemplatePersistence;
318: }
319:
320: public void setJournalTemplatePersistence(
321: JournalTemplatePersistence journalTemplatePersistence) {
322: this .journalTemplatePersistence = journalTemplatePersistence;
323: }
324:
325: public JournalTemplateFinder getJournalTemplateFinder() {
326: return journalTemplateFinder;
327: }
328:
329: public void setJournalTemplateFinder(
330: JournalTemplateFinder journalTemplateFinder) {
331: this .journalTemplateFinder = journalTemplateFinder;
332: }
333:
334: public CounterLocalService getCounterLocalService() {
335: return counterLocalService;
336: }
337:
338: public void setCounterLocalService(
339: CounterLocalService counterLocalService) {
340: this .counterLocalService = counterLocalService;
341: }
342:
343: public CounterService getCounterService() {
344: return counterService;
345: }
346:
347: public void setCounterService(CounterService counterService) {
348: this .counterService = counterService;
349: }
350:
351: public ResourceLocalService getResourceLocalService() {
352: return resourceLocalService;
353: }
354:
355: public void setResourceLocalService(
356: ResourceLocalService resourceLocalService) {
357: this .resourceLocalService = resourceLocalService;
358: }
359:
360: public ResourceService getResourceService() {
361: return resourceService;
362: }
363:
364: public void setResourceService(ResourceService resourceService) {
365: this .resourceService = resourceService;
366: }
367:
368: public ResourcePersistence getResourcePersistence() {
369: return resourcePersistence;
370: }
371:
372: public void setResourcePersistence(
373: ResourcePersistence resourcePersistence) {
374: this .resourcePersistence = resourcePersistence;
375: }
376:
377: public ResourceFinder getResourceFinder() {
378: return resourceFinder;
379: }
380:
381: public void setResourceFinder(ResourceFinder resourceFinder) {
382: this .resourceFinder = resourceFinder;
383: }
384:
385: public UserLocalService getUserLocalService() {
386: return userLocalService;
387: }
388:
389: public void setUserLocalService(UserLocalService userLocalService) {
390: this .userLocalService = userLocalService;
391: }
392:
393: public UserService getUserService() {
394: return userService;
395: }
396:
397: public void setUserService(UserService userService) {
398: this .userService = userService;
399: }
400:
401: public UserPersistence getUserPersistence() {
402: return userPersistence;
403: }
404:
405: public void setUserPersistence(UserPersistence userPersistence) {
406: this .userPersistence = userPersistence;
407: }
408:
409: public UserFinder getUserFinder() {
410: return userFinder;
411: }
412:
413: public void setUserFinder(UserFinder userFinder) {
414: this .userFinder = userFinder;
415: }
416:
417: public void afterPropertiesSet() {
418: if (journalArticleLocalService == null) {
419: journalArticleLocalService = JournalArticleLocalServiceFactory
420: .getImpl();
421: }
422:
423: if (journalArticleService == null) {
424: journalArticleService = JournalArticleServiceFactory
425: .getImpl();
426: }
427:
428: if (journalArticlePersistence == null) {
429: journalArticlePersistence = JournalArticleUtil
430: .getPersistence();
431: }
432:
433: if (journalArticleFinder == null) {
434: journalArticleFinder = JournalArticleFinderUtil.getFinder();
435: }
436:
437: if (journalArticleImageLocalService == null) {
438: journalArticleImageLocalService = JournalArticleImageLocalServiceFactory
439: .getImpl();
440: }
441:
442: if (journalArticleImagePersistence == null) {
443: journalArticleImagePersistence = JournalArticleImageUtil
444: .getPersistence();
445: }
446:
447: if (journalArticleResourceLocalService == null) {
448: journalArticleResourceLocalService = JournalArticleResourceLocalServiceFactory
449: .getImpl();
450: }
451:
452: if (journalArticleResourcePersistence == null) {
453: journalArticleResourcePersistence = JournalArticleResourceUtil
454: .getPersistence();
455: }
456:
457: if (journalContentSearchLocalService == null) {
458: journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
459: .getImpl();
460: }
461:
462: if (journalContentSearchPersistence == null) {
463: journalContentSearchPersistence = JournalContentSearchUtil
464: .getPersistence();
465: }
466:
467: if (journalFeedPersistence == null) {
468: journalFeedPersistence = JournalFeedUtil.getPersistence();
469: }
470:
471: if (journalFeedFinder == null) {
472: journalFeedFinder = JournalFeedFinderUtil.getFinder();
473: }
474:
475: if (journalStructureLocalService == null) {
476: journalStructureLocalService = JournalStructureLocalServiceFactory
477: .getImpl();
478: }
479:
480: if (journalStructureService == null) {
481: journalStructureService = JournalStructureServiceFactory
482: .getImpl();
483: }
484:
485: if (journalStructurePersistence == null) {
486: journalStructurePersistence = JournalStructureUtil
487: .getPersistence();
488: }
489:
490: if (journalStructureFinder == null) {
491: journalStructureFinder = JournalStructureFinderUtil
492: .getFinder();
493: }
494:
495: if (journalTemplateLocalService == null) {
496: journalTemplateLocalService = JournalTemplateLocalServiceFactory
497: .getImpl();
498: }
499:
500: if (journalTemplateService == null) {
501: journalTemplateService = JournalTemplateServiceFactory
502: .getImpl();
503: }
504:
505: if (journalTemplatePersistence == null) {
506: journalTemplatePersistence = JournalTemplateUtil
507: .getPersistence();
508: }
509:
510: if (journalTemplateFinder == null) {
511: journalTemplateFinder = JournalTemplateFinderUtil
512: .getFinder();
513: }
514:
515: if (counterLocalService == null) {
516: counterLocalService = CounterLocalServiceFactory.getImpl();
517: }
518:
519: if (counterService == null) {
520: counterService = CounterServiceFactory.getImpl();
521: }
522:
523: if (resourceLocalService == null) {
524: resourceLocalService = ResourceLocalServiceFactory
525: .getImpl();
526: }
527:
528: if (resourceService == null) {
529: resourceService = ResourceServiceFactory.getImpl();
530: }
531:
532: if (resourcePersistence == null) {
533: resourcePersistence = ResourceUtil.getPersistence();
534: }
535:
536: if (resourceFinder == null) {
537: resourceFinder = ResourceFinderUtil.getFinder();
538: }
539:
540: if (userLocalService == null) {
541: userLocalService = UserLocalServiceFactory.getImpl();
542: }
543:
544: if (userService == null) {
545: userService = UserServiceFactory.getImpl();
546: }
547:
548: if (userPersistence == null) {
549: userPersistence = UserUtil.getPersistence();
550: }
551:
552: if (userFinder == null) {
553: userFinder = UserFinderUtil.getFinder();
554: }
555: }
556:
557: protected JournalArticleLocalService journalArticleLocalService;
558: protected JournalArticleService journalArticleService;
559: protected JournalArticlePersistence journalArticlePersistence;
560: protected JournalArticleFinder journalArticleFinder;
561: protected JournalArticleImageLocalService journalArticleImageLocalService;
562: protected JournalArticleImagePersistence journalArticleImagePersistence;
563: protected JournalArticleResourceLocalService journalArticleResourceLocalService;
564: protected JournalArticleResourcePersistence journalArticleResourcePersistence;
565: protected JournalContentSearchLocalService journalContentSearchLocalService;
566: protected JournalContentSearchPersistence journalContentSearchPersistence;
567: protected JournalFeedPersistence journalFeedPersistence;
568: protected JournalFeedFinder journalFeedFinder;
569: protected JournalStructureLocalService journalStructureLocalService;
570: protected JournalStructureService journalStructureService;
571: protected JournalStructurePersistence journalStructurePersistence;
572: protected JournalStructureFinder journalStructureFinder;
573: protected JournalTemplateLocalService journalTemplateLocalService;
574: protected JournalTemplateService journalTemplateService;
575: protected JournalTemplatePersistence journalTemplatePersistence;
576: protected JournalTemplateFinder journalTemplateFinder;
577: protected CounterLocalService counterLocalService;
578: protected CounterService counterService;
579: protected ResourceLocalService resourceLocalService;
580: protected ResourceService resourceService;
581: protected ResourcePersistence resourcePersistence;
582: protected ResourceFinder resourceFinder;
583: protected UserLocalService userLocalService;
584: protected UserService userService;
585: protected UserPersistence userPersistence;
586: protected UserFinder userFinder;
587: }
|