001
014
015 package com.liferay.portlet.calendar.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface CalEventLocalService {
043 public com.liferay.portlet.calendar.model.CalEvent addCalEvent(
044 com.liferay.portlet.calendar.model.CalEvent calEvent)
045 throws com.liferay.portal.kernel.exception.SystemException;
046
047 public com.liferay.portlet.calendar.model.CalEvent createCalEvent(
048 long eventId);
049
050 public void deleteCalEvent(long eventId)
051 throws com.liferay.portal.kernel.exception.PortalException,
052 com.liferay.portal.kernel.exception.SystemException;
053
054 public void deleteCalEvent(
055 com.liferay.portlet.calendar.model.CalEvent calEvent)
056 throws com.liferay.portal.kernel.exception.SystemException;
057
058 @SuppressWarnings("unchecked")
059 public java.util.List dynamicQuery(
060 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
061 throws com.liferay.portal.kernel.exception.SystemException;
062
063 @SuppressWarnings("unchecked")
064 public java.util.List dynamicQuery(
065 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066 int end) throws com.liferay.portal.kernel.exception.SystemException;
067
068 @SuppressWarnings("unchecked")
069 public java.util.List dynamicQuery(
070 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
071 int end,
072 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
073 throws com.liferay.portal.kernel.exception.SystemException;
074
075 public long dynamicQueryCount(
076 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
077 throws com.liferay.portal.kernel.exception.SystemException;
078
079 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080 public com.liferay.portlet.calendar.model.CalEvent getCalEvent(long eventId)
081 throws com.liferay.portal.kernel.exception.PortalException,
082 com.liferay.portal.kernel.exception.SystemException;
083
084 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
085 public com.liferay.portlet.calendar.model.CalEvent getCalEventByUuidAndGroupId(
086 java.lang.String uuid, long groupId)
087 throws com.liferay.portal.kernel.exception.PortalException,
088 com.liferay.portal.kernel.exception.SystemException;
089
090 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
091 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getCalEvents(
092 int start, int end)
093 throws com.liferay.portal.kernel.exception.SystemException;
094
095 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
096 public int getCalEventsCount()
097 throws com.liferay.portal.kernel.exception.SystemException;
098
099 public com.liferay.portlet.calendar.model.CalEvent updateCalEvent(
100 com.liferay.portlet.calendar.model.CalEvent calEvent)
101 throws com.liferay.portal.kernel.exception.SystemException;
102
103 public com.liferay.portlet.calendar.model.CalEvent updateCalEvent(
104 com.liferay.portlet.calendar.model.CalEvent calEvent, boolean merge)
105 throws com.liferay.portal.kernel.exception.SystemException;
106
107 public com.liferay.portlet.calendar.model.CalEvent addEvent(long userId,
108 java.lang.String title, java.lang.String description,
109 int startDateMonth, int startDateDay, int startDateYear,
110 int startDateHour, int startDateMinute, int endDateMonth,
111 int endDateDay, int endDateYear, int durationHour, int durationMinute,
112 boolean allDay, boolean timeZoneSensitive, java.lang.String type,
113 boolean repeating,
114 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
115 int firstReminder, int secondReminder,
116 com.liferay.portal.service.ServiceContext serviceContext)
117 throws com.liferay.portal.kernel.exception.PortalException,
118 com.liferay.portal.kernel.exception.SystemException;
119
120 public void addEventResources(
121 com.liferay.portlet.calendar.model.CalEvent event,
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(
127 com.liferay.portlet.calendar.model.CalEvent event,
128 java.lang.String[] communityPermissions,
129 java.lang.String[] guestPermissions)
130 throws com.liferay.portal.kernel.exception.PortalException,
131 com.liferay.portal.kernel.exception.SystemException;
132
133 public void addEventResources(long eventId,
134 boolean addCommunityPermissions, boolean addGuestPermissions)
135 throws com.liferay.portal.kernel.exception.PortalException,
136 com.liferay.portal.kernel.exception.SystemException;
137
138 public void addEventResources(long eventId,
139 java.lang.String[] communityPermissions,
140 java.lang.String[] guestPermissions)
141 throws com.liferay.portal.kernel.exception.PortalException,
142 com.liferay.portal.kernel.exception.SystemException;
143
144 public void checkEvents()
145 throws com.liferay.portal.kernel.exception.PortalException,
146 com.liferay.portal.kernel.exception.SystemException;
147
148 public void deleteEvent(com.liferay.portlet.calendar.model.CalEvent event)
149 throws com.liferay.portal.kernel.exception.PortalException,
150 com.liferay.portal.kernel.exception.SystemException;
151
152 public void deleteEvent(long eventId)
153 throws com.liferay.portal.kernel.exception.PortalException,
154 com.liferay.portal.kernel.exception.SystemException;
155
156 public void deleteEvents(long groupId)
157 throws com.liferay.portal.kernel.exception.PortalException,
158 com.liferay.portal.kernel.exception.SystemException;
159
160 public java.io.File exportEvent(long userId, long eventId)
161 throws com.liferay.portal.kernel.exception.PortalException,
162 com.liferay.portal.kernel.exception.SystemException;
163
164 public java.io.File exportGroupEvents(long userId, long groupId,
165 java.lang.String fileName)
166 throws com.liferay.portal.kernel.exception.PortalException,
167 com.liferay.portal.kernel.exception.SystemException;
168
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getCompanyEvents(
171 long companyId, int start, int end)
172 throws com.liferay.portal.kernel.exception.SystemException;
173
174 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
175 public int getCompanyEventsCount(long companyId)
176 throws com.liferay.portal.kernel.exception.SystemException;
177
178 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179 public com.liferay.portlet.calendar.model.CalEvent getEvent(long eventId)
180 throws com.liferay.portal.kernel.exception.PortalException,
181 com.liferay.portal.kernel.exception.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.kernel.exception.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.kernel.exception.SystemException;
192
193 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
194 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
195 long groupId, java.lang.String type, int start, int end)
196 throws com.liferay.portal.kernel.exception.SystemException;
197
198 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199 public int getEventsCount(long groupId, java.lang.String type)
200 throws com.liferay.portal.kernel.exception.SystemException;
201
202 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
203 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getNoAssetEvents()
204 throws com.liferay.portal.kernel.exception.SystemException;
205
206 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
207 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getRepeatingEvents(
208 long groupId)
209 throws com.liferay.portal.kernel.exception.SystemException;
210
211 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
212 public boolean hasEvents(long groupId, java.util.Calendar cal)
213 throws com.liferay.portal.kernel.exception.SystemException;
214
215 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
216 public boolean hasEvents(long groupId, java.util.Calendar cal,
217 java.lang.String type)
218 throws com.liferay.portal.kernel.exception.SystemException;
219
220 public void importICal4j(long userId, long groupId, java.io.File file)
221 throws com.liferay.portal.kernel.exception.PortalException,
222 com.liferay.portal.kernel.exception.SystemException;
223
224 public void updateAsset(long userId,
225 com.liferay.portlet.calendar.model.CalEvent event,
226 long[] assetCategoryIds, java.lang.String[] assetTagNames)
227 throws com.liferay.portal.kernel.exception.PortalException,
228 com.liferay.portal.kernel.exception.SystemException;
229
230 public com.liferay.portlet.calendar.model.CalEvent updateEvent(
231 long userId, long eventId, java.lang.String title,
232 java.lang.String description, int startDateMonth, int startDateDay,
233 int startDateYear, int startDateHour, int startDateMinute,
234 int endDateMonth, int endDateDay, int endDateYear, int durationHour,
235 int durationMinute, boolean allDay, boolean timeZoneSensitive,
236 java.lang.String type, boolean repeating,
237 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
238 int firstReminder, int secondReminder,
239 com.liferay.portal.service.ServiceContext serviceContext)
240 throws com.liferay.portal.kernel.exception.PortalException,
241 com.liferay.portal.kernel.exception.SystemException;
242 }