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.tags.service.TagsEntryLocalService;
047: import com.liferay.portlet.tags.service.TagsEntryLocalServiceFactory;
048: import com.liferay.portlet.tags.service.TagsEntryService;
049: import com.liferay.portlet.tags.service.TagsEntryServiceFactory;
050: import com.liferay.portlet.tags.service.persistence.TagsEntryFinder;
051: import com.liferay.portlet.tags.service.persistence.TagsEntryFinderUtil;
052: import com.liferay.portlet.tags.service.persistence.TagsEntryPersistence;
053: import com.liferay.portlet.tags.service.persistence.TagsEntryUtil;
054: import com.liferay.portlet.wiki.service.WikiNodeLocalService;
055: import com.liferay.portlet.wiki.service.WikiNodeLocalServiceFactory;
056: import com.liferay.portlet.wiki.service.WikiNodeService;
057: import com.liferay.portlet.wiki.service.WikiPageLocalService;
058: import com.liferay.portlet.wiki.service.WikiPageLocalServiceFactory;
059: import com.liferay.portlet.wiki.service.WikiPageResourceLocalService;
060: import com.liferay.portlet.wiki.service.WikiPageResourceLocalServiceFactory;
061: import com.liferay.portlet.wiki.service.WikiPageService;
062: import com.liferay.portlet.wiki.service.WikiPageServiceFactory;
063: import com.liferay.portlet.wiki.service.persistence.WikiNodePersistence;
064: import com.liferay.portlet.wiki.service.persistence.WikiNodeUtil;
065: import com.liferay.portlet.wiki.service.persistence.WikiPageFinder;
066: import com.liferay.portlet.wiki.service.persistence.WikiPageFinderUtil;
067: import com.liferay.portlet.wiki.service.persistence.WikiPagePersistence;
068: import com.liferay.portlet.wiki.service.persistence.WikiPageResourcePersistence;
069: import com.liferay.portlet.wiki.service.persistence.WikiPageResourceUtil;
070: import com.liferay.portlet.wiki.service.persistence.WikiPageUtil;
071:
072: import org.springframework.beans.factory.InitializingBean;
073:
074: /**
075: * <a href="WikiNodeServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
076: *
077: * @author Brian Wing Shun Chan
078: *
079: */
080: public abstract class WikiNodeServiceBaseImpl extends PrincipalBean
081: implements WikiNodeService, InitializingBean {
082: public WikiNodeLocalService getWikiNodeLocalService() {
083: return wikiNodeLocalService;
084: }
085:
086: public void setWikiNodeLocalService(
087: WikiNodeLocalService wikiNodeLocalService) {
088: this .wikiNodeLocalService = wikiNodeLocalService;
089: }
090:
091: public WikiNodePersistence getWikiNodePersistence() {
092: return wikiNodePersistence;
093: }
094:
095: public void setWikiNodePersistence(
096: WikiNodePersistence wikiNodePersistence) {
097: this .wikiNodePersistence = wikiNodePersistence;
098: }
099:
100: public WikiPageLocalService getWikiPageLocalService() {
101: return wikiPageLocalService;
102: }
103:
104: public void setWikiPageLocalService(
105: WikiPageLocalService wikiPageLocalService) {
106: this .wikiPageLocalService = wikiPageLocalService;
107: }
108:
109: public WikiPageService getWikiPageService() {
110: return wikiPageService;
111: }
112:
113: public void setWikiPageService(WikiPageService wikiPageService) {
114: this .wikiPageService = wikiPageService;
115: }
116:
117: public WikiPagePersistence getWikiPagePersistence() {
118: return wikiPagePersistence;
119: }
120:
121: public void setWikiPagePersistence(
122: WikiPagePersistence wikiPagePersistence) {
123: this .wikiPagePersistence = wikiPagePersistence;
124: }
125:
126: public WikiPageFinder getWikiPageFinder() {
127: return wikiPageFinder;
128: }
129:
130: public void setWikiPageFinder(WikiPageFinder wikiPageFinder) {
131: this .wikiPageFinder = wikiPageFinder;
132: }
133:
134: public WikiPageResourceLocalService getWikiPageResourceLocalService() {
135: return wikiPageResourceLocalService;
136: }
137:
138: public void setWikiPageResourceLocalService(
139: WikiPageResourceLocalService wikiPageResourceLocalService) {
140: this .wikiPageResourceLocalService = wikiPageResourceLocalService;
141: }
142:
143: public WikiPageResourcePersistence getWikiPageResourcePersistence() {
144: return wikiPageResourcePersistence;
145: }
146:
147: public void setWikiPageResourcePersistence(
148: WikiPageResourcePersistence wikiPageResourcePersistence) {
149: this .wikiPageResourcePersistence = wikiPageResourcePersistence;
150: }
151:
152: public CounterLocalService getCounterLocalService() {
153: return counterLocalService;
154: }
155:
156: public void setCounterLocalService(
157: CounterLocalService counterLocalService) {
158: this .counterLocalService = counterLocalService;
159: }
160:
161: public CounterService getCounterService() {
162: return counterService;
163: }
164:
165: public void setCounterService(CounterService counterService) {
166: this .counterService = counterService;
167: }
168:
169: public ResourceLocalService getResourceLocalService() {
170: return resourceLocalService;
171: }
172:
173: public void setResourceLocalService(
174: ResourceLocalService resourceLocalService) {
175: this .resourceLocalService = resourceLocalService;
176: }
177:
178: public ResourceService getResourceService() {
179: return resourceService;
180: }
181:
182: public void setResourceService(ResourceService resourceService) {
183: this .resourceService = resourceService;
184: }
185:
186: public ResourcePersistence getResourcePersistence() {
187: return resourcePersistence;
188: }
189:
190: public void setResourcePersistence(
191: ResourcePersistence resourcePersistence) {
192: this .resourcePersistence = resourcePersistence;
193: }
194:
195: public ResourceFinder getResourceFinder() {
196: return resourceFinder;
197: }
198:
199: public void setResourceFinder(ResourceFinder resourceFinder) {
200: this .resourceFinder = resourceFinder;
201: }
202:
203: public UserLocalService getUserLocalService() {
204: return userLocalService;
205: }
206:
207: public void setUserLocalService(UserLocalService userLocalService) {
208: this .userLocalService = userLocalService;
209: }
210:
211: public UserService getUserService() {
212: return userService;
213: }
214:
215: public void setUserService(UserService userService) {
216: this .userService = userService;
217: }
218:
219: public UserPersistence getUserPersistence() {
220: return userPersistence;
221: }
222:
223: public void setUserPersistence(UserPersistence userPersistence) {
224: this .userPersistence = userPersistence;
225: }
226:
227: public UserFinder getUserFinder() {
228: return userFinder;
229: }
230:
231: public void setUserFinder(UserFinder userFinder) {
232: this .userFinder = userFinder;
233: }
234:
235: public TagsEntryLocalService getTagsEntryLocalService() {
236: return tagsEntryLocalService;
237: }
238:
239: public void setTagsEntryLocalService(
240: TagsEntryLocalService tagsEntryLocalService) {
241: this .tagsEntryLocalService = tagsEntryLocalService;
242: }
243:
244: public TagsEntryService getTagsEntryService() {
245: return tagsEntryService;
246: }
247:
248: public void setTagsEntryService(TagsEntryService tagsEntryService) {
249: this .tagsEntryService = tagsEntryService;
250: }
251:
252: public TagsEntryPersistence getTagsEntryPersistence() {
253: return tagsEntryPersistence;
254: }
255:
256: public void setTagsEntryPersistence(
257: TagsEntryPersistence tagsEntryPersistence) {
258: this .tagsEntryPersistence = tagsEntryPersistence;
259: }
260:
261: public TagsEntryFinder getTagsEntryFinder() {
262: return tagsEntryFinder;
263: }
264:
265: public void setTagsEntryFinder(TagsEntryFinder tagsEntryFinder) {
266: this .tagsEntryFinder = tagsEntryFinder;
267: }
268:
269: public void afterPropertiesSet() {
270: if (wikiNodeLocalService == null) {
271: wikiNodeLocalService = WikiNodeLocalServiceFactory
272: .getImpl();
273: }
274:
275: if (wikiNodePersistence == null) {
276: wikiNodePersistence = WikiNodeUtil.getPersistence();
277: }
278:
279: if (wikiPageLocalService == null) {
280: wikiPageLocalService = WikiPageLocalServiceFactory
281: .getImpl();
282: }
283:
284: if (wikiPageService == null) {
285: wikiPageService = WikiPageServiceFactory.getImpl();
286: }
287:
288: if (wikiPagePersistence == null) {
289: wikiPagePersistence = WikiPageUtil.getPersistence();
290: }
291:
292: if (wikiPageFinder == null) {
293: wikiPageFinder = WikiPageFinderUtil.getFinder();
294: }
295:
296: if (wikiPageResourceLocalService == null) {
297: wikiPageResourceLocalService = WikiPageResourceLocalServiceFactory
298: .getImpl();
299: }
300:
301: if (wikiPageResourcePersistence == null) {
302: wikiPageResourcePersistence = WikiPageResourceUtil
303: .getPersistence();
304: }
305:
306: if (counterLocalService == null) {
307: counterLocalService = CounterLocalServiceFactory.getImpl();
308: }
309:
310: if (counterService == null) {
311: counterService = CounterServiceFactory.getImpl();
312: }
313:
314: if (resourceLocalService == null) {
315: resourceLocalService = ResourceLocalServiceFactory
316: .getImpl();
317: }
318:
319: if (resourceService == null) {
320: resourceService = ResourceServiceFactory.getImpl();
321: }
322:
323: if (resourcePersistence == null) {
324: resourcePersistence = ResourceUtil.getPersistence();
325: }
326:
327: if (resourceFinder == null) {
328: resourceFinder = ResourceFinderUtil.getFinder();
329: }
330:
331: if (userLocalService == null) {
332: userLocalService = UserLocalServiceFactory.getImpl();
333: }
334:
335: if (userService == null) {
336: userService = UserServiceFactory.getImpl();
337: }
338:
339: if (userPersistence == null) {
340: userPersistence = UserUtil.getPersistence();
341: }
342:
343: if (userFinder == null) {
344: userFinder = UserFinderUtil.getFinder();
345: }
346:
347: if (tagsEntryLocalService == null) {
348: tagsEntryLocalService = TagsEntryLocalServiceFactory
349: .getImpl();
350: }
351:
352: if (tagsEntryService == null) {
353: tagsEntryService = TagsEntryServiceFactory.getImpl();
354: }
355:
356: if (tagsEntryPersistence == null) {
357: tagsEntryPersistence = TagsEntryUtil.getPersistence();
358: }
359:
360: if (tagsEntryFinder == null) {
361: tagsEntryFinder = TagsEntryFinderUtil.getFinder();
362: }
363: }
364:
365: protected WikiNodeLocalService wikiNodeLocalService;
366: protected WikiNodePersistence wikiNodePersistence;
367: protected WikiPageLocalService wikiPageLocalService;
368: protected WikiPageService wikiPageService;
369: protected WikiPagePersistence wikiPagePersistence;
370: protected WikiPageFinder wikiPageFinder;
371: protected WikiPageResourceLocalService wikiPageResourceLocalService;
372: protected WikiPageResourcePersistence wikiPageResourcePersistence;
373: protected CounterLocalService counterLocalService;
374: protected CounterService counterService;
375: protected ResourceLocalService resourceLocalService;
376: protected ResourceService resourceService;
377: protected ResourcePersistence resourcePersistence;
378: protected ResourceFinder resourceFinder;
379: protected UserLocalService userLocalService;
380: protected UserService userService;
381: protected UserPersistence userPersistence;
382: protected UserFinder userFinder;
383: protected TagsEntryLocalService tagsEntryLocalService;
384: protected TagsEntryService tagsEntryService;
385: protected TagsEntryPersistence tagsEntryPersistence;
386: protected TagsEntryFinder tagsEntryFinder;
387: }
|