1
22
23 package com.liferay.portlet.calendar.service.base;
24
25 import com.liferay.counter.service.CounterLocalService;
26 import com.liferay.counter.service.CounterService;
27
28 import com.liferay.mail.service.MailService;
29
30 import com.liferay.portal.PortalException;
31 import com.liferay.portal.SystemException;
32 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
33 import com.liferay.portal.service.CompanyLocalService;
34 import com.liferay.portal.service.CompanyService;
35 import com.liferay.portal.service.PortletPreferencesLocalService;
36 import com.liferay.portal.service.PortletPreferencesService;
37 import com.liferay.portal.service.ResourceLocalService;
38 import com.liferay.portal.service.ResourceService;
39 import com.liferay.portal.service.UserLocalService;
40 import com.liferay.portal.service.UserService;
41 import com.liferay.portal.service.persistence.CompanyPersistence;
42 import com.liferay.portal.service.persistence.PortletPreferencesFinder;
43 import com.liferay.portal.service.persistence.PortletPreferencesPersistence;
44 import com.liferay.portal.service.persistence.ResourceFinder;
45 import com.liferay.portal.service.persistence.ResourcePersistence;
46 import com.liferay.portal.service.persistence.UserFinder;
47 import com.liferay.portal.service.persistence.UserPersistence;
48
49 import com.liferay.portlet.calendar.model.CalEvent;
50 import com.liferay.portlet.calendar.service.CalEventLocalService;
51 import com.liferay.portlet.calendar.service.CalEventService;
52 import com.liferay.portlet.calendar.service.persistence.CalEventFinder;
53 import com.liferay.portlet.calendar.service.persistence.CalEventPersistence;
54 import com.liferay.portlet.social.service.SocialActivityLocalService;
55 import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
56 import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
57
58 import java.util.List;
59
60
66 public abstract class CalEventLocalServiceBaseImpl
67 implements CalEventLocalService {
68 public CalEvent addCalEvent(CalEvent calEvent) throws SystemException {
69 calEvent.setNew(true);
70
71 return calEventPersistence.update(calEvent, false);
72 }
73
74 public CalEvent createCalEvent(long eventId) {
75 return calEventPersistence.create(eventId);
76 }
77
78 public void deleteCalEvent(long eventId)
79 throws PortalException, SystemException {
80 calEventPersistence.remove(eventId);
81 }
82
83 public void deleteCalEvent(CalEvent calEvent) throws SystemException {
84 calEventPersistence.remove(calEvent);
85 }
86
87 public List<Object> dynamicQuery(DynamicQuery dynamicQuery)
88 throws SystemException {
89 return calEventPersistence.findWithDynamicQuery(dynamicQuery);
90 }
91
92 public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start,
93 int end) throws SystemException {
94 return calEventPersistence.findWithDynamicQuery(dynamicQuery, start, end);
95 }
96
97 public CalEvent getCalEvent(long eventId)
98 throws PortalException, SystemException {
99 return calEventPersistence.findByPrimaryKey(eventId);
100 }
101
102 public List<CalEvent> getCalEvents(int start, int end)
103 throws SystemException {
104 return calEventPersistence.findAll(start, end);
105 }
106
107 public int getCalEventsCount() throws SystemException {
108 return calEventPersistence.countAll();
109 }
110
111 public CalEvent updateCalEvent(CalEvent calEvent) throws SystemException {
112 calEvent.setNew(false);
113
114 return calEventPersistence.update(calEvent, true);
115 }
116
117 public CalEventLocalService getCalEventLocalService() {
118 return calEventLocalService;
119 }
120
121 public void setCalEventLocalService(
122 CalEventLocalService calEventLocalService) {
123 this.calEventLocalService = calEventLocalService;
124 }
125
126 public CalEventService getCalEventService() {
127 return calEventService;
128 }
129
130 public void setCalEventService(CalEventService calEventService) {
131 this.calEventService = calEventService;
132 }
133
134 public CalEventPersistence getCalEventPersistence() {
135 return calEventPersistence;
136 }
137
138 public void setCalEventPersistence(CalEventPersistence calEventPersistence) {
139 this.calEventPersistence = calEventPersistence;
140 }
141
142 public CalEventFinder getCalEventFinder() {
143 return calEventFinder;
144 }
145
146 public void setCalEventFinder(CalEventFinder calEventFinder) {
147 this.calEventFinder = calEventFinder;
148 }
149
150 public CounterLocalService getCounterLocalService() {
151 return counterLocalService;
152 }
153
154 public void setCounterLocalService(CounterLocalService counterLocalService) {
155 this.counterLocalService = counterLocalService;
156 }
157
158 public CounterService getCounterService() {
159 return counterService;
160 }
161
162 public void setCounterService(CounterService counterService) {
163 this.counterService = counterService;
164 }
165
166 public MailService getMailService() {
167 return mailService;
168 }
169
170 public void setMailService(MailService mailService) {
171 this.mailService = mailService;
172 }
173
174 public CompanyLocalService getCompanyLocalService() {
175 return companyLocalService;
176 }
177
178 public void setCompanyLocalService(CompanyLocalService companyLocalService) {
179 this.companyLocalService = companyLocalService;
180 }
181
182 public CompanyService getCompanyService() {
183 return companyService;
184 }
185
186 public void setCompanyService(CompanyService companyService) {
187 this.companyService = companyService;
188 }
189
190 public CompanyPersistence getCompanyPersistence() {
191 return companyPersistence;
192 }
193
194 public void setCompanyPersistence(CompanyPersistence companyPersistence) {
195 this.companyPersistence = companyPersistence;
196 }
197
198 public PortletPreferencesLocalService getPortletPreferencesLocalService() {
199 return portletPreferencesLocalService;
200 }
201
202 public void setPortletPreferencesLocalService(
203 PortletPreferencesLocalService portletPreferencesLocalService) {
204 this.portletPreferencesLocalService = portletPreferencesLocalService;
205 }
206
207 public PortletPreferencesService getPortletPreferencesService() {
208 return portletPreferencesService;
209 }
210
211 public void setPortletPreferencesService(
212 PortletPreferencesService portletPreferencesService) {
213 this.portletPreferencesService = portletPreferencesService;
214 }
215
216 public PortletPreferencesPersistence getPortletPreferencesPersistence() {
217 return portletPreferencesPersistence;
218 }
219
220 public void setPortletPreferencesPersistence(
221 PortletPreferencesPersistence portletPreferencesPersistence) {
222 this.portletPreferencesPersistence = portletPreferencesPersistence;
223 }
224
225 public PortletPreferencesFinder getPortletPreferencesFinder() {
226 return portletPreferencesFinder;
227 }
228
229 public void setPortletPreferencesFinder(
230 PortletPreferencesFinder portletPreferencesFinder) {
231 this.portletPreferencesFinder = portletPreferencesFinder;
232 }
233
234 public ResourceLocalService getResourceLocalService() {
235 return resourceLocalService;
236 }
237
238 public void setResourceLocalService(
239 ResourceLocalService resourceLocalService) {
240 this.resourceLocalService = resourceLocalService;
241 }
242
243 public ResourceService getResourceService() {
244 return resourceService;
245 }
246
247 public void setResourceService(ResourceService resourceService) {
248 this.resourceService = resourceService;
249 }
250
251 public ResourcePersistence getResourcePersistence() {
252 return resourcePersistence;
253 }
254
255 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
256 this.resourcePersistence = resourcePersistence;
257 }
258
259 public ResourceFinder getResourceFinder() {
260 return resourceFinder;
261 }
262
263 public void setResourceFinder(ResourceFinder resourceFinder) {
264 this.resourceFinder = resourceFinder;
265 }
266
267 public SocialActivityLocalService getSocialActivityLocalService() {
268 return socialActivityLocalService;
269 }
270
271 public void setSocialActivityLocalService(
272 SocialActivityLocalService socialActivityLocalService) {
273 this.socialActivityLocalService = socialActivityLocalService;
274 }
275
276 public SocialActivityPersistence getSocialActivityPersistence() {
277 return socialActivityPersistence;
278 }
279
280 public void setSocialActivityPersistence(
281 SocialActivityPersistence socialActivityPersistence) {
282 this.socialActivityPersistence = socialActivityPersistence;
283 }
284
285 public SocialActivityFinder getSocialActivityFinder() {
286 return socialActivityFinder;
287 }
288
289 public void setSocialActivityFinder(
290 SocialActivityFinder socialActivityFinder) {
291 this.socialActivityFinder = socialActivityFinder;
292 }
293
294 public UserLocalService getUserLocalService() {
295 return userLocalService;
296 }
297
298 public void setUserLocalService(UserLocalService userLocalService) {
299 this.userLocalService = userLocalService;
300 }
301
302 public UserService getUserService() {
303 return userService;
304 }
305
306 public void setUserService(UserService userService) {
307 this.userService = userService;
308 }
309
310 public UserPersistence getUserPersistence() {
311 return userPersistence;
312 }
313
314 public void setUserPersistence(UserPersistence userPersistence) {
315 this.userPersistence = userPersistence;
316 }
317
318 public UserFinder getUserFinder() {
319 return userFinder;
320 }
321
322 public void setUserFinder(UserFinder userFinder) {
323 this.userFinder = userFinder;
324 }
325
326 @javax.annotation.Resource(name = "com.liferay.portlet.calendar.service.CalEventLocalService.impl")
327 protected CalEventLocalService calEventLocalService;
328 @javax.annotation.Resource(name = "com.liferay.portlet.calendar.service.CalEventService.impl")
329 protected CalEventService calEventService;
330 @javax.annotation.Resource(name = "com.liferay.portlet.calendar.service.persistence.CalEventPersistence.impl")
331 protected CalEventPersistence calEventPersistence;
332 @javax.annotation.Resource(name = "com.liferay.portlet.calendar.service.persistence.CalEventFinder.impl")
333 protected CalEventFinder calEventFinder;
334 @javax.annotation.Resource(name = "com.liferay.counter.service.CounterLocalService.impl")
335 protected CounterLocalService counterLocalService;
336 @javax.annotation.Resource(name = "com.liferay.counter.service.CounterService.impl")
337 protected CounterService counterService;
338 @javax.annotation.Resource(name = "com.liferay.mail.service.MailService.impl")
339 protected MailService mailService;
340 @javax.annotation.Resource(name = "com.liferay.portal.service.CompanyLocalService.impl")
341 protected CompanyLocalService companyLocalService;
342 @javax.annotation.Resource(name = "com.liferay.portal.service.CompanyService.impl")
343 protected CompanyService companyService;
344 @javax.annotation.Resource(name = "com.liferay.portal.service.persistence.CompanyPersistence.impl")
345 protected CompanyPersistence companyPersistence;
346 @javax.annotation.Resource(name = "com.liferay.portal.service.PortletPreferencesLocalService.impl")
347 protected PortletPreferencesLocalService portletPreferencesLocalService;
348 @javax.annotation.Resource(name = "com.liferay.portal.service.PortletPreferencesService.impl")
349 protected PortletPreferencesService portletPreferencesService;
350 @javax.annotation.Resource(name = "com.liferay.portal.service.persistence.PortletPreferencesPersistence.impl")
351 protected PortletPreferencesPersistence portletPreferencesPersistence;
352 @javax.annotation.Resource(name = "com.liferay.portal.service.persistence.PortletPreferencesFinder.impl")
353 protected PortletPreferencesFinder portletPreferencesFinder;
354 @javax.annotation.Resource(name = "com.liferay.portal.service.ResourceLocalService.impl")
355 protected ResourceLocalService resourceLocalService;
356 @javax.annotation.Resource(name = "com.liferay.portal.service.ResourceService.impl")
357 protected ResourceService resourceService;
358 @javax.annotation.Resource(name = "com.liferay.portal.service.persistence.ResourcePersistence.impl")
359 protected ResourcePersistence resourcePersistence;
360 @javax.annotation.Resource(name = "com.liferay.portal.service.persistence.ResourceFinder.impl")
361 protected ResourceFinder resourceFinder;
362 @javax.annotation.Resource(name = "com.liferay.portlet.social.service.SocialActivityLocalService.impl")
363 protected SocialActivityLocalService socialActivityLocalService;
364 @javax.annotation.Resource(name = "com.liferay.portlet.social.service.persistence.SocialActivityPersistence.impl")
365 protected SocialActivityPersistence socialActivityPersistence;
366 @javax.annotation.Resource(name = "com.liferay.portlet.social.service.persistence.SocialActivityFinder.impl")
367 protected SocialActivityFinder socialActivityFinder;
368 @javax.annotation.Resource(name = "com.liferay.portal.service.UserLocalService.impl")
369 protected UserLocalService userLocalService;
370 @javax.annotation.Resource(name = "com.liferay.portal.service.UserService.impl")
371 protected UserService userService;
372 @javax.annotation.Resource(name = "com.liferay.portal.service.persistence.UserPersistence.impl")
373 protected UserPersistence userPersistence;
374 @javax.annotation.Resource(name = "com.liferay.portal.service.persistence.UserFinder.impl")
375 protected UserFinder userFinder;
376 }