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.calendar.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.mail.service.MailService;
029: import com.liferay.mail.service.MailServiceFactory;
030:
031: import com.liferay.portal.service.CompanyLocalService;
032: import com.liferay.portal.service.CompanyLocalServiceFactory;
033: import com.liferay.portal.service.CompanyService;
034: import com.liferay.portal.service.CompanyServiceFactory;
035: import com.liferay.portal.service.PortletPreferencesLocalService;
036: import com.liferay.portal.service.PortletPreferencesLocalServiceFactory;
037: import com.liferay.portal.service.ResourceLocalService;
038: import com.liferay.portal.service.ResourceLocalServiceFactory;
039: import com.liferay.portal.service.ResourceService;
040: import com.liferay.portal.service.ResourceServiceFactory;
041: import com.liferay.portal.service.UserLocalService;
042: import com.liferay.portal.service.UserLocalServiceFactory;
043: import com.liferay.portal.service.UserService;
044: import com.liferay.portal.service.UserServiceFactory;
045: import com.liferay.portal.service.impl.PrincipalBean;
046: import com.liferay.portal.service.persistence.CompanyPersistence;
047: import com.liferay.portal.service.persistence.CompanyUtil;
048: import com.liferay.portal.service.persistence.PortletPreferencesFinder;
049: import com.liferay.portal.service.persistence.PortletPreferencesFinderUtil;
050: import com.liferay.portal.service.persistence.PortletPreferencesPersistence;
051: import com.liferay.portal.service.persistence.PortletPreferencesUtil;
052: import com.liferay.portal.service.persistence.ResourceFinder;
053: import com.liferay.portal.service.persistence.ResourceFinderUtil;
054: import com.liferay.portal.service.persistence.ResourcePersistence;
055: import com.liferay.portal.service.persistence.ResourceUtil;
056: import com.liferay.portal.service.persistence.UserFinder;
057: import com.liferay.portal.service.persistence.UserFinderUtil;
058: import com.liferay.portal.service.persistence.UserPersistence;
059: import com.liferay.portal.service.persistence.UserUtil;
060:
061: import com.liferay.portlet.calendar.service.CalEventLocalService;
062: import com.liferay.portlet.calendar.service.CalEventLocalServiceFactory;
063: import com.liferay.portlet.calendar.service.CalEventService;
064: import com.liferay.portlet.calendar.service.persistence.CalEventFinder;
065: import com.liferay.portlet.calendar.service.persistence.CalEventFinderUtil;
066: import com.liferay.portlet.calendar.service.persistence.CalEventPersistence;
067: import com.liferay.portlet.calendar.service.persistence.CalEventUtil;
068:
069: import org.springframework.beans.factory.InitializingBean;
070:
071: /**
072: * <a href="CalEventServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
073: *
074: * @author Brian Wing Shun Chan
075: *
076: */
077: public abstract class CalEventServiceBaseImpl extends PrincipalBean
078: implements CalEventService, InitializingBean {
079: public CalEventLocalService getCalEventLocalService() {
080: return calEventLocalService;
081: }
082:
083: public void setCalEventLocalService(
084: CalEventLocalService calEventLocalService) {
085: this .calEventLocalService = calEventLocalService;
086: }
087:
088: public CalEventPersistence getCalEventPersistence() {
089: return calEventPersistence;
090: }
091:
092: public void setCalEventPersistence(
093: CalEventPersistence calEventPersistence) {
094: this .calEventPersistence = calEventPersistence;
095: }
096:
097: public CalEventFinder getCalEventFinder() {
098: return calEventFinder;
099: }
100:
101: public void setCalEventFinder(CalEventFinder calEventFinder) {
102: this .calEventFinder = calEventFinder;
103: }
104:
105: public CounterLocalService getCounterLocalService() {
106: return counterLocalService;
107: }
108:
109: public void setCounterLocalService(
110: CounterLocalService counterLocalService) {
111: this .counterLocalService = counterLocalService;
112: }
113:
114: public CounterService getCounterService() {
115: return counterService;
116: }
117:
118: public void setCounterService(CounterService counterService) {
119: this .counterService = counterService;
120: }
121:
122: public MailService getMailService() {
123: return mailService;
124: }
125:
126: public void setMailService(MailService mailService) {
127: this .mailService = mailService;
128: }
129:
130: public CompanyLocalService getCompanyLocalService() {
131: return companyLocalService;
132: }
133:
134: public void setCompanyLocalService(
135: CompanyLocalService companyLocalService) {
136: this .companyLocalService = companyLocalService;
137: }
138:
139: public CompanyService getCompanyService() {
140: return companyService;
141: }
142:
143: public void setCompanyService(CompanyService companyService) {
144: this .companyService = companyService;
145: }
146:
147: public CompanyPersistence getCompanyPersistence() {
148: return companyPersistence;
149: }
150:
151: public void setCompanyPersistence(
152: CompanyPersistence companyPersistence) {
153: this .companyPersistence = companyPersistence;
154: }
155:
156: public PortletPreferencesLocalService getPortletPreferencesLocalService() {
157: return portletPreferencesLocalService;
158: }
159:
160: public void setPortletPreferencesLocalService(
161: PortletPreferencesLocalService portletPreferencesLocalService) {
162: this .portletPreferencesLocalService = portletPreferencesLocalService;
163: }
164:
165: public PortletPreferencesPersistence getPortletPreferencesPersistence() {
166: return portletPreferencesPersistence;
167: }
168:
169: public void setPortletPreferencesPersistence(
170: PortletPreferencesPersistence portletPreferencesPersistence) {
171: this .portletPreferencesPersistence = portletPreferencesPersistence;
172: }
173:
174: public PortletPreferencesFinder getPortletPreferencesFinder() {
175: return portletPreferencesFinder;
176: }
177:
178: public void setPortletPreferencesFinder(
179: PortletPreferencesFinder portletPreferencesFinder) {
180: this .portletPreferencesFinder = portletPreferencesFinder;
181: }
182:
183: public ResourceLocalService getResourceLocalService() {
184: return resourceLocalService;
185: }
186:
187: public void setResourceLocalService(
188: ResourceLocalService resourceLocalService) {
189: this .resourceLocalService = resourceLocalService;
190: }
191:
192: public ResourceService getResourceService() {
193: return resourceService;
194: }
195:
196: public void setResourceService(ResourceService resourceService) {
197: this .resourceService = resourceService;
198: }
199:
200: public ResourcePersistence getResourcePersistence() {
201: return resourcePersistence;
202: }
203:
204: public void setResourcePersistence(
205: ResourcePersistence resourcePersistence) {
206: this .resourcePersistence = resourcePersistence;
207: }
208:
209: public ResourceFinder getResourceFinder() {
210: return resourceFinder;
211: }
212:
213: public void setResourceFinder(ResourceFinder resourceFinder) {
214: this .resourceFinder = resourceFinder;
215: }
216:
217: public UserLocalService getUserLocalService() {
218: return userLocalService;
219: }
220:
221: public void setUserLocalService(UserLocalService userLocalService) {
222: this .userLocalService = userLocalService;
223: }
224:
225: public UserService getUserService() {
226: return userService;
227: }
228:
229: public void setUserService(UserService userService) {
230: this .userService = userService;
231: }
232:
233: public UserPersistence getUserPersistence() {
234: return userPersistence;
235: }
236:
237: public void setUserPersistence(UserPersistence userPersistence) {
238: this .userPersistence = userPersistence;
239: }
240:
241: public UserFinder getUserFinder() {
242: return userFinder;
243: }
244:
245: public void setUserFinder(UserFinder userFinder) {
246: this .userFinder = userFinder;
247: }
248:
249: public void afterPropertiesSet() {
250: if (calEventLocalService == null) {
251: calEventLocalService = CalEventLocalServiceFactory
252: .getImpl();
253: }
254:
255: if (calEventPersistence == null) {
256: calEventPersistence = CalEventUtil.getPersistence();
257: }
258:
259: if (calEventFinder == null) {
260: calEventFinder = CalEventFinderUtil.getFinder();
261: }
262:
263: if (counterLocalService == null) {
264: counterLocalService = CounterLocalServiceFactory.getImpl();
265: }
266:
267: if (counterService == null) {
268: counterService = CounterServiceFactory.getImpl();
269: }
270:
271: if (mailService == null) {
272: mailService = MailServiceFactory.getImpl();
273: }
274:
275: if (companyLocalService == null) {
276: companyLocalService = CompanyLocalServiceFactory.getImpl();
277: }
278:
279: if (companyService == null) {
280: companyService = CompanyServiceFactory.getImpl();
281: }
282:
283: if (companyPersistence == null) {
284: companyPersistence = CompanyUtil.getPersistence();
285: }
286:
287: if (portletPreferencesLocalService == null) {
288: portletPreferencesLocalService = PortletPreferencesLocalServiceFactory
289: .getImpl();
290: }
291:
292: if (portletPreferencesPersistence == null) {
293: portletPreferencesPersistence = PortletPreferencesUtil
294: .getPersistence();
295: }
296:
297: if (portletPreferencesFinder == null) {
298: portletPreferencesFinder = PortletPreferencesFinderUtil
299: .getFinder();
300: }
301:
302: if (resourceLocalService == null) {
303: resourceLocalService = ResourceLocalServiceFactory
304: .getImpl();
305: }
306:
307: if (resourceService == null) {
308: resourceService = ResourceServiceFactory.getImpl();
309: }
310:
311: if (resourcePersistence == null) {
312: resourcePersistence = ResourceUtil.getPersistence();
313: }
314:
315: if (resourceFinder == null) {
316: resourceFinder = ResourceFinderUtil.getFinder();
317: }
318:
319: if (userLocalService == null) {
320: userLocalService = UserLocalServiceFactory.getImpl();
321: }
322:
323: if (userService == null) {
324: userService = UserServiceFactory.getImpl();
325: }
326:
327: if (userPersistence == null) {
328: userPersistence = UserUtil.getPersistence();
329: }
330:
331: if (userFinder == null) {
332: userFinder = UserFinderUtil.getFinder();
333: }
334: }
335:
336: protected CalEventLocalService calEventLocalService;
337: protected CalEventPersistence calEventPersistence;
338: protected CalEventFinder calEventFinder;
339: protected CounterLocalService counterLocalService;
340: protected CounterService counterService;
341: protected MailService mailService;
342: protected CompanyLocalService companyLocalService;
343: protected CompanyService companyService;
344: protected CompanyPersistence companyPersistence;
345: protected PortletPreferencesLocalService portletPreferencesLocalService;
346: protected PortletPreferencesPersistence portletPreferencesPersistence;
347: protected PortletPreferencesFinder portletPreferencesFinder;
348: protected ResourceLocalService resourceLocalService;
349: protected ResourceService resourceService;
350: protected ResourcePersistence resourcePersistence;
351: protected ResourceFinder resourceFinder;
352: protected UserLocalService userLocalService;
353: protected UserService userService;
354: protected UserPersistence userPersistence;
355: protected UserFinder userFinder;
356: }
|