1
19
20 package com.liferay.portlet.calendar.service;
21
22 import com.liferay.portal.PortalException;
23 import com.liferay.portal.SystemException;
24 import com.liferay.portal.kernel.annotation.Propagation;
25 import com.liferay.portal.kernel.annotation.Transactional;
26
27
51 @Transactional(rollbackFor = {
52 PortalException.class, SystemException.class})
53 public interface CalEventLocalService {
54 public com.liferay.portlet.calendar.model.CalEvent addCalEvent(
55 com.liferay.portlet.calendar.model.CalEvent calEvent)
56 throws com.liferay.portal.SystemException;
57
58 public com.liferay.portlet.calendar.model.CalEvent createCalEvent(
59 long eventId);
60
61 public void deleteCalEvent(long eventId)
62 throws com.liferay.portal.SystemException,
63 com.liferay.portal.PortalException;
64
65 public void deleteCalEvent(
66 com.liferay.portlet.calendar.model.CalEvent calEvent)
67 throws com.liferay.portal.SystemException;
68
69 public java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
71 throws com.liferay.portal.SystemException;
72
73 public java.util.List<Object> dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end) throws com.liferay.portal.SystemException;
76
77 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
78 public com.liferay.portlet.calendar.model.CalEvent getCalEvent(long eventId)
79 throws com.liferay.portal.SystemException,
80 com.liferay.portal.PortalException;
81
82 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
83 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getCalEvents(
84 int start, int end) throws com.liferay.portal.SystemException;
85
86 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87 public int getCalEventsCount() throws com.liferay.portal.SystemException;
88
89 public com.liferay.portlet.calendar.model.CalEvent updateCalEvent(
90 com.liferay.portlet.calendar.model.CalEvent calEvent)
91 throws com.liferay.portal.SystemException;
92
93 public com.liferay.portlet.calendar.model.CalEvent addEvent(long userId,
94 long plid, java.lang.String title, java.lang.String description,
95 int startDateMonth, int startDateDay, int startDateYear,
96 int startDateHour, int startDateMinute, int endDateMonth,
97 int endDateDay, int endDateYear, int durationHour, int durationMinute,
98 boolean allDay, boolean timeZoneSensitive, java.lang.String type,
99 boolean repeating,
100 com.liferay.portal.kernel.cal.TZSRecurrence recurrence,
101 java.lang.String remindBy, int firstReminder, int secondReminder,
102 boolean addCommunityPermissions, boolean addGuestPermissions)
103 throws com.liferay.portal.PortalException,
104 com.liferay.portal.SystemException;
105
106 public com.liferay.portlet.calendar.model.CalEvent addEvent(
107 java.lang.String uuid, long userId, long plid, java.lang.String title,
108 java.lang.String description, int startDateMonth, int startDateDay,
109 int startDateYear, int startDateHour, int startDateMinute,
110 int endDateMonth, int endDateDay, int endDateYear, int durationHour,
111 int durationMinute, boolean allDay, boolean timeZoneSensitive,
112 java.lang.String type, boolean repeating,
113 com.liferay.portal.kernel.cal.TZSRecurrence recurrence,
114 java.lang.String remindBy, int firstReminder, int secondReminder,
115 boolean addCommunityPermissions, boolean addGuestPermissions)
116 throws com.liferay.portal.PortalException,
117 com.liferay.portal.SystemException;
118
119 public com.liferay.portlet.calendar.model.CalEvent addEvent(long userId,
120 long plid, 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,
126 com.liferay.portal.kernel.cal.TZSRecurrence recurrence,
127 java.lang.String remindBy, int firstReminder, int secondReminder,
128 java.lang.String[] communityPermissions,
129 java.lang.String[] guestPermissions)
130 throws com.liferay.portal.PortalException,
131 com.liferay.portal.SystemException;
132
133 public com.liferay.portlet.calendar.model.CalEvent addEvent(
134 java.lang.String uuid, long userId, long plid, java.lang.String title,
135 java.lang.String description, int startDateMonth, int startDateDay,
136 int startDateYear, int startDateHour, int startDateMinute,
137 int endDateMonth, int endDateDay, int endDateYear, int durationHour,
138 int durationMinute, boolean allDay, boolean timeZoneSensitive,
139 java.lang.String type, boolean repeating,
140 com.liferay.portal.kernel.cal.TZSRecurrence recurrence,
141 java.lang.String remindBy, int firstReminder, int secondReminder,
142 java.lang.Boolean addCommunityPermissions,
143 java.lang.Boolean addGuestPermissions,
144 java.lang.String[] communityPermissions,
145 java.lang.String[] guestPermissions)
146 throws com.liferay.portal.PortalException,
147 com.liferay.portal.SystemException;
148
149 public void addEventResources(long eventId,
150 boolean addCommunityPermissions, boolean addGuestPermissions)
151 throws com.liferay.portal.PortalException,
152 com.liferay.portal.SystemException;
153
154 public void addEventResources(
155 com.liferay.portlet.calendar.model.CalEvent event,
156 boolean addCommunityPermissions, boolean addGuestPermissions)
157 throws com.liferay.portal.PortalException,
158 com.liferay.portal.SystemException;
159
160 public void addEventResources(long eventId,
161 java.lang.String[] communityPermissions,
162 java.lang.String[] guestPermissions)
163 throws com.liferay.portal.PortalException,
164 com.liferay.portal.SystemException;
165
166 public void addEventResources(
167 com.liferay.portlet.calendar.model.CalEvent event,
168 java.lang.String[] communityPermissions,
169 java.lang.String[] guestPermissions)
170 throws com.liferay.portal.PortalException,
171 com.liferay.portal.SystemException;
172
173 public void checkEvents()
174 throws com.liferay.portal.PortalException,
175 com.liferay.portal.SystemException;
176
177 public void deleteEvent(long eventId)
178 throws com.liferay.portal.PortalException,
179 com.liferay.portal.SystemException;
180
181 public void deleteEvent(com.liferay.portlet.calendar.model.CalEvent event)
182 throws com.liferay.portal.PortalException,
183 com.liferay.portal.SystemException;
184
185 public void deleteEvents(long groupId)
186 throws com.liferay.portal.PortalException,
187 com.liferay.portal.SystemException;
188
189 public java.io.File exportEvent(long userId, long eventId)
190 throws com.liferay.portal.PortalException,
191 com.liferay.portal.SystemException;
192
193 public java.io.File exportGroupEvents(long userId, long plid,
194 java.lang.String fileName)
195 throws com.liferay.portal.PortalException,
196 com.liferay.portal.SystemException;
197
198 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199 public com.liferay.portlet.calendar.model.CalEvent getEvent(long eventId)
200 throws com.liferay.portal.PortalException,
201 com.liferay.portal.SystemException;
202
203 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
205 long groupId, java.lang.String type, int start, int end)
206 throws com.liferay.portal.SystemException;
207
208 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
210 long groupId, java.util.Calendar cal)
211 throws com.liferay.portal.SystemException;
212
213 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
214 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
215 long groupId, java.util.Calendar cal, java.lang.String type)
216 throws com.liferay.portal.SystemException;
217
218 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
219 public int getEventsCount(long groupId, java.lang.String type)
220 throws com.liferay.portal.SystemException;
221
222 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
223 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getRepeatingEvents(
224 long groupId) throws com.liferay.portal.SystemException;
225
226 public boolean hasEvents(long groupId, java.util.Calendar cal)
227 throws com.liferay.portal.SystemException;
228
229 public boolean hasEvents(long groupId, java.util.Calendar cal,
230 java.lang.String type) throws com.liferay.portal.SystemException;
231
232 public void importICal4j(long userId, long plid, java.io.File file)
233 throws com.liferay.portal.PortalException,
234 com.liferay.portal.SystemException;
235
236 public com.liferay.portlet.calendar.model.CalEvent updateEvent(
237 long userId, long eventId, java.lang.String title,
238 java.lang.String description, int startDateMonth, int startDateDay,
239 int startDateYear, int startDateHour, int startDateMinute,
240 int endDateMonth, int endDateDay, int endDateYear, int durationHour,
241 int durationMinute, boolean allDay, boolean timeZoneSensitive,
242 java.lang.String type, boolean repeating,
243 com.liferay.portal.kernel.cal.TZSRecurrence recurrence,
244 java.lang.String remindBy, int firstReminder, int secondReminder)
245 throws com.liferay.portal.PortalException,
246 com.liferay.portal.SystemException;
247 }