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