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.wiki.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.service.ResourceLocalService;
029: import com.liferay.portal.service.ResourceLocalServiceFactory;
030: import com.liferay.portal.service.ResourceService;
031: import com.liferay.portal.service.ResourceServiceFactory;
032: import com.liferay.portal.service.UserLocalService;
033: import com.liferay.portal.service.UserLocalServiceFactory;
034: import com.liferay.portal.service.UserService;
035: import com.liferay.portal.service.UserServiceFactory;
036: import com.liferay.portal.service.impl.PrincipalBean;
037: import com.liferay.portal.service.persistence.ResourceFinder;
038: import com.liferay.portal.service.persistence.ResourceFinderUtil;
039: import com.liferay.portal.service.persistence.ResourcePersistence;
040: import com.liferay.portal.service.persistence.ResourceUtil;
041: import com.liferay.portal.service.persistence.UserFinder;
042: import com.liferay.portal.service.persistence.UserFinderUtil;
043: import com.liferay.portal.service.persistence.UserPersistence;
044: import com.liferay.portal.service.persistence.UserUtil;
045:
046: import com.liferay.portlet.messageboards.service.MBMessageLocalService;
047: import com.liferay.portlet.messageboards.service.MBMessageLocalServiceFactory;
048: import com.liferay.portlet.messageboards.service.MBMessageService;
049: import com.liferay.portlet.messageboards.service.MBMessageServiceFactory;
050: import com.liferay.portlet.messageboards.service.persistence.MBMessageFinder;
051: import com.liferay.portlet.messageboards.service.persistence.MBMessageFinderUtil;
052: import com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence;
053: import com.liferay.portlet.messageboards.service.persistence.MBMessageUtil;
054: import com.liferay.portlet.tags.service.TagsAssetLocalService;
055: import com.liferay.portlet.tags.service.TagsAssetLocalServiceFactory;
056: import com.liferay.portlet.tags.service.TagsAssetService;
057: import com.liferay.portlet.tags.service.TagsAssetServiceFactory;
058: import com.liferay.portlet.tags.service.persistence.TagsAssetFinder;
059: import com.liferay.portlet.tags.service.persistence.TagsAssetFinderUtil;
060: import com.liferay.portlet.tags.service.persistence.TagsAssetPersistence;
061: import com.liferay.portlet.tags.service.persistence.TagsAssetUtil;
062: import com.liferay.portlet.wiki.service.WikiNodeLocalService;
063: import com.liferay.portlet.wiki.service.WikiNodeLocalServiceFactory;
064: import com.liferay.portlet.wiki.service.WikiNodeService;
065: import com.liferay.portlet.wiki.service.WikiNodeServiceFactory;
066: import com.liferay.portlet.wiki.service.WikiPageLocalService;
067: import com.liferay.portlet.wiki.service.WikiPageLocalServiceFactory;
068: import com.liferay.portlet.wiki.service.WikiPageResourceLocalService;
069: import com.liferay.portlet.wiki.service.WikiPageResourceLocalServiceFactory;
070: import com.liferay.portlet.wiki.service.WikiPageService;
071: import com.liferay.portlet.wiki.service.persistence.WikiNodePersistence;
072: import com.liferay.portlet.wiki.service.persistence.WikiNodeUtil;
073: import com.liferay.portlet.wiki.service.persistence.WikiPageFinder;
074: import com.liferay.portlet.wiki.service.persistence.WikiPageFinderUtil;
075: import com.liferay.portlet.wiki.service.persistence.WikiPagePersistence;
076: import com.liferay.portlet.wiki.service.persistence.WikiPageResourcePersistence;
077: import com.liferay.portlet.wiki.service.persistence.WikiPageResourceUtil;
078: import com.liferay.portlet.wiki.service.persistence.WikiPageUtil;
079:
080: import org.springframework.beans.factory.InitializingBean;
081:
082: /**
083: * <a href="WikiPageServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
084: *
085: * @author Brian Wing Shun Chan
086: *
087: */
088: public abstract class WikiPageServiceBaseImpl extends PrincipalBean
089: implements WikiPageService, InitializingBean {
090: public WikiNodeLocalService getWikiNodeLocalService() {
091: return wikiNodeLocalService;
092: }
093:
094: public void setWikiNodeLocalService(
095: WikiNodeLocalService wikiNodeLocalService) {
096: this .wikiNodeLocalService = wikiNodeLocalService;
097: }
098:
099: public WikiNodeService getWikiNodeService() {
100: return wikiNodeService;
101: }
102:
103: public void setWikiNodeService(WikiNodeService wikiNodeService) {
104: this .wikiNodeService = wikiNodeService;
105: }
106:
107: public WikiNodePersistence getWikiNodePersistence() {
108: return wikiNodePersistence;
109: }
110:
111: public void setWikiNodePersistence(
112: WikiNodePersistence wikiNodePersistence) {
113: this .wikiNodePersistence = wikiNodePersistence;
114: }
115:
116: public WikiPageLocalService getWikiPageLocalService() {
117: return wikiPageLocalService;
118: }
119:
120: public void setWikiPageLocalService(
121: WikiPageLocalService wikiPageLocalService) {
122: this .wikiPageLocalService = wikiPageLocalService;
123: }
124:
125: public WikiPagePersistence getWikiPagePersistence() {
126: return wikiPagePersistence;
127: }
128:
129: public void setWikiPagePersistence(
130: WikiPagePersistence wikiPagePersistence) {
131: this .wikiPagePersistence = wikiPagePersistence;
132: }
133:
134: public WikiPageFinder getWikiPageFinder() {
135: return wikiPageFinder;
136: }
137:
138: public void setWikiPageFinder(WikiPageFinder wikiPageFinder) {
139: this .wikiPageFinder = wikiPageFinder;
140: }
141:
142: public WikiPageResourceLocalService getWikiPageResourceLocalService() {
143: return wikiPageResourceLocalService;
144: }
145:
146: public void setWikiPageResourceLocalService(
147: WikiPageResourceLocalService wikiPageResourceLocalService) {
148: this .wikiPageResourceLocalService = wikiPageResourceLocalService;
149: }
150:
151: public WikiPageResourcePersistence getWikiPageResourcePersistence() {
152: return wikiPageResourcePersistence;
153: }
154:
155: public void setWikiPageResourcePersistence(
156: WikiPageResourcePersistence wikiPageResourcePersistence) {
157: this .wikiPageResourcePersistence = wikiPageResourcePersistence;
158: }
159:
160: public CounterLocalService getCounterLocalService() {
161: return counterLocalService;
162: }
163:
164: public void setCounterLocalService(
165: CounterLocalService counterLocalService) {
166: this .counterLocalService = counterLocalService;
167: }
168:
169: public CounterService getCounterService() {
170: return counterService;
171: }
172:
173: public void setCounterService(CounterService counterService) {
174: this .counterService = counterService;
175: }
176:
177: public ResourceLocalService getResourceLocalService() {
178: return resourceLocalService;
179: }
180:
181: public void setResourceLocalService(
182: ResourceLocalService resourceLocalService) {
183: this .resourceLocalService = resourceLocalService;
184: }
185:
186: public ResourceService getResourceService() {
187: return resourceService;
188: }
189:
190: public void setResourceService(ResourceService resourceService) {
191: this .resourceService = resourceService;
192: }
193:
194: public ResourcePersistence getResourcePersistence() {
195: return resourcePersistence;
196: }
197:
198: public void setResourcePersistence(
199: ResourcePersistence resourcePersistence) {
200: this .resourcePersistence = resourcePersistence;
201: }
202:
203: public ResourceFinder getResourceFinder() {
204: return resourceFinder;
205: }
206:
207: public void setResourceFinder(ResourceFinder resourceFinder) {
208: this .resourceFinder = resourceFinder;
209: }
210:
211: public UserLocalService getUserLocalService() {
212: return userLocalService;
213: }
214:
215: public void setUserLocalService(UserLocalService userLocalService) {
216: this .userLocalService = userLocalService;
217: }
218:
219: public UserService getUserService() {
220: return userService;
221: }
222:
223: public void setUserService(UserService userService) {
224: this .userService = userService;
225: }
226:
227: public UserPersistence getUserPersistence() {
228: return userPersistence;
229: }
230:
231: public void setUserPersistence(UserPersistence userPersistence) {
232: this .userPersistence = userPersistence;
233: }
234:
235: public UserFinder getUserFinder() {
236: return userFinder;
237: }
238:
239: public void setUserFinder(UserFinder userFinder) {
240: this .userFinder = userFinder;
241: }
242:
243: public MBMessageLocalService getMBMessageLocalService() {
244: return mbMessageLocalService;
245: }
246:
247: public void setMBMessageLocalService(
248: MBMessageLocalService mbMessageLocalService) {
249: this .mbMessageLocalService = mbMessageLocalService;
250: }
251:
252: public MBMessageService getMBMessageService() {
253: return mbMessageService;
254: }
255:
256: public void setMBMessageService(MBMessageService mbMessageService) {
257: this .mbMessageService = mbMessageService;
258: }
259:
260: public MBMessagePersistence getMBMessagePersistence() {
261: return mbMessagePersistence;
262: }
263:
264: public void setMBMessagePersistence(
265: MBMessagePersistence mbMessagePersistence) {
266: this .mbMessagePersistence = mbMessagePersistence;
267: }
268:
269: public MBMessageFinder getMBMessageFinder() {
270: return mbMessageFinder;
271: }
272:
273: public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
274: this .mbMessageFinder = mbMessageFinder;
275: }
276:
277: public TagsAssetLocalService getTagsAssetLocalService() {
278: return tagsAssetLocalService;
279: }
280:
281: public void setTagsAssetLocalService(
282: TagsAssetLocalService tagsAssetLocalService) {
283: this .tagsAssetLocalService = tagsAssetLocalService;
284: }
285:
286: public TagsAssetService getTagsAssetService() {
287: return tagsAssetService;
288: }
289:
290: public void setTagsAssetService(TagsAssetService tagsAssetService) {
291: this .tagsAssetService = tagsAssetService;
292: }
293:
294: public TagsAssetPersistence getTagsAssetPersistence() {
295: return tagsAssetPersistence;
296: }
297:
298: public void setTagsAssetPersistence(
299: TagsAssetPersistence tagsAssetPersistence) {
300: this .tagsAssetPersistence = tagsAssetPersistence;
301: }
302:
303: public TagsAssetFinder getTagsAssetFinder() {
304: return tagsAssetFinder;
305: }
306:
307: public void setTagsAssetFinder(TagsAssetFinder tagsAssetFinder) {
308: this .tagsAssetFinder = tagsAssetFinder;
309: }
310:
311: public void afterPropertiesSet() {
312: if (wikiNodeLocalService == null) {
313: wikiNodeLocalService = WikiNodeLocalServiceFactory
314: .getImpl();
315: }
316:
317: if (wikiNodeService == null) {
318: wikiNodeService = WikiNodeServiceFactory.getImpl();
319: }
320:
321: if (wikiNodePersistence == null) {
322: wikiNodePersistence = WikiNodeUtil.getPersistence();
323: }
324:
325: if (wikiPageLocalService == null) {
326: wikiPageLocalService = WikiPageLocalServiceFactory
327: .getImpl();
328: }
329:
330: if (wikiPagePersistence == null) {
331: wikiPagePersistence = WikiPageUtil.getPersistence();
332: }
333:
334: if (wikiPageFinder == null) {
335: wikiPageFinder = WikiPageFinderUtil.getFinder();
336: }
337:
338: if (wikiPageResourceLocalService == null) {
339: wikiPageResourceLocalService = WikiPageResourceLocalServiceFactory
340: .getImpl();
341: }
342:
343: if (wikiPageResourcePersistence == null) {
344: wikiPageResourcePersistence = WikiPageResourceUtil
345: .getPersistence();
346: }
347:
348: if (counterLocalService == null) {
349: counterLocalService = CounterLocalServiceFactory.getImpl();
350: }
351:
352: if (counterService == null) {
353: counterService = CounterServiceFactory.getImpl();
354: }
355:
356: if (resourceLocalService == null) {
357: resourceLocalService = ResourceLocalServiceFactory
358: .getImpl();
359: }
360:
361: if (resourceService == null) {
362: resourceService = ResourceServiceFactory.getImpl();
363: }
364:
365: if (resourcePersistence == null) {
366: resourcePersistence = ResourceUtil.getPersistence();
367: }
368:
369: if (resourceFinder == null) {
370: resourceFinder = ResourceFinderUtil.getFinder();
371: }
372:
373: if (userLocalService == null) {
374: userLocalService = UserLocalServiceFactory.getImpl();
375: }
376:
377: if (userService == null) {
378: userService = UserServiceFactory.getImpl();
379: }
380:
381: if (userPersistence == null) {
382: userPersistence = UserUtil.getPersistence();
383: }
384:
385: if (userFinder == null) {
386: userFinder = UserFinderUtil.getFinder();
387: }
388:
389: if (mbMessageLocalService == null) {
390: mbMessageLocalService = MBMessageLocalServiceFactory
391: .getImpl();
392: }
393:
394: if (mbMessageService == null) {
395: mbMessageService = MBMessageServiceFactory.getImpl();
396: }
397:
398: if (mbMessagePersistence == null) {
399: mbMessagePersistence = MBMessageUtil.getPersistence();
400: }
401:
402: if (mbMessageFinder == null) {
403: mbMessageFinder = MBMessageFinderUtil.getFinder();
404: }
405:
406: if (tagsAssetLocalService == null) {
407: tagsAssetLocalService = TagsAssetLocalServiceFactory
408: .getImpl();
409: }
410:
411: if (tagsAssetService == null) {
412: tagsAssetService = TagsAssetServiceFactory.getImpl();
413: }
414:
415: if (tagsAssetPersistence == null) {
416: tagsAssetPersistence = TagsAssetUtil.getPersistence();
417: }
418:
419: if (tagsAssetFinder == null) {
420: tagsAssetFinder = TagsAssetFinderUtil.getFinder();
421: }
422: }
423:
424: protected WikiNodeLocalService wikiNodeLocalService;
425: protected WikiNodeService wikiNodeService;
426: protected WikiNodePersistence wikiNodePersistence;
427: protected WikiPageLocalService wikiPageLocalService;
428: protected WikiPagePersistence wikiPagePersistence;
429: protected WikiPageFinder wikiPageFinder;
430: protected WikiPageResourceLocalService wikiPageResourceLocalService;
431: protected WikiPageResourcePersistence wikiPageResourcePersistence;
432: protected CounterLocalService counterLocalService;
433: protected CounterService counterService;
434: protected ResourceLocalService resourceLocalService;
435: protected ResourceService resourceService;
436: protected ResourcePersistence resourcePersistence;
437: protected ResourceFinder resourceFinder;
438: protected UserLocalService userLocalService;
439: protected UserService userService;
440: protected UserPersistence userPersistence;
441: protected UserFinder userFinder;
442: protected MBMessageLocalService mbMessageLocalService;
443: protected MBMessageService mbMessageService;
444: protected MBMessagePersistence mbMessagePersistence;
445: protected MBMessageFinder mbMessageFinder;
446: protected TagsAssetLocalService tagsAssetLocalService;
447: protected TagsAssetService tagsAssetService;
448: protected TagsAssetPersistence tagsAssetPersistence;
449: protected TagsAssetFinder tagsAssetFinder;
450: }
|