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 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
74 public com.liferay.portlet.calendar.model.CalEvent getCalEvent(long eventId)
75 throws com.liferay.portal.kernel.exception.PortalException,
76 com.liferay.portal.kernel.exception.SystemException;
77
78 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
79 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getCalEvents(
80 int start, int end)
81 throws com.liferay.portal.kernel.exception.SystemException;
82
83 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84 public int getCalEventsCount()
85 throws com.liferay.portal.kernel.exception.SystemException;
86
87 public com.liferay.portlet.calendar.model.CalEvent updateCalEvent(
88 com.liferay.portlet.calendar.model.CalEvent calEvent)
89 throws com.liferay.portal.kernel.exception.SystemException;
90
91 public com.liferay.portlet.calendar.model.CalEvent updateCalEvent(
92 com.liferay.portlet.calendar.model.CalEvent calEvent, boolean merge)
93 throws com.liferay.portal.kernel.exception.SystemException;
94
95 public com.liferay.portlet.calendar.model.CalEvent addEvent(
96 java.lang.String uuid, long userId, java.lang.String title,
97 java.lang.String description, int startDateMonth, int startDateDay,
98 int startDateYear, int startDateHour, int startDateMinute,
99 int endDateMonth, int endDateDay, int endDateYear, int durationHour,
100 int durationMinute, boolean allDay, boolean timeZoneSensitive,
101 java.lang.String type, boolean repeating,
102 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
103 int firstReminder, int secondReminder,
104 com.liferay.portal.service.ServiceContext serviceContext)
105 throws com.liferay.portal.kernel.exception.PortalException,
106 com.liferay.portal.kernel.exception.SystemException;
107
108 public void addEventResources(
109 com.liferay.portlet.calendar.model.CalEvent event,
110 boolean addCommunityPermissions, boolean addGuestPermissions)
111 throws com.liferay.portal.kernel.exception.PortalException,
112 com.liferay.portal.kernel.exception.SystemException;
113
114 public void addEventResources(
115 com.liferay.portlet.calendar.model.CalEvent event,
116 java.lang.String[] communityPermissions,
117 java.lang.String[] guestPermissions)
118 throws com.liferay.portal.kernel.exception.PortalException,
119 com.liferay.portal.kernel.exception.SystemException;
120
121 public void addEventResources(long eventId,
122 boolean addCommunityPermissions, boolean addGuestPermissions)
123 throws com.liferay.portal.kernel.exception.PortalException,
124 com.liferay.portal.kernel.exception.SystemException;
125
126 public void addEventResources(long eventId,
127 java.lang.String[] communityPermissions,
128 java.lang.String[] guestPermissions)
129 throws com.liferay.portal.kernel.exception.PortalException,
130 com.liferay.portal.kernel.exception.SystemException;
131
132 public void checkEvents()
133 throws com.liferay.portal.kernel.exception.PortalException,
134 com.liferay.portal.kernel.exception.SystemException;
135
136 public void deleteEvent(com.liferay.portlet.calendar.model.CalEvent event)
137 throws com.liferay.portal.kernel.exception.PortalException,
138 com.liferay.portal.kernel.exception.SystemException;
139
140 public void deleteEvent(long eventId)
141 throws com.liferay.portal.kernel.exception.PortalException,
142 com.liferay.portal.kernel.exception.SystemException;
143
144 public void deleteEvents(long groupId)
145 throws com.liferay.portal.kernel.exception.PortalException,
146 com.liferay.portal.kernel.exception.SystemException;
147
148 public java.io.File exportEvent(long userId, long eventId)
149 throws com.liferay.portal.kernel.exception.PortalException,
150 com.liferay.portal.kernel.exception.SystemException;
151
152 public java.io.File exportGroupEvents(long userId, long groupId,
153 java.lang.String fileName)
154 throws com.liferay.portal.kernel.exception.PortalException,
155 com.liferay.portal.kernel.exception.SystemException;
156
157 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getCompanyEvents(
159 long companyId, int start, int end)
160 throws com.liferay.portal.kernel.exception.SystemException;
161
162 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
163 public int getCompanyEventsCount(long companyId)
164 throws com.liferay.portal.kernel.exception.SystemException;
165
166 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167 public com.liferay.portlet.calendar.model.CalEvent getEvent(long eventId)
168 throws com.liferay.portal.kernel.exception.PortalException,
169 com.liferay.portal.kernel.exception.SystemException;
170
171 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
173 long groupId, java.util.Calendar cal)
174 throws com.liferay.portal.kernel.exception.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.util.Calendar cal, java.lang.String type)
179 throws 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.lang.String type, int start, int end)
184 throws com.liferay.portal.kernel.exception.SystemException;
185
186 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187 public int getEventsCount(long groupId, java.lang.String type)
188 throws com.liferay.portal.kernel.exception.SystemException;
189
190 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getNoAssetEvents()
192 throws com.liferay.portal.kernel.exception.SystemException;
193
194 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getRepeatingEvents(
196 long groupId)
197 throws com.liferay.portal.kernel.exception.SystemException;
198
199 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
200 public boolean hasEvents(long groupId, java.util.Calendar cal)
201 throws com.liferay.portal.kernel.exception.SystemException;
202
203 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204 public boolean hasEvents(long groupId, java.util.Calendar cal,
205 java.lang.String type)
206 throws com.liferay.portal.kernel.exception.SystemException;
207
208 public void importICal4j(long userId, long groupId, java.io.File file)
209 throws com.liferay.portal.kernel.exception.PortalException,
210 com.liferay.portal.kernel.exception.SystemException;
211
212 public void updateAsset(long userId,
213 com.liferay.portlet.calendar.model.CalEvent event,
214 long[] assetCategoryIds, java.lang.String[] assetTagNames)
215 throws com.liferay.portal.kernel.exception.PortalException,
216 com.liferay.portal.kernel.exception.SystemException;
217
218 public com.liferay.portlet.calendar.model.CalEvent updateEvent(
219 long userId, long eventId, java.lang.String title,
220 java.lang.String description, int startDateMonth, int startDateDay,
221 int startDateYear, int startDateHour, int startDateMinute,
222 int endDateMonth, int endDateDay, int endDateYear, int durationHour,
223 int durationMinute, boolean allDay, boolean timeZoneSensitive,
224 java.lang.String type, boolean repeating,
225 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
226 int firstReminder, int secondReminder,
227 com.liferay.portal.service.ServiceContext serviceContext)
228 throws com.liferay.portal.kernel.exception.PortalException,
229 com.liferay.portal.kernel.exception.SystemException;
230 }