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