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