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