1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portlet.calendar.service.base;
16  
17  import com.liferay.counter.service.CounterLocalService;
18  import com.liferay.counter.service.CounterService;
19  
20  import com.liferay.mail.service.MailService;
21  
22  import com.liferay.portal.SystemException;
23  import com.liferay.portal.kernel.annotation.BeanReference;
24  import com.liferay.portal.kernel.dao.db.DB;
25  import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
26  import com.liferay.portal.service.CompanyLocalService;
27  import com.liferay.portal.service.CompanyService;
28  import com.liferay.portal.service.PortletPreferencesLocalService;
29  import com.liferay.portal.service.PortletPreferencesService;
30  import com.liferay.portal.service.ResourceLocalService;
31  import com.liferay.portal.service.ResourceService;
32  import com.liferay.portal.service.UserLocalService;
33  import com.liferay.portal.service.UserService;
34  import com.liferay.portal.service.base.PrincipalBean;
35  import com.liferay.portal.service.persistence.CompanyPersistence;
36  import com.liferay.portal.service.persistence.PortletPreferencesFinder;
37  import com.liferay.portal.service.persistence.PortletPreferencesPersistence;
38  import com.liferay.portal.service.persistence.ResourceFinder;
39  import com.liferay.portal.service.persistence.ResourcePersistence;
40  import com.liferay.portal.service.persistence.UserFinder;
41  import com.liferay.portal.service.persistence.UserPersistence;
42  
43  import com.liferay.portlet.calendar.service.CalEventLocalService;
44  import com.liferay.portlet.calendar.service.CalEventService;
45  import com.liferay.portlet.calendar.service.persistence.CalEventFinder;
46  import com.liferay.portlet.calendar.service.persistence.CalEventPersistence;
47  import com.liferay.portlet.social.service.SocialActivityLocalService;
48  import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
49  import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
50  
51  /**
52   * <a href="CalEventServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
53   *
54   * @author Brian Wing Shun Chan
55   */
56  public abstract class CalEventServiceBaseImpl extends PrincipalBean
57      implements CalEventService {
58      public CalEventLocalService getCalEventLocalService() {
59          return calEventLocalService;
60      }
61  
62      public void setCalEventLocalService(
63          CalEventLocalService calEventLocalService) {
64          this.calEventLocalService = calEventLocalService;
65      }
66  
67      public CalEventService getCalEventService() {
68          return calEventService;
69      }
70  
71      public void setCalEventService(CalEventService calEventService) {
72          this.calEventService = calEventService;
73      }
74  
75      public CalEventPersistence getCalEventPersistence() {
76          return calEventPersistence;
77      }
78  
79      public void setCalEventPersistence(CalEventPersistence calEventPersistence) {
80          this.calEventPersistence = calEventPersistence;
81      }
82  
83      public CalEventFinder getCalEventFinder() {
84          return calEventFinder;
85      }
86  
87      public void setCalEventFinder(CalEventFinder calEventFinder) {
88          this.calEventFinder = calEventFinder;
89      }
90  
91      public CounterLocalService getCounterLocalService() {
92          return counterLocalService;
93      }
94  
95      public void setCounterLocalService(CounterLocalService counterLocalService) {
96          this.counterLocalService = counterLocalService;
97      }
98  
99      public CounterService getCounterService() {
100         return counterService;
101     }
102 
103     public void setCounterService(CounterService counterService) {
104         this.counterService = counterService;
105     }
106 
107     public MailService getMailService() {
108         return mailService;
109     }
110 
111     public void setMailService(MailService mailService) {
112         this.mailService = mailService;
113     }
114 
115     public CompanyLocalService getCompanyLocalService() {
116         return companyLocalService;
117     }
118 
119     public void setCompanyLocalService(CompanyLocalService companyLocalService) {
120         this.companyLocalService = companyLocalService;
121     }
122 
123     public CompanyService getCompanyService() {
124         return companyService;
125     }
126 
127     public void setCompanyService(CompanyService companyService) {
128         this.companyService = companyService;
129     }
130 
131     public CompanyPersistence getCompanyPersistence() {
132         return companyPersistence;
133     }
134 
135     public void setCompanyPersistence(CompanyPersistence companyPersistence) {
136         this.companyPersistence = companyPersistence;
137     }
138 
139     public PortletPreferencesLocalService getPortletPreferencesLocalService() {
140         return portletPreferencesLocalService;
141     }
142 
143     public void setPortletPreferencesLocalService(
144         PortletPreferencesLocalService portletPreferencesLocalService) {
145         this.portletPreferencesLocalService = portletPreferencesLocalService;
146     }
147 
148     public PortletPreferencesService getPortletPreferencesService() {
149         return portletPreferencesService;
150     }
151 
152     public void setPortletPreferencesService(
153         PortletPreferencesService portletPreferencesService) {
154         this.portletPreferencesService = portletPreferencesService;
155     }
156 
157     public PortletPreferencesPersistence getPortletPreferencesPersistence() {
158         return portletPreferencesPersistence;
159     }
160 
161     public void setPortletPreferencesPersistence(
162         PortletPreferencesPersistence portletPreferencesPersistence) {
163         this.portletPreferencesPersistence = portletPreferencesPersistence;
164     }
165 
166     public PortletPreferencesFinder getPortletPreferencesFinder() {
167         return portletPreferencesFinder;
168     }
169 
170     public void setPortletPreferencesFinder(
171         PortletPreferencesFinder portletPreferencesFinder) {
172         this.portletPreferencesFinder = portletPreferencesFinder;
173     }
174 
175     public ResourceLocalService getResourceLocalService() {
176         return resourceLocalService;
177     }
178 
179     public void setResourceLocalService(
180         ResourceLocalService resourceLocalService) {
181         this.resourceLocalService = resourceLocalService;
182     }
183 
184     public ResourceService getResourceService() {
185         return resourceService;
186     }
187 
188     public void setResourceService(ResourceService resourceService) {
189         this.resourceService = resourceService;
190     }
191 
192     public ResourcePersistence getResourcePersistence() {
193         return resourcePersistence;
194     }
195 
196     public void setResourcePersistence(ResourcePersistence resourcePersistence) {
197         this.resourcePersistence = resourcePersistence;
198     }
199 
200     public ResourceFinder getResourceFinder() {
201         return resourceFinder;
202     }
203 
204     public void setResourceFinder(ResourceFinder resourceFinder) {
205         this.resourceFinder = resourceFinder;
206     }
207 
208     public UserLocalService getUserLocalService() {
209         return userLocalService;
210     }
211 
212     public void setUserLocalService(UserLocalService userLocalService) {
213         this.userLocalService = userLocalService;
214     }
215 
216     public UserService getUserService() {
217         return userService;
218     }
219 
220     public void setUserService(UserService userService) {
221         this.userService = userService;
222     }
223 
224     public UserPersistence getUserPersistence() {
225         return userPersistence;
226     }
227 
228     public void setUserPersistence(UserPersistence userPersistence) {
229         this.userPersistence = userPersistence;
230     }
231 
232     public UserFinder getUserFinder() {
233         return userFinder;
234     }
235 
236     public void setUserFinder(UserFinder userFinder) {
237         this.userFinder = userFinder;
238     }
239 
240     public SocialActivityLocalService getSocialActivityLocalService() {
241         return socialActivityLocalService;
242     }
243 
244     public void setSocialActivityLocalService(
245         SocialActivityLocalService socialActivityLocalService) {
246         this.socialActivityLocalService = socialActivityLocalService;
247     }
248 
249     public SocialActivityPersistence getSocialActivityPersistence() {
250         return socialActivityPersistence;
251     }
252 
253     public void setSocialActivityPersistence(
254         SocialActivityPersistence socialActivityPersistence) {
255         this.socialActivityPersistence = socialActivityPersistence;
256     }
257 
258     public SocialActivityFinder getSocialActivityFinder() {
259         return socialActivityFinder;
260     }
261 
262     public void setSocialActivityFinder(
263         SocialActivityFinder socialActivityFinder) {
264         this.socialActivityFinder = socialActivityFinder;
265     }
266 
267     protected void runSQL(String sql) throws SystemException {
268         try {
269             DB db = DBFactoryUtil.getDB();
270 
271             db.runSQL(sql);
272         }
273         catch (Exception e) {
274             throw new SystemException(e);
275         }
276     }
277 
278     @BeanReference(name = "com.liferay.portlet.calendar.service.CalEventLocalService")
279     protected CalEventLocalService calEventLocalService;
280     @BeanReference(name = "com.liferay.portlet.calendar.service.CalEventService")
281     protected CalEventService calEventService;
282     @BeanReference(name = "com.liferay.portlet.calendar.service.persistence.CalEventPersistence")
283     protected CalEventPersistence calEventPersistence;
284     @BeanReference(name = "com.liferay.portlet.calendar.service.persistence.CalEventFinder")
285     protected CalEventFinder calEventFinder;
286     @BeanReference(name = "com.liferay.counter.service.CounterLocalService")
287     protected CounterLocalService counterLocalService;
288     @BeanReference(name = "com.liferay.counter.service.CounterService")
289     protected CounterService counterService;
290     @BeanReference(name = "com.liferay.mail.service.MailService")
291     protected MailService mailService;
292     @BeanReference(name = "com.liferay.portal.service.CompanyLocalService")
293     protected CompanyLocalService companyLocalService;
294     @BeanReference(name = "com.liferay.portal.service.CompanyService")
295     protected CompanyService companyService;
296     @BeanReference(name = "com.liferay.portal.service.persistence.CompanyPersistence")
297     protected CompanyPersistence companyPersistence;
298     @BeanReference(name = "com.liferay.portal.service.PortletPreferencesLocalService")
299     protected PortletPreferencesLocalService portletPreferencesLocalService;
300     @BeanReference(name = "com.liferay.portal.service.PortletPreferencesService")
301     protected PortletPreferencesService portletPreferencesService;
302     @BeanReference(name = "com.liferay.portal.service.persistence.PortletPreferencesPersistence")
303     protected PortletPreferencesPersistence portletPreferencesPersistence;
304     @BeanReference(name = "com.liferay.portal.service.persistence.PortletPreferencesFinder")
305     protected PortletPreferencesFinder portletPreferencesFinder;
306     @BeanReference(name = "com.liferay.portal.service.ResourceLocalService")
307     protected ResourceLocalService resourceLocalService;
308     @BeanReference(name = "com.liferay.portal.service.ResourceService")
309     protected ResourceService resourceService;
310     @BeanReference(name = "com.liferay.portal.service.persistence.ResourcePersistence")
311     protected ResourcePersistence resourcePersistence;
312     @BeanReference(name = "com.liferay.portal.service.persistence.ResourceFinder")
313     protected ResourceFinder resourceFinder;
314     @BeanReference(name = "com.liferay.portal.service.UserLocalService")
315     protected UserLocalService userLocalService;
316     @BeanReference(name = "com.liferay.portal.service.UserService")
317     protected UserService userService;
318     @BeanReference(name = "com.liferay.portal.service.persistence.UserPersistence")
319     protected UserPersistence userPersistence;
320     @BeanReference(name = "com.liferay.portal.service.persistence.UserFinder")
321     protected UserFinder userFinder;
322     @BeanReference(name = "com.liferay.portlet.social.service.SocialActivityLocalService")
323     protected SocialActivityLocalService socialActivityLocalService;
324     @BeanReference(name = "com.liferay.portlet.social.service.persistence.SocialActivityPersistence")
325     protected SocialActivityPersistence socialActivityPersistence;
326     @BeanReference(name = "com.liferay.portlet.social.service.persistence.SocialActivityFinder")
327     protected SocialActivityFinder socialActivityFinder;
328 }