Source Code Cross Referenced for CalEventLocalServiceUtil.java in  » Portal » liferay-portal-4.4.2 » com » liferay » portlet » calendar » service » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Portal » liferay portal 4.4.2 » com.liferay.portlet.calendar.service 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


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;
022:
023:        /**
024:         * <a href="CalEventLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
025:         *
026:         * <p>
027:         * ServiceBuilder generated this class. Modifications in this class will be
028:         * overwritten the next time is generated.
029:         * </p>
030:         *
031:         * <p>
032:         * This class provides static methods for the
033:         * <code>com.liferay.portlet.calendar.service.CalEventLocalService</code>
034:         * bean. The static methods of this class calls the same methods of the bean
035:         * instance. It's convenient to be able to just write one line to call a method
036:         * on a bean instead of writing a lookup call and a method call.
037:         * </p>
038:         *
039:         * <p>
040:         * <code>com.liferay.portlet.calendar.service.CalEventLocalServiceFactory</code>
041:         * is responsible for the lookup of the bean.
042:         * </p>
043:         *
044:         * @author Brian Wing Shun Chan
045:         *
046:         * @see com.liferay.portlet.calendar.service.CalEventLocalService
047:         * @see com.liferay.portlet.calendar.service.CalEventLocalServiceFactory
048:         *
049:         */
050:        public class CalEventLocalServiceUtil {
051:            public static com.liferay.portlet.calendar.model.CalEvent addCalEvent(
052:                    com.liferay.portlet.calendar.model.CalEvent model)
053:                    throws com.liferay.portal.SystemException {
054:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
055:                        .getService();
056:
057:                return calEventLocalService.addCalEvent(model);
058:            }
059:
060:            public static java.util.List dynamicQuery(
061:                    com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
062:                    throws com.liferay.portal.SystemException {
063:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
064:                        .getService();
065:
066:                return calEventLocalService.dynamicQuery(queryInitializer);
067:            }
068:
069:            public static java.util.List dynamicQuery(
070:                    com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
071:                    int begin, int end)
072:                    throws com.liferay.portal.SystemException {
073:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
074:                        .getService();
075:
076:                return calEventLocalService.dynamicQuery(queryInitializer,
077:                        begin, end);
078:            }
079:
080:            public static com.liferay.portlet.calendar.model.CalEvent updateCalEvent(
081:                    com.liferay.portlet.calendar.model.CalEvent model)
082:                    throws com.liferay.portal.SystemException {
083:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
084:                        .getService();
085:
086:                return calEventLocalService.updateCalEvent(model);
087:            }
088:
089:            public static com.liferay.portlet.calendar.service.persistence.CalEventPersistence getCalEventPersistence() {
090:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
091:                        .getService();
092:
093:                return calEventLocalService.getCalEventPersistence();
094:            }
095:
096:            public static void setCalEventPersistence(
097:                    com.liferay.portlet.calendar.service.persistence.CalEventPersistence calEventPersistence) {
098:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
099:                        .getService();
100:
101:                calEventLocalService
102:                        .setCalEventPersistence(calEventPersistence);
103:            }
104:
105:            public static com.liferay.portlet.calendar.service.persistence.CalEventFinder getCalEventFinder() {
106:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
107:                        .getService();
108:
109:                return calEventLocalService.getCalEventFinder();
110:            }
111:
112:            public static void setCalEventFinder(
113:                    com.liferay.portlet.calendar.service.persistence.CalEventFinder calEventFinder) {
114:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
115:                        .getService();
116:
117:                calEventLocalService.setCalEventFinder(calEventFinder);
118:            }
119:
120:            public static com.liferay.portal.service.persistence.CompanyPersistence getCompanyPersistence() {
121:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
122:                        .getService();
123:
124:                return calEventLocalService.getCompanyPersistence();
125:            }
126:
127:            public static void setCompanyPersistence(
128:                    com.liferay.portal.service.persistence.CompanyPersistence companyPersistence) {
129:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
130:                        .getService();
131:
132:                calEventLocalService.setCompanyPersistence(companyPersistence);
133:            }
134:
135:            public static com.liferay.portal.service.persistence.PortletPreferencesPersistence getPortletPreferencesPersistence() {
136:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
137:                        .getService();
138:
139:                return calEventLocalService.getPortletPreferencesPersistence();
140:            }
141:
142:            public static void setPortletPreferencesPersistence(
143:                    com.liferay.portal.service.persistence.PortletPreferencesPersistence portletPreferencesPersistence) {
144:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
145:                        .getService();
146:
147:                calEventLocalService
148:                        .setPortletPreferencesPersistence(portletPreferencesPersistence);
149:            }
150:
151:            public static com.liferay.portal.service.persistence.PortletPreferencesFinder getPortletPreferencesFinder() {
152:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
153:                        .getService();
154:
155:                return calEventLocalService.getPortletPreferencesFinder();
156:            }
157:
158:            public static void setPortletPreferencesFinder(
159:                    com.liferay.portal.service.persistence.PortletPreferencesFinder portletPreferencesFinder) {
160:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
161:                        .getService();
162:
163:                calEventLocalService
164:                        .setPortletPreferencesFinder(portletPreferencesFinder);
165:            }
166:
167:            public static com.liferay.portal.service.persistence.ResourcePersistence getResourcePersistence() {
168:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
169:                        .getService();
170:
171:                return calEventLocalService.getResourcePersistence();
172:            }
173:
174:            public static void setResourcePersistence(
175:                    com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence) {
176:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
177:                        .getService();
178:
179:                calEventLocalService
180:                        .setResourcePersistence(resourcePersistence);
181:            }
182:
183:            public static com.liferay.portal.service.persistence.ResourceFinder getResourceFinder() {
184:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
185:                        .getService();
186:
187:                return calEventLocalService.getResourceFinder();
188:            }
189:
190:            public static void setResourceFinder(
191:                    com.liferay.portal.service.persistence.ResourceFinder resourceFinder) {
192:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
193:                        .getService();
194:
195:                calEventLocalService.setResourceFinder(resourceFinder);
196:            }
197:
198:            public static com.liferay.portal.service.persistence.UserPersistence getUserPersistence() {
199:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
200:                        .getService();
201:
202:                return calEventLocalService.getUserPersistence();
203:            }
204:
205:            public static void setUserPersistence(
206:                    com.liferay.portal.service.persistence.UserPersistence userPersistence) {
207:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
208:                        .getService();
209:
210:                calEventLocalService.setUserPersistence(userPersistence);
211:            }
212:
213:            public static com.liferay.portal.service.persistence.UserFinder getUserFinder() {
214:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
215:                        .getService();
216:
217:                return calEventLocalService.getUserFinder();
218:            }
219:
220:            public static void setUserFinder(
221:                    com.liferay.portal.service.persistence.UserFinder userFinder) {
222:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
223:                        .getService();
224:
225:                calEventLocalService.setUserFinder(userFinder);
226:            }
227:
228:            public static void afterPropertiesSet() {
229:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
230:                        .getService();
231:
232:                calEventLocalService.afterPropertiesSet();
233:            }
234:
235:            public static com.liferay.portlet.calendar.model.CalEvent addEvent(
236:                    long userId, long plid, java.lang.String title,
237:                    java.lang.String description, int startDateMonth,
238:                    int startDateDay, int startDateYear, int startDateHour,
239:                    int startDateMinute, int endDateMonth, int endDateDay,
240:                    int endDateYear, int durationHour, int durationMinute,
241:                    boolean allDay, boolean timeZoneSensitive,
242:                    java.lang.String type, boolean repeating,
243:                    com.liferay.portal.kernel.cal.Recurrence recurrence,
244:                    java.lang.String remindBy, int firstReminder,
245:                    int secondReminder, boolean addCommunityPermissions,
246:                    boolean addGuestPermissions)
247:                    throws com.liferay.portal.PortalException,
248:                    com.liferay.portal.SystemException {
249:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
250:                        .getService();
251:
252:                return calEventLocalService.addEvent(userId, plid, title,
253:                        description, startDateMonth, startDateDay,
254:                        startDateYear, startDateHour, startDateMinute,
255:                        endDateMonth, endDateDay, endDateYear, durationHour,
256:                        durationMinute, allDay, timeZoneSensitive, type,
257:                        repeating, recurrence, remindBy, firstReminder,
258:                        secondReminder, addCommunityPermissions,
259:                        addGuestPermissions);
260:            }
261:
262:            public static com.liferay.portlet.calendar.model.CalEvent addEvent(
263:                    java.lang.String uuid, long userId, long plid,
264:                    java.lang.String title, java.lang.String description,
265:                    int startDateMonth, int startDateDay, int startDateYear,
266:                    int startDateHour, int startDateMinute, int endDateMonth,
267:                    int endDateDay, int endDateYear, int durationHour,
268:                    int durationMinute, boolean allDay,
269:                    boolean timeZoneSensitive, java.lang.String type,
270:                    boolean repeating,
271:                    com.liferay.portal.kernel.cal.Recurrence recurrence,
272:                    java.lang.String remindBy, int firstReminder,
273:                    int secondReminder, boolean addCommunityPermissions,
274:                    boolean addGuestPermissions)
275:                    throws com.liferay.portal.PortalException,
276:                    com.liferay.portal.SystemException {
277:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
278:                        .getService();
279:
280:                return calEventLocalService.addEvent(uuid, userId, plid, title,
281:                        description, startDateMonth, startDateDay,
282:                        startDateYear, startDateHour, startDateMinute,
283:                        endDateMonth, endDateDay, endDateYear, durationHour,
284:                        durationMinute, allDay, timeZoneSensitive, type,
285:                        repeating, recurrence, remindBy, firstReminder,
286:                        secondReminder, addCommunityPermissions,
287:                        addGuestPermissions);
288:            }
289:
290:            public static com.liferay.portlet.calendar.model.CalEvent addEvent(
291:                    long userId, long plid, java.lang.String title,
292:                    java.lang.String description, int startDateMonth,
293:                    int startDateDay, int startDateYear, int startDateHour,
294:                    int startDateMinute, int endDateMonth, int endDateDay,
295:                    int endDateYear, int durationHour, int durationMinute,
296:                    boolean allDay, boolean timeZoneSensitive,
297:                    java.lang.String type, boolean repeating,
298:                    com.liferay.portal.kernel.cal.Recurrence recurrence,
299:                    java.lang.String remindBy, int firstReminder,
300:                    int secondReminder,
301:                    java.lang.String[] communityPermissions,
302:                    java.lang.String[] guestPermissions)
303:                    throws com.liferay.portal.PortalException,
304:                    com.liferay.portal.SystemException {
305:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
306:                        .getService();
307:
308:                return calEventLocalService.addEvent(userId, plid, title,
309:                        description, startDateMonth, startDateDay,
310:                        startDateYear, startDateHour, startDateMinute,
311:                        endDateMonth, endDateDay, endDateYear, durationHour,
312:                        durationMinute, allDay, timeZoneSensitive, type,
313:                        repeating, recurrence, remindBy, firstReminder,
314:                        secondReminder, communityPermissions, guestPermissions);
315:            }
316:
317:            public static com.liferay.portlet.calendar.model.CalEvent addEvent(
318:                    java.lang.String uuid, long userId, long plid,
319:                    java.lang.String title, java.lang.String description,
320:                    int startDateMonth, int startDateDay, int startDateYear,
321:                    int startDateHour, int startDateMinute, int endDateMonth,
322:                    int endDateDay, int endDateYear, int durationHour,
323:                    int durationMinute, boolean allDay,
324:                    boolean timeZoneSensitive, java.lang.String type,
325:                    boolean repeating,
326:                    com.liferay.portal.kernel.cal.Recurrence recurrence,
327:                    java.lang.String remindBy, int firstReminder,
328:                    int secondReminder,
329:                    java.lang.Boolean addCommunityPermissions,
330:                    java.lang.Boolean addGuestPermissions,
331:                    java.lang.String[] communityPermissions,
332:                    java.lang.String[] guestPermissions)
333:                    throws com.liferay.portal.PortalException,
334:                    com.liferay.portal.SystemException {
335:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
336:                        .getService();
337:
338:                return calEventLocalService.addEvent(uuid, userId, plid, title,
339:                        description, startDateMonth, startDateDay,
340:                        startDateYear, startDateHour, startDateMinute,
341:                        endDateMonth, endDateDay, endDateYear, durationHour,
342:                        durationMinute, allDay, timeZoneSensitive, type,
343:                        repeating, recurrence, remindBy, firstReminder,
344:                        secondReminder, addCommunityPermissions,
345:                        addGuestPermissions, communityPermissions,
346:                        guestPermissions);
347:            }
348:
349:            public static void addEventResources(long eventId,
350:                    boolean addCommunityPermissions, boolean addGuestPermissions)
351:                    throws com.liferay.portal.PortalException,
352:                    com.liferay.portal.SystemException {
353:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
354:                        .getService();
355:
356:                calEventLocalService.addEventResources(eventId,
357:                        addCommunityPermissions, addGuestPermissions);
358:            }
359:
360:            public static void addEventResources(
361:                    com.liferay.portlet.calendar.model.CalEvent event,
362:                    boolean addCommunityPermissions, boolean addGuestPermissions)
363:                    throws com.liferay.portal.PortalException,
364:                    com.liferay.portal.SystemException {
365:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
366:                        .getService();
367:
368:                calEventLocalService.addEventResources(event,
369:                        addCommunityPermissions, addGuestPermissions);
370:            }
371:
372:            public static void addEventResources(long eventId,
373:                    java.lang.String[] communityPermissions,
374:                    java.lang.String[] guestPermissions)
375:                    throws com.liferay.portal.PortalException,
376:                    com.liferay.portal.SystemException {
377:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
378:                        .getService();
379:
380:                calEventLocalService.addEventResources(eventId,
381:                        communityPermissions, guestPermissions);
382:            }
383:
384:            public static void addEventResources(
385:                    com.liferay.portlet.calendar.model.CalEvent event,
386:                    java.lang.String[] communityPermissions,
387:                    java.lang.String[] guestPermissions)
388:                    throws com.liferay.portal.PortalException,
389:                    com.liferay.portal.SystemException {
390:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
391:                        .getService();
392:
393:                calEventLocalService.addEventResources(event,
394:                        communityPermissions, guestPermissions);
395:            }
396:
397:            public static void checkEvents()
398:                    throws com.liferay.portal.PortalException,
399:                    com.liferay.portal.SystemException {
400:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
401:                        .getService();
402:
403:                calEventLocalService.checkEvents();
404:            }
405:
406:            public static void deleteEvent(long eventId)
407:                    throws com.liferay.portal.PortalException,
408:                    com.liferay.portal.SystemException {
409:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
410:                        .getService();
411:
412:                calEventLocalService.deleteEvent(eventId);
413:            }
414:
415:            public static void deleteEvent(
416:                    com.liferay.portlet.calendar.model.CalEvent event)
417:                    throws com.liferay.portal.PortalException,
418:                    com.liferay.portal.SystemException {
419:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
420:                        .getService();
421:
422:                calEventLocalService.deleteEvent(event);
423:            }
424:
425:            public static void deleteEvents(long groupId)
426:                    throws com.liferay.portal.PortalException,
427:                    com.liferay.portal.SystemException {
428:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
429:                        .getService();
430:
431:                calEventLocalService.deleteEvents(groupId);
432:            }
433:
434:            public static java.io.File exportEvent(long userId, long eventId)
435:                    throws com.liferay.portal.PortalException,
436:                    com.liferay.portal.SystemException {
437:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
438:                        .getService();
439:
440:                return calEventLocalService.exportEvent(userId, eventId);
441:            }
442:
443:            public static java.io.File exportGroupEvents(long userId,
444:                    long plid, java.lang.String fileName)
445:                    throws com.liferay.portal.PortalException,
446:                    com.liferay.portal.SystemException {
447:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
448:                        .getService();
449:
450:                return calEventLocalService.exportGroupEvents(userId, plid,
451:                        fileName);
452:            }
453:
454:            public static com.liferay.portlet.calendar.model.CalEvent getEvent(
455:                    long eventId) throws com.liferay.portal.PortalException,
456:                    com.liferay.portal.SystemException {
457:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
458:                        .getService();
459:
460:                return calEventLocalService.getEvent(eventId);
461:            }
462:
463:            public static java.util.List getEvents(long groupId,
464:                    java.lang.String type, int begin, int end)
465:                    throws com.liferay.portal.SystemException {
466:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
467:                        .getService();
468:
469:                return calEventLocalService
470:                        .getEvents(groupId, type, begin, end);
471:            }
472:
473:            public static java.util.List getEvents(long groupId,
474:                    java.util.Calendar cal)
475:                    throws com.liferay.portal.SystemException {
476:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
477:                        .getService();
478:
479:                return calEventLocalService.getEvents(groupId, cal);
480:            }
481:
482:            public static java.util.List getEvents(long groupId,
483:                    java.util.Calendar cal, java.lang.String type)
484:                    throws com.liferay.portal.SystemException {
485:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
486:                        .getService();
487:
488:                return calEventLocalService.getEvents(groupId, cal, type);
489:            }
490:
491:            public static int getEventsCount(long groupId, java.lang.String type)
492:                    throws com.liferay.portal.SystemException {
493:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
494:                        .getService();
495:
496:                return calEventLocalService.getEventsCount(groupId, type);
497:            }
498:
499:            public static java.util.List getRepeatingEvents(long groupId)
500:                    throws com.liferay.portal.SystemException {
501:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
502:                        .getService();
503:
504:                return calEventLocalService.getRepeatingEvents(groupId);
505:            }
506:
507:            public static boolean hasEvents(long groupId, java.util.Calendar cal)
508:                    throws com.liferay.portal.SystemException {
509:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
510:                        .getService();
511:
512:                return calEventLocalService.hasEvents(groupId, cal);
513:            }
514:
515:            public static boolean hasEvents(long groupId,
516:                    java.util.Calendar cal, java.lang.String type)
517:                    throws com.liferay.portal.SystemException {
518:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
519:                        .getService();
520:
521:                return calEventLocalService.hasEvents(groupId, cal, type);
522:            }
523:
524:            public static void importICal4j(long userId, long plid,
525:                    java.io.File file)
526:                    throws com.liferay.portal.PortalException,
527:                    com.liferay.portal.SystemException {
528:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
529:                        .getService();
530:
531:                calEventLocalService.importICal4j(userId, plid, file);
532:            }
533:
534:            public static com.liferay.portlet.calendar.model.CalEvent updateEvent(
535:                    long userId, long eventId, java.lang.String title,
536:                    java.lang.String description, int startDateMonth,
537:                    int startDateDay, int startDateYear, int startDateHour,
538:                    int startDateMinute, int endDateMonth, int endDateDay,
539:                    int endDateYear, int durationHour, int durationMinute,
540:                    boolean allDay, boolean timeZoneSensitive,
541:                    java.lang.String type, boolean repeating,
542:                    com.liferay.portal.kernel.cal.Recurrence recurrence,
543:                    java.lang.String remindBy, int firstReminder,
544:                    int secondReminder)
545:                    throws com.liferay.portal.PortalException,
546:                    com.liferay.portal.SystemException {
547:                CalEventLocalService calEventLocalService = CalEventLocalServiceFactory
548:                        .getService();
549:
550:                return calEventLocalService.updateEvent(userId, eventId, title,
551:                        description, startDateMonth, startDateDay,
552:                        startDateYear, startDateHour, startDateMinute,
553:                        endDateMonth, endDateDay, endDateYear, durationHour,
554:                        durationMinute, allDay, timeZoneSensitive, type,
555:                        repeating, recurrence, remindBy, firstReminder,
556:                        secondReminder);
557:            }
558:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.