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