1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
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.PortletPreferencesService;
40  import com.liferay.portal.service.PortletPreferencesServiceFactory;
41  import com.liferay.portal.service.ResourceLocalService;
42  import com.liferay.portal.service.ResourceLocalServiceFactory;
43  import com.liferay.portal.service.ResourceService;
44  import com.liferay.portal.service.ResourceServiceFactory;
45  import com.liferay.portal.service.UserLocalService;
46  import com.liferay.portal.service.UserLocalServiceFactory;
47  import com.liferay.portal.service.UserService;
48  import com.liferay.portal.service.UserServiceFactory;
49  import com.liferay.portal.service.impl.PrincipalBean;
50  import com.liferay.portal.service.persistence.CompanyPersistence;
51  import com.liferay.portal.service.persistence.CompanyUtil;
52  import com.liferay.portal.service.persistence.PortletPreferencesFinder;
53  import com.liferay.portal.service.persistence.PortletPreferencesFinderUtil;
54  import com.liferay.portal.service.persistence.PortletPreferencesPersistence;
55  import com.liferay.portal.service.persistence.PortletPreferencesUtil;
56  import com.liferay.portal.service.persistence.ResourceFinder;
57  import com.liferay.portal.service.persistence.ResourceFinderUtil;
58  import com.liferay.portal.service.persistence.ResourcePersistence;
59  import com.liferay.portal.service.persistence.ResourceUtil;
60  import com.liferay.portal.service.persistence.UserFinder;
61  import com.liferay.portal.service.persistence.UserFinderUtil;
62  import com.liferay.portal.service.persistence.UserPersistence;
63  import com.liferay.portal.service.persistence.UserUtil;
64  
65  import com.liferay.portlet.calendar.service.CalEventLocalService;
66  import com.liferay.portlet.calendar.service.CalEventLocalServiceFactory;
67  import com.liferay.portlet.calendar.service.CalEventService;
68  import com.liferay.portlet.calendar.service.persistence.CalEventFinder;
69  import com.liferay.portlet.calendar.service.persistence.CalEventFinderUtil;
70  import com.liferay.portlet.calendar.service.persistence.CalEventPersistence;
71  import com.liferay.portlet.calendar.service.persistence.CalEventUtil;
72  
73  import org.springframework.beans.factory.InitializingBean;
74  
75  /**
76   * <a href="CalEventServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
77   *
78   * @author Brian Wing Shun Chan
79   *
80   */
81  public abstract class CalEventServiceBaseImpl extends PrincipalBean
82      implements CalEventService, InitializingBean {
83      public CalEventLocalService getCalEventLocalService() {
84          return calEventLocalService;
85      }
86  
87      public void setCalEventLocalService(
88          CalEventLocalService calEventLocalService) {
89          this.calEventLocalService = calEventLocalService;
90      }
91  
92      public CalEventPersistence getCalEventPersistence() {
93          return calEventPersistence;
94      }
95  
96      public void setCalEventPersistence(CalEventPersistence calEventPersistence) {
97          this.calEventPersistence = calEventPersistence;
98      }
99  
100     public CalEventFinder getCalEventFinder() {
101         return calEventFinder;
102     }
103 
104     public void setCalEventFinder(CalEventFinder calEventFinder) {
105         this.calEventFinder = calEventFinder;
106     }
107 
108     public CounterLocalService getCounterLocalService() {
109         return counterLocalService;
110     }
111 
112     public void setCounterLocalService(CounterLocalService counterLocalService) {
113         this.counterLocalService = counterLocalService;
114     }
115 
116     public CounterService getCounterService() {
117         return counterService;
118     }
119 
120     public void setCounterService(CounterService counterService) {
121         this.counterService = counterService;
122     }
123 
124     public MailService getMailService() {
125         return mailService;
126     }
127 
128     public void setMailService(MailService mailService) {
129         this.mailService = mailService;
130     }
131 
132     public CompanyLocalService getCompanyLocalService() {
133         return companyLocalService;
134     }
135 
136     public void setCompanyLocalService(CompanyLocalService companyLocalService) {
137         this.companyLocalService = companyLocalService;
138     }
139 
140     public CompanyService getCompanyService() {
141         return companyService;
142     }
143 
144     public void setCompanyService(CompanyService companyService) {
145         this.companyService = companyService;
146     }
147 
148     public CompanyPersistence getCompanyPersistence() {
149         return companyPersistence;
150     }
151 
152     public void setCompanyPersistence(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 PortletPreferencesService getPortletPreferencesService() {
166         return portletPreferencesService;
167     }
168 
169     public void setPortletPreferencesService(
170         PortletPreferencesService portletPreferencesService) {
171         this.portletPreferencesService = portletPreferencesService;
172     }
173 
174     public PortletPreferencesPersistence getPortletPreferencesPersistence() {
175         return portletPreferencesPersistence;
176     }
177 
178     public void setPortletPreferencesPersistence(
179         PortletPreferencesPersistence portletPreferencesPersistence) {
180         this.portletPreferencesPersistence = portletPreferencesPersistence;
181     }
182 
183     public PortletPreferencesFinder getPortletPreferencesFinder() {
184         return portletPreferencesFinder;
185     }
186 
187     public void setPortletPreferencesFinder(
188         PortletPreferencesFinder portletPreferencesFinder) {
189         this.portletPreferencesFinder = portletPreferencesFinder;
190     }
191 
192     public ResourceLocalService getResourceLocalService() {
193         return resourceLocalService;
194     }
195 
196     public void setResourceLocalService(
197         ResourceLocalService resourceLocalService) {
198         this.resourceLocalService = resourceLocalService;
199     }
200 
201     public ResourceService getResourceService() {
202         return resourceService;
203     }
204 
205     public void setResourceService(ResourceService resourceService) {
206         this.resourceService = resourceService;
207     }
208 
209     public ResourcePersistence getResourcePersistence() {
210         return resourcePersistence;
211     }
212 
213     public void setResourcePersistence(ResourcePersistence resourcePersistence) {
214         this.resourcePersistence = resourcePersistence;
215     }
216 
217     public ResourceFinder getResourceFinder() {
218         return resourceFinder;
219     }
220 
221     public void setResourceFinder(ResourceFinder resourceFinder) {
222         this.resourceFinder = resourceFinder;
223     }
224 
225     public UserLocalService getUserLocalService() {
226         return userLocalService;
227     }
228 
229     public void setUserLocalService(UserLocalService userLocalService) {
230         this.userLocalService = userLocalService;
231     }
232 
233     public UserService getUserService() {
234         return userService;
235     }
236 
237     public void setUserService(UserService userService) {
238         this.userService = userService;
239     }
240 
241     public UserPersistence getUserPersistence() {
242         return userPersistence;
243     }
244 
245     public void setUserPersistence(UserPersistence userPersistence) {
246         this.userPersistence = userPersistence;
247     }
248 
249     public UserFinder getUserFinder() {
250         return userFinder;
251     }
252 
253     public void setUserFinder(UserFinder userFinder) {
254         this.userFinder = userFinder;
255     }
256 
257     public void afterPropertiesSet() {
258         if (calEventLocalService == null) {
259             calEventLocalService = CalEventLocalServiceFactory.getImpl();
260         }
261 
262         if (calEventPersistence == null) {
263             calEventPersistence = CalEventUtil.getPersistence();
264         }
265 
266         if (calEventFinder == null) {
267             calEventFinder = CalEventFinderUtil.getFinder();
268         }
269 
270         if (counterLocalService == null) {
271             counterLocalService = CounterLocalServiceFactory.getImpl();
272         }
273 
274         if (counterService == null) {
275             counterService = CounterServiceFactory.getImpl();
276         }
277 
278         if (mailService == null) {
279             mailService = MailServiceFactory.getImpl();
280         }
281 
282         if (companyLocalService == null) {
283             companyLocalService = CompanyLocalServiceFactory.getImpl();
284         }
285 
286         if (companyService == null) {
287             companyService = CompanyServiceFactory.getImpl();
288         }
289 
290         if (companyPersistence == null) {
291             companyPersistence = CompanyUtil.getPersistence();
292         }
293 
294         if (portletPreferencesLocalService == null) {
295             portletPreferencesLocalService = PortletPreferencesLocalServiceFactory.getImpl();
296         }
297 
298         if (portletPreferencesService == null) {
299             portletPreferencesService = PortletPreferencesServiceFactory.getImpl();
300         }
301 
302         if (portletPreferencesPersistence == null) {
303             portletPreferencesPersistence = PortletPreferencesUtil.getPersistence();
304         }
305 
306         if (portletPreferencesFinder == null) {
307             portletPreferencesFinder = PortletPreferencesFinderUtil.getFinder();
308         }
309 
310         if (resourceLocalService == null) {
311             resourceLocalService = ResourceLocalServiceFactory.getImpl();
312         }
313 
314         if (resourceService == null) {
315             resourceService = ResourceServiceFactory.getImpl();
316         }
317 
318         if (resourcePersistence == null) {
319             resourcePersistence = ResourceUtil.getPersistence();
320         }
321 
322         if (resourceFinder == null) {
323             resourceFinder = ResourceFinderUtil.getFinder();
324         }
325 
326         if (userLocalService == null) {
327             userLocalService = UserLocalServiceFactory.getImpl();
328         }
329 
330         if (userService == null) {
331             userService = UserServiceFactory.getImpl();
332         }
333 
334         if (userPersistence == null) {
335             userPersistence = UserUtil.getPersistence();
336         }
337 
338         if (userFinder == null) {
339             userFinder = UserFinderUtil.getFinder();
340         }
341     }
342 
343     protected CalEventLocalService calEventLocalService;
344     protected CalEventPersistence calEventPersistence;
345     protected CalEventFinder calEventFinder;
346     protected CounterLocalService counterLocalService;
347     protected CounterService counterService;
348     protected MailService mailService;
349     protected CompanyLocalService companyLocalService;
350     protected CompanyService companyService;
351     protected CompanyPersistence companyPersistence;
352     protected PortletPreferencesLocalService portletPreferencesLocalService;
353     protected PortletPreferencesService portletPreferencesService;
354     protected PortletPreferencesPersistence portletPreferencesPersistence;
355     protected PortletPreferencesFinder portletPreferencesFinder;
356     protected ResourceLocalService resourceLocalService;
357     protected ResourceService resourceService;
358     protected ResourcePersistence resourcePersistence;
359     protected ResourceFinder resourceFinder;
360     protected UserLocalService userLocalService;
361     protected UserService userService;
362     protected UserPersistence userPersistence;
363     protected UserFinder userFinder;
364 }