1
22
23 package com.liferay.portlet.calendar.service.base;
24
25 import com.liferay.counter.service.CounterLocalService;
26 import com.liferay.counter.service.CounterLocalServiceFactory;
27 import com.liferay.counter.service.CounterService;
28 import com.liferay.counter.service.CounterServiceFactory;
29
30 import com.liferay.mail.service.MailService;
31 import com.liferay.mail.service.MailServiceFactory;
32
33 import com.liferay.portal.service.CompanyLocalService;
34 import com.liferay.portal.service.CompanyLocalServiceFactory;
35 import com.liferay.portal.service.CompanyService;
36 import com.liferay.portal.service.CompanyServiceFactory;
37 import com.liferay.portal.service.PortletPreferencesLocalService;
38 import com.liferay.portal.service.PortletPreferencesLocalServiceFactory;
39 import com.liferay.portal.service.ResourceLocalService;
40 import com.liferay.portal.service.ResourceLocalServiceFactory;
41 import com.liferay.portal.service.ResourceService;
42 import com.liferay.portal.service.ResourceServiceFactory;
43 import com.liferay.portal.service.UserLocalService;
44 import com.liferay.portal.service.UserLocalServiceFactory;
45 import com.liferay.portal.service.UserService;
46 import com.liferay.portal.service.UserServiceFactory;
47 import com.liferay.portal.service.impl.PrincipalBean;
48 import com.liferay.portal.service.persistence.CompanyPersistence;
49 import com.liferay.portal.service.persistence.CompanyUtil;
50 import com.liferay.portal.service.persistence.PortletPreferencesFinder;
51 import com.liferay.portal.service.persistence.PortletPreferencesFinderUtil;
52 import com.liferay.portal.service.persistence.PortletPreferencesPersistence;
53 import com.liferay.portal.service.persistence.PortletPreferencesUtil;
54 import com.liferay.portal.service.persistence.ResourceFinder;
55 import com.liferay.portal.service.persistence.ResourceFinderUtil;
56 import com.liferay.portal.service.persistence.ResourcePersistence;
57 import com.liferay.portal.service.persistence.ResourceUtil;
58 import com.liferay.portal.service.persistence.UserFinder;
59 import com.liferay.portal.service.persistence.UserFinderUtil;
60 import com.liferay.portal.service.persistence.UserPersistence;
61 import com.liferay.portal.service.persistence.UserUtil;
62
63 import com.liferay.portlet.calendar.service.CalEventLocalService;
64 import com.liferay.portlet.calendar.service.CalEventLocalServiceFactory;
65 import com.liferay.portlet.calendar.service.CalEventService;
66 import com.liferay.portlet.calendar.service.persistence.CalEventFinder;
67 import com.liferay.portlet.calendar.service.persistence.CalEventFinderUtil;
68 import com.liferay.portlet.calendar.service.persistence.CalEventPersistence;
69 import com.liferay.portlet.calendar.service.persistence.CalEventUtil;
70
71 import org.springframework.beans.factory.InitializingBean;
72
73
79 public abstract class CalEventServiceBaseImpl extends PrincipalBean
80 implements CalEventService, InitializingBean {
81 public CalEventLocalService getCalEventLocalService() {
82 return calEventLocalService;
83 }
84
85 public void setCalEventLocalService(
86 CalEventLocalService calEventLocalService) {
87 this.calEventLocalService = calEventLocalService;
88 }
89
90 public CalEventPersistence getCalEventPersistence() {
91 return calEventPersistence;
92 }
93
94 public void setCalEventPersistence(CalEventPersistence calEventPersistence) {
95 this.calEventPersistence = calEventPersistence;
96 }
97
98 public CalEventFinder getCalEventFinder() {
99 return calEventFinder;
100 }
101
102 public void setCalEventFinder(CalEventFinder calEventFinder) {
103 this.calEventFinder = calEventFinder;
104 }
105
106 public CounterLocalService getCounterLocalService() {
107 return counterLocalService;
108 }
109
110 public void setCounterLocalService(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(CompanyLocalService companyLocalService) {
135 this.companyLocalService = companyLocalService;
136 }
137
138 public CompanyService getCompanyService() {
139 return companyService;
140 }
141
142 public void setCompanyService(CompanyService companyService) {
143 this.companyService = companyService;
144 }
145
146 public CompanyPersistence getCompanyPersistence() {
147 return companyPersistence;
148 }
149
150 public void setCompanyPersistence(CompanyPersistence companyPersistence) {
151 this.companyPersistence = companyPersistence;
152 }
153
154 public PortletPreferencesLocalService getPortletPreferencesLocalService() {
155 return portletPreferencesLocalService;
156 }
157
158 public void setPortletPreferencesLocalService(
159 PortletPreferencesLocalService portletPreferencesLocalService) {
160 this.portletPreferencesLocalService = portletPreferencesLocalService;
161 }
162
163 public PortletPreferencesPersistence getPortletPreferencesPersistence() {
164 return portletPreferencesPersistence;
165 }
166
167 public void setPortletPreferencesPersistence(
168 PortletPreferencesPersistence portletPreferencesPersistence) {
169 this.portletPreferencesPersistence = portletPreferencesPersistence;
170 }
171
172 public PortletPreferencesFinder getPortletPreferencesFinder() {
173 return portletPreferencesFinder;
174 }
175
176 public void setPortletPreferencesFinder(
177 PortletPreferencesFinder portletPreferencesFinder) {
178 this.portletPreferencesFinder = portletPreferencesFinder;
179 }
180
181 public ResourceLocalService getResourceLocalService() {
182 return resourceLocalService;
183 }
184
185 public void setResourceLocalService(
186 ResourceLocalService resourceLocalService) {
187 this.resourceLocalService = resourceLocalService;
188 }
189
190 public ResourceService getResourceService() {
191 return resourceService;
192 }
193
194 public void setResourceService(ResourceService resourceService) {
195 this.resourceService = resourceService;
196 }
197
198 public ResourcePersistence getResourcePersistence() {
199 return resourcePersistence;
200 }
201
202 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
203 this.resourcePersistence = resourcePersistence;
204 }
205
206 public ResourceFinder getResourceFinder() {
207 return resourceFinder;
208 }
209
210 public void setResourceFinder(ResourceFinder resourceFinder) {
211 this.resourceFinder = resourceFinder;
212 }
213
214 public UserLocalService getUserLocalService() {
215 return userLocalService;
216 }
217
218 public void setUserLocalService(UserLocalService userLocalService) {
219 this.userLocalService = userLocalService;
220 }
221
222 public UserService getUserService() {
223 return userService;
224 }
225
226 public void setUserService(UserService userService) {
227 this.userService = userService;
228 }
229
230 public UserPersistence getUserPersistence() {
231 return userPersistence;
232 }
233
234 public void setUserPersistence(UserPersistence userPersistence) {
235 this.userPersistence = userPersistence;
236 }
237
238 public UserFinder getUserFinder() {
239 return userFinder;
240 }
241
242 public void setUserFinder(UserFinder userFinder) {
243 this.userFinder = userFinder;
244 }
245
246 public void afterPropertiesSet() {
247 if (calEventLocalService == null) {
248 calEventLocalService = CalEventLocalServiceFactory.getImpl();
249 }
250
251 if (calEventPersistence == null) {
252 calEventPersistence = CalEventUtil.getPersistence();
253 }
254
255 if (calEventFinder == null) {
256 calEventFinder = CalEventFinderUtil.getFinder();
257 }
258
259 if (counterLocalService == null) {
260 counterLocalService = CounterLocalServiceFactory.getImpl();
261 }
262
263 if (counterService == null) {
264 counterService = CounterServiceFactory.getImpl();
265 }
266
267 if (mailService == null) {
268 mailService = MailServiceFactory.getImpl();
269 }
270
271 if (companyLocalService == null) {
272 companyLocalService = CompanyLocalServiceFactory.getImpl();
273 }
274
275 if (companyService == null) {
276 companyService = CompanyServiceFactory.getImpl();
277 }
278
279 if (companyPersistence == null) {
280 companyPersistence = CompanyUtil.getPersistence();
281 }
282
283 if (portletPreferencesLocalService == null) {
284 portletPreferencesLocalService = PortletPreferencesLocalServiceFactory.getImpl();
285 }
286
287 if (portletPreferencesPersistence == null) {
288 portletPreferencesPersistence = PortletPreferencesUtil.getPersistence();
289 }
290
291 if (portletPreferencesFinder == null) {
292 portletPreferencesFinder = PortletPreferencesFinderUtil.getFinder();
293 }
294
295 if (resourceLocalService == null) {
296 resourceLocalService = ResourceLocalServiceFactory.getImpl();
297 }
298
299 if (resourceService == null) {
300 resourceService = ResourceServiceFactory.getImpl();
301 }
302
303 if (resourcePersistence == null) {
304 resourcePersistence = ResourceUtil.getPersistence();
305 }
306
307 if (resourceFinder == null) {
308 resourceFinder = ResourceFinderUtil.getFinder();
309 }
310
311 if (userLocalService == null) {
312 userLocalService = UserLocalServiceFactory.getImpl();
313 }
314
315 if (userService == null) {
316 userService = UserServiceFactory.getImpl();
317 }
318
319 if (userPersistence == null) {
320 userPersistence = UserUtil.getPersistence();
321 }
322
323 if (userFinder == null) {
324 userFinder = UserFinderUtil.getFinder();
325 }
326 }
327
328 protected CalEventLocalService calEventLocalService;
329 protected CalEventPersistence calEventPersistence;
330 protected CalEventFinder calEventFinder;
331 protected CounterLocalService counterLocalService;
332 protected CounterService counterService;
333 protected MailService mailService;
334 protected CompanyLocalService companyLocalService;
335 protected CompanyService companyService;
336 protected CompanyPersistence companyPersistence;
337 protected PortletPreferencesLocalService portletPreferencesLocalService;
338 protected PortletPreferencesPersistence portletPreferencesPersistence;
339 protected PortletPreferencesFinder portletPreferencesFinder;
340 protected ResourceLocalService resourceLocalService;
341 protected ResourceService resourceService;
342 protected ResourcePersistence resourcePersistence;
343 protected ResourceFinder resourceFinder;
344 protected UserLocalService userLocalService;
345 protected UserService userService;
346 protected UserPersistence userPersistence;
347 protected UserFinder userFinder;
348 }