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,
55 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
56 int firstReminder, int secondReminder, boolean addCommunityPermissions,
57 boolean addGuestPermissions)
58 throws com.liferay.portal.PortalException,
59 com.liferay.portal.SystemException, java.rmi.RemoteException {
60 return getService()
61 .addEvent(plid, title, description, startDateMonth,
62 startDateDay, startDateYear, startDateHour, startDateMinute,
63 endDateMonth, endDateDay, endDateYear, durationHour,
64 durationMinute, allDay, timeZoneSensitive, type, repeating,
65 recurrence, remindBy, firstReminder, secondReminder,
66 addCommunityPermissions, addGuestPermissions);
67 }
68
69 public static com.liferay.portlet.calendar.model.CalEvent addEvent(
70 long plid, java.lang.String title, java.lang.String description,
71 int startDateMonth, int startDateDay, int startDateYear,
72 int startDateHour, int startDateMinute, int endDateMonth,
73 int endDateDay, int endDateYear, int durationHour, int durationMinute,
74 boolean allDay, boolean timeZoneSensitive, java.lang.String type,
75 boolean repeating,
76 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
77 int firstReminder, int secondReminder,
78 java.lang.String[] communityPermissions,
79 java.lang.String[] guestPermissions)
80 throws com.liferay.portal.PortalException,
81 com.liferay.portal.SystemException, java.rmi.RemoteException {
82 return getService()
83 .addEvent(plid, title, description, startDateMonth,
84 startDateDay, startDateYear, startDateHour, startDateMinute,
85 endDateMonth, endDateDay, endDateYear, durationHour,
86 durationMinute, allDay, timeZoneSensitive, type, repeating,
87 recurrence, remindBy, firstReminder, secondReminder,
88 communityPermissions, guestPermissions);
89 }
90
91 public static void deleteEvent(long eventId)
92 throws com.liferay.portal.PortalException,
93 com.liferay.portal.SystemException, java.rmi.RemoteException {
94 getService().deleteEvent(eventId);
95 }
96
97 public static java.io.File exportEvent(long eventId)
98 throws com.liferay.portal.PortalException,
99 com.liferay.portal.SystemException, java.rmi.RemoteException {
100 return getService().exportEvent(eventId);
101 }
102
103 public static java.io.File exportGroupEvents(long plid,
104 java.lang.String fileName)
105 throws com.liferay.portal.PortalException,
106 com.liferay.portal.SystemException, java.rmi.RemoteException {
107 return getService().exportGroupEvents(plid, fileName);
108 }
109
110 public static com.liferay.portlet.calendar.model.CalEvent getEvent(
111 long eventId)
112 throws com.liferay.portal.PortalException,
113 com.liferay.portal.SystemException, java.rmi.RemoteException {
114 return getService().getEvent(eventId);
115 }
116
117 public static void importICal4j(long plid, java.io.File file)
118 throws com.liferay.portal.PortalException,
119 com.liferay.portal.SystemException, java.rmi.RemoteException {
120 getService().importICal4j(plid, file);
121 }
122
123 public static com.liferay.portlet.calendar.model.CalEvent updateEvent(
124 long eventId, java.lang.String title, java.lang.String description,
125 int startDateMonth, int startDateDay, int startDateYear,
126 int startDateHour, int startDateMinute, int endDateMonth,
127 int endDateDay, int endDateYear, int durationHour, int durationMinute,
128 boolean allDay, boolean timeZoneSensitive, java.lang.String type,
129 boolean repeating,
130 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
131 int firstReminder, int secondReminder)
132 throws com.liferay.portal.PortalException,
133 com.liferay.portal.SystemException, java.rmi.RemoteException {
134 return getService()
135 .updateEvent(eventId, title, description, startDateMonth,
136 startDateDay, startDateYear, startDateHour, startDateMinute,
137 endDateMonth, endDateDay, endDateYear, durationHour,
138 durationMinute, allDay, timeZoneSensitive, type, repeating,
139 recurrence, remindBy, firstReminder, secondReminder);
140 }
141
142 public static CalEventService getService() {
143 if (_service == null) {
144 throw new RuntimeException("CalEventService is not set");
145 }
146
147 return _service;
148 }
149
150 public void setService(CalEventService service) {
151 _service = service;
152 }
153
154 private static CalEventService _service;
155 }