1
22
23 package com.liferay.portlet.calendar.service;
24
25
26
47 public class CalEventServiceUtil {
48 public static com.liferay.portlet.calendar.model.CalEvent addEvent(
49 long plid, java.lang.String title, java.lang.String description,
50 int startDateMonth, int startDateDay, int startDateYear,
51 int startDateHour, int startDateMinute, int endDateMonth,
52 int endDateDay, int endDateYear, int durationHour, int durationMinute,
53 boolean allDay, boolean timeZoneSensitive, java.lang.String type,
54 boolean repeating, com.liferay.portal.kernel.cal.Recurrence recurrence,
55 java.lang.String remindBy, int firstReminder, int secondReminder,
56 boolean addCommunityPermissions, boolean addGuestPermissions)
57 throws com.liferay.portal.PortalException,
58 com.liferay.portal.SystemException, java.rmi.RemoteException {
59 return _service.addEvent(plid, title, description, startDateMonth,
60 startDateDay, startDateYear, startDateHour, startDateMinute,
61 endDateMonth, endDateDay, endDateYear, durationHour,
62 durationMinute, allDay, timeZoneSensitive, type, repeating,
63 recurrence, remindBy, firstReminder, secondReminder,
64 addCommunityPermissions, addGuestPermissions);
65 }
66
67 public static com.liferay.portlet.calendar.model.CalEvent addEvent(
68 long plid, java.lang.String title, java.lang.String description,
69 int startDateMonth, int startDateDay, int startDateYear,
70 int startDateHour, int startDateMinute, int endDateMonth,
71 int endDateDay, int endDateYear, int durationHour, int durationMinute,
72 boolean allDay, boolean timeZoneSensitive, java.lang.String type,
73 boolean repeating, com.liferay.portal.kernel.cal.Recurrence recurrence,
74 java.lang.String remindBy, int firstReminder, int secondReminder,
75 java.lang.String[] communityPermissions,
76 java.lang.String[] guestPermissions)
77 throws com.liferay.portal.PortalException,
78 com.liferay.portal.SystemException, java.rmi.RemoteException {
79 return _service.addEvent(plid, title, description, startDateMonth,
80 startDateDay, startDateYear, startDateHour, startDateMinute,
81 endDateMonth, endDateDay, endDateYear, durationHour,
82 durationMinute, allDay, timeZoneSensitive, type, repeating,
83 recurrence, remindBy, firstReminder, secondReminder,
84 communityPermissions, guestPermissions);
85 }
86
87 public static void deleteEvent(long eventId)
88 throws com.liferay.portal.PortalException,
89 com.liferay.portal.SystemException, java.rmi.RemoteException {
90 _service.deleteEvent(eventId);
91 }
92
93 public static java.io.File exportEvent(long eventId)
94 throws com.liferay.portal.PortalException,
95 com.liferay.portal.SystemException, java.rmi.RemoteException {
96 return _service.exportEvent(eventId);
97 }
98
99 public static java.io.File exportGroupEvents(long plid,
100 java.lang.String fileName)
101 throws com.liferay.portal.PortalException,
102 com.liferay.portal.SystemException, java.rmi.RemoteException {
103 return _service.exportGroupEvents(plid, fileName);
104 }
105
106 public static com.liferay.portlet.calendar.model.CalEvent getEvent(
107 long eventId)
108 throws com.liferay.portal.PortalException,
109 com.liferay.portal.SystemException, java.rmi.RemoteException {
110 return _service.getEvent(eventId);
111 }
112
113 public static void importICal4j(long plid, java.io.File file)
114 throws com.liferay.portal.PortalException,
115 com.liferay.portal.SystemException, java.rmi.RemoteException {
116 _service.importICal4j(plid, file);
117 }
118
119 public static com.liferay.portlet.calendar.model.CalEvent updateEvent(
120 long eventId, java.lang.String title, java.lang.String description,
121 int startDateMonth, int startDateDay, int startDateYear,
122 int startDateHour, int startDateMinute, int endDateMonth,
123 int endDateDay, int endDateYear, int durationHour, int durationMinute,
124 boolean allDay, boolean timeZoneSensitive, java.lang.String type,
125 boolean repeating, com.liferay.portal.kernel.cal.Recurrence recurrence,
126 java.lang.String remindBy, int firstReminder, int secondReminder)
127 throws com.liferay.portal.PortalException,
128 com.liferay.portal.SystemException, java.rmi.RemoteException {
129 return _service.updateEvent(eventId, title, description,
130 startDateMonth, startDateDay, startDateYear, startDateHour,
131 startDateMinute, endDateMonth, endDateDay, endDateYear,
132 durationHour, durationMinute, allDay, timeZoneSensitive, type,
133 repeating, recurrence, remindBy, firstReminder, secondReminder);
134 }
135
136 public static CalEventService getService() {
137 return _service;
138 }
139
140 public void setService(CalEventService service) {
141 _service = service;
142 }
143
144 private static CalEventService _service;
145 }