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