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:
031: import com.liferay.portlet.journal.model.JournalArticleImage;
032: import com.liferay.portlet.journal.model.impl.JournalArticleImageImpl;
033: import com.liferay.portlet.journal.service.JournalArticleImageLocalService;
034: import com.liferay.portlet.journal.service.JournalArticleLocalService;
035: import com.liferay.portlet.journal.service.JournalArticleLocalServiceFactory;
036: import com.liferay.portlet.journal.service.JournalArticleResourceLocalService;
037: import com.liferay.portlet.journal.service.JournalArticleResourceLocalServiceFactory;
038: import com.liferay.portlet.journal.service.JournalArticleService;
039: import com.liferay.portlet.journal.service.JournalArticleServiceFactory;
040: import com.liferay.portlet.journal.service.JournalContentSearchLocalService;
041: import com.liferay.portlet.journal.service.JournalContentSearchLocalServiceFactory;
042: import com.liferay.portlet.journal.service.JournalFeedLocalService;
043: import com.liferay.portlet.journal.service.JournalFeedLocalServiceFactory;
044: import com.liferay.portlet.journal.service.JournalFeedService;
045: import com.liferay.portlet.journal.service.JournalFeedServiceFactory;
046: import com.liferay.portlet.journal.service.JournalStructureLocalService;
047: import com.liferay.portlet.journal.service.JournalStructureLocalServiceFactory;
048: import com.liferay.portlet.journal.service.JournalStructureService;
049: import com.liferay.portlet.journal.service.JournalStructureServiceFactory;
050: import com.liferay.portlet.journal.service.JournalTemplateLocalService;
051: import com.liferay.portlet.journal.service.JournalTemplateLocalServiceFactory;
052: import com.liferay.portlet.journal.service.JournalTemplateService;
053: import com.liferay.portlet.journal.service.JournalTemplateServiceFactory;
054: import com.liferay.portlet.journal.service.persistence.JournalArticleFinder;
055: import com.liferay.portlet.journal.service.persistence.JournalArticleFinderUtil;
056: import com.liferay.portlet.journal.service.persistence.JournalArticleImagePersistence;
057: import com.liferay.portlet.journal.service.persistence.JournalArticleImageUtil;
058: import com.liferay.portlet.journal.service.persistence.JournalArticlePersistence;
059: import com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence;
060: import com.liferay.portlet.journal.service.persistence.JournalArticleResourceUtil;
061: import com.liferay.portlet.journal.service.persistence.JournalArticleUtil;
062: import com.liferay.portlet.journal.service.persistence.JournalContentSearchPersistence;
063: import com.liferay.portlet.journal.service.persistence.JournalContentSearchUtil;
064: import com.liferay.portlet.journal.service.persistence.JournalFeedFinder;
065: import com.liferay.portlet.journal.service.persistence.JournalFeedFinderUtil;
066: import com.liferay.portlet.journal.service.persistence.JournalFeedPersistence;
067: import com.liferay.portlet.journal.service.persistence.JournalFeedUtil;
068: import com.liferay.portlet.journal.service.persistence.JournalStructureFinder;
069: import com.liferay.portlet.journal.service.persistence.JournalStructureFinderUtil;
070: import com.liferay.portlet.journal.service.persistence.JournalStructurePersistence;
071: import com.liferay.portlet.journal.service.persistence.JournalStructureUtil;
072: import com.liferay.portlet.journal.service.persistence.JournalTemplateFinder;
073: import com.liferay.portlet.journal.service.persistence.JournalTemplateFinderUtil;
074: import com.liferay.portlet.journal.service.persistence.JournalTemplatePersistence;
075: import com.liferay.portlet.journal.service.persistence.JournalTemplateUtil;
076:
077: import org.springframework.beans.factory.InitializingBean;
078:
079: import java.util.List;
080:
081: /**
082: * <a href="JournalArticleImageLocalServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
083: *
084: * @author Brian Wing Shun Chan
085: *
086: */
087: public abstract class JournalArticleImageLocalServiceBaseImpl implements
088: JournalArticleImageLocalService, InitializingBean {
089: public JournalArticleImage addJournalArticleImage(
090: JournalArticleImage model) throws SystemException {
091: JournalArticleImage journalArticleImage = new JournalArticleImageImpl();
092:
093: journalArticleImage.setNew(true);
094:
095: journalArticleImage
096: .setArticleImageId(model.getArticleImageId());
097: journalArticleImage.setGroupId(model.getGroupId());
098: journalArticleImage.setArticleId(model.getArticleId());
099: journalArticleImage.setVersion(model.getVersion());
100: journalArticleImage.setElName(model.getElName());
101: journalArticleImage.setLanguageId(model.getLanguageId());
102: journalArticleImage.setTempImage(model.getTempImage());
103:
104: return journalArticleImagePersistence
105: .update(journalArticleImage);
106: }
107:
108: public List dynamicQuery(DynamicQueryInitializer queryInitializer)
109: throws SystemException {
110: return journalArticleImagePersistence
111: .findWithDynamicQuery(queryInitializer);
112: }
113:
114: public List dynamicQuery(DynamicQueryInitializer queryInitializer,
115: int begin, int end) throws SystemException {
116: return journalArticleImagePersistence.findWithDynamicQuery(
117: queryInitializer, begin, end);
118: }
119:
120: public JournalArticleImage updateJournalArticleImage(
121: JournalArticleImage model) throws SystemException {
122: return journalArticleImagePersistence.update(model, true);
123: }
124:
125: public JournalArticleLocalService getJournalArticleLocalService() {
126: return journalArticleLocalService;
127: }
128:
129: public void setJournalArticleLocalService(
130: JournalArticleLocalService journalArticleLocalService) {
131: this .journalArticleLocalService = journalArticleLocalService;
132: }
133:
134: public JournalArticleService getJournalArticleService() {
135: return journalArticleService;
136: }
137:
138: public void setJournalArticleService(
139: JournalArticleService journalArticleService) {
140: this .journalArticleService = journalArticleService;
141: }
142:
143: public JournalArticlePersistence getJournalArticlePersistence() {
144: return journalArticlePersistence;
145: }
146:
147: public void setJournalArticlePersistence(
148: JournalArticlePersistence journalArticlePersistence) {
149: this .journalArticlePersistence = journalArticlePersistence;
150: }
151:
152: public JournalArticleFinder getJournalArticleFinder() {
153: return journalArticleFinder;
154: }
155:
156: public void setJournalArticleFinder(
157: JournalArticleFinder journalArticleFinder) {
158: this .journalArticleFinder = journalArticleFinder;
159: }
160:
161: public JournalArticleImagePersistence getJournalArticleImagePersistence() {
162: return journalArticleImagePersistence;
163: }
164:
165: public void setJournalArticleImagePersistence(
166: JournalArticleImagePersistence journalArticleImagePersistence) {
167: this .journalArticleImagePersistence = journalArticleImagePersistence;
168: }
169:
170: public JournalArticleResourceLocalService getJournalArticleResourceLocalService() {
171: return journalArticleResourceLocalService;
172: }
173:
174: public void setJournalArticleResourceLocalService(
175: JournalArticleResourceLocalService journalArticleResourceLocalService) {
176: this .journalArticleResourceLocalService = journalArticleResourceLocalService;
177: }
178:
179: public JournalArticleResourcePersistence getJournalArticleResourcePersistence() {
180: return journalArticleResourcePersistence;
181: }
182:
183: public void setJournalArticleResourcePersistence(
184: JournalArticleResourcePersistence journalArticleResourcePersistence) {
185: this .journalArticleResourcePersistence = journalArticleResourcePersistence;
186: }
187:
188: public JournalContentSearchLocalService getJournalContentSearchLocalService() {
189: return journalContentSearchLocalService;
190: }
191:
192: public void setJournalContentSearchLocalService(
193: JournalContentSearchLocalService journalContentSearchLocalService) {
194: this .journalContentSearchLocalService = journalContentSearchLocalService;
195: }
196:
197: public JournalContentSearchPersistence getJournalContentSearchPersistence() {
198: return journalContentSearchPersistence;
199: }
200:
201: public void setJournalContentSearchPersistence(
202: JournalContentSearchPersistence journalContentSearchPersistence) {
203: this .journalContentSearchPersistence = journalContentSearchPersistence;
204: }
205:
206: public JournalFeedLocalService getJournalFeedLocalService() {
207: return journalFeedLocalService;
208: }
209:
210: public void setJournalFeedLocalService(
211: JournalFeedLocalService journalFeedLocalService) {
212: this .journalFeedLocalService = journalFeedLocalService;
213: }
214:
215: public JournalFeedService getJournalFeedService() {
216: return journalFeedService;
217: }
218:
219: public void setJournalFeedService(
220: JournalFeedService journalFeedService) {
221: this .journalFeedService = journalFeedService;
222: }
223:
224: public JournalFeedPersistence getJournalFeedPersistence() {
225: return journalFeedPersistence;
226: }
227:
228: public void setJournalFeedPersistence(
229: JournalFeedPersistence journalFeedPersistence) {
230: this .journalFeedPersistence = journalFeedPersistence;
231: }
232:
233: public JournalFeedFinder getJournalFeedFinder() {
234: return journalFeedFinder;
235: }
236:
237: public void setJournalFeedFinder(JournalFeedFinder journalFeedFinder) {
238: this .journalFeedFinder = journalFeedFinder;
239: }
240:
241: public JournalStructureLocalService getJournalStructureLocalService() {
242: return journalStructureLocalService;
243: }
244:
245: public void setJournalStructureLocalService(
246: JournalStructureLocalService journalStructureLocalService) {
247: this .journalStructureLocalService = journalStructureLocalService;
248: }
249:
250: public JournalStructureService getJournalStructureService() {
251: return journalStructureService;
252: }
253:
254: public void setJournalStructureService(
255: JournalStructureService journalStructureService) {
256: this .journalStructureService = journalStructureService;
257: }
258:
259: public JournalStructurePersistence getJournalStructurePersistence() {
260: return journalStructurePersistence;
261: }
262:
263: public void setJournalStructurePersistence(
264: JournalStructurePersistence journalStructurePersistence) {
265: this .journalStructurePersistence = journalStructurePersistence;
266: }
267:
268: public JournalStructureFinder getJournalStructureFinder() {
269: return journalStructureFinder;
270: }
271:
272: public void setJournalStructureFinder(
273: JournalStructureFinder journalStructureFinder) {
274: this .journalStructureFinder = journalStructureFinder;
275: }
276:
277: public JournalTemplateLocalService getJournalTemplateLocalService() {
278: return journalTemplateLocalService;
279: }
280:
281: public void setJournalTemplateLocalService(
282: JournalTemplateLocalService journalTemplateLocalService) {
283: this .journalTemplateLocalService = journalTemplateLocalService;
284: }
285:
286: public JournalTemplateService getJournalTemplateService() {
287: return journalTemplateService;
288: }
289:
290: public void setJournalTemplateService(
291: JournalTemplateService journalTemplateService) {
292: this .journalTemplateService = journalTemplateService;
293: }
294:
295: public JournalTemplatePersistence getJournalTemplatePersistence() {
296: return journalTemplatePersistence;
297: }
298:
299: public void setJournalTemplatePersistence(
300: JournalTemplatePersistence journalTemplatePersistence) {
301: this .journalTemplatePersistence = journalTemplatePersistence;
302: }
303:
304: public JournalTemplateFinder getJournalTemplateFinder() {
305: return journalTemplateFinder;
306: }
307:
308: public void setJournalTemplateFinder(
309: JournalTemplateFinder journalTemplateFinder) {
310: this .journalTemplateFinder = journalTemplateFinder;
311: }
312:
313: public CounterLocalService getCounterLocalService() {
314: return counterLocalService;
315: }
316:
317: public void setCounterLocalService(
318: CounterLocalService counterLocalService) {
319: this .counterLocalService = counterLocalService;
320: }
321:
322: public CounterService getCounterService() {
323: return counterService;
324: }
325:
326: public void setCounterService(CounterService counterService) {
327: this .counterService = counterService;
328: }
329:
330: public void afterPropertiesSet() {
331: if (journalArticleLocalService == null) {
332: journalArticleLocalService = JournalArticleLocalServiceFactory
333: .getImpl();
334: }
335:
336: if (journalArticleService == null) {
337: journalArticleService = JournalArticleServiceFactory
338: .getImpl();
339: }
340:
341: if (journalArticlePersistence == null) {
342: journalArticlePersistence = JournalArticleUtil
343: .getPersistence();
344: }
345:
346: if (journalArticleFinder == null) {
347: journalArticleFinder = JournalArticleFinderUtil.getFinder();
348: }
349:
350: if (journalArticleImagePersistence == null) {
351: journalArticleImagePersistence = JournalArticleImageUtil
352: .getPersistence();
353: }
354:
355: if (journalArticleResourceLocalService == null) {
356: journalArticleResourceLocalService = JournalArticleResourceLocalServiceFactory
357: .getImpl();
358: }
359:
360: if (journalArticleResourcePersistence == null) {
361: journalArticleResourcePersistence = JournalArticleResourceUtil
362: .getPersistence();
363: }
364:
365: if (journalContentSearchLocalService == null) {
366: journalContentSearchLocalService = JournalContentSearchLocalServiceFactory
367: .getImpl();
368: }
369:
370: if (journalContentSearchPersistence == null) {
371: journalContentSearchPersistence = JournalContentSearchUtil
372: .getPersistence();
373: }
374:
375: if (journalFeedLocalService == null) {
376: journalFeedLocalService = JournalFeedLocalServiceFactory
377: .getImpl();
378: }
379:
380: if (journalFeedService == null) {
381: journalFeedService = JournalFeedServiceFactory.getImpl();
382: }
383:
384: if (journalFeedPersistence == null) {
385: journalFeedPersistence = JournalFeedUtil.getPersistence();
386: }
387:
388: if (journalFeedFinder == null) {
389: journalFeedFinder = JournalFeedFinderUtil.getFinder();
390: }
391:
392: if (journalStructureLocalService == null) {
393: journalStructureLocalService = JournalStructureLocalServiceFactory
394: .getImpl();
395: }
396:
397: if (journalStructureService == null) {
398: journalStructureService = JournalStructureServiceFactory
399: .getImpl();
400: }
401:
402: if (journalStructurePersistence == null) {
403: journalStructurePersistence = JournalStructureUtil
404: .getPersistence();
405: }
406:
407: if (journalStructureFinder == null) {
408: journalStructureFinder = JournalStructureFinderUtil
409: .getFinder();
410: }
411:
412: if (journalTemplateLocalService == null) {
413: journalTemplateLocalService = JournalTemplateLocalServiceFactory
414: .getImpl();
415: }
416:
417: if (journalTemplateService == null) {
418: journalTemplateService = JournalTemplateServiceFactory
419: .getImpl();
420: }
421:
422: if (journalTemplatePersistence == null) {
423: journalTemplatePersistence = JournalTemplateUtil
424: .getPersistence();
425: }
426:
427: if (journalTemplateFinder == null) {
428: journalTemplateFinder = JournalTemplateFinderUtil
429: .getFinder();
430: }
431:
432: if (counterLocalService == null) {
433: counterLocalService = CounterLocalServiceFactory.getImpl();
434: }
435:
436: if (counterService == null) {
437: counterService = CounterServiceFactory.getImpl();
438: }
439: }
440:
441: protected JournalArticleLocalService journalArticleLocalService;
442: protected JournalArticleService journalArticleService;
443: protected JournalArticlePersistence journalArticlePersistence;
444: protected JournalArticleFinder journalArticleFinder;
445: protected JournalArticleImagePersistence journalArticleImagePersistence;
446: protected JournalArticleResourceLocalService journalArticleResourceLocalService;
447: protected JournalArticleResourcePersistence journalArticleResourcePersistence;
448: protected JournalContentSearchLocalService journalContentSearchLocalService;
449: protected JournalContentSearchPersistence journalContentSearchPersistence;
450: protected JournalFeedLocalService journalFeedLocalService;
451: protected JournalFeedService journalFeedService;
452: protected JournalFeedPersistence journalFeedPersistence;
453: protected JournalFeedFinder journalFeedFinder;
454: protected JournalStructureLocalService journalStructureLocalService;
455: protected JournalStructureService journalStructureService;
456: protected JournalStructurePersistence journalStructurePersistence;
457: protected JournalStructureFinder journalStructureFinder;
458: protected JournalTemplateLocalService journalTemplateLocalService;
459: protected JournalTemplateService journalTemplateService;
460: protected JournalTemplatePersistence journalTemplatePersistence;
461: protected JournalTemplateFinder journalTemplateFinder;
462: protected CounterLocalService counterLocalService;
463: protected CounterService counterService;
464: }
|