1
22
23 package com.liferay.portlet.calendar.service;
24
25
26
51 public interface CalEventLocalService {
52 public com.liferay.portlet.calendar.model.CalEvent addCalEvent(
53 com.liferay.portlet.calendar.model.CalEvent model)
54 throws com.liferay.portal.SystemException;
55
56 public java.util.List dynamicQuery(
57 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
58 throws com.liferay.portal.SystemException;
59
60 public java.util.List dynamicQuery(
61 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
62 int begin, int end) throws com.liferay.portal.SystemException;
63
64 public com.liferay.portlet.calendar.model.CalEvent updateCalEvent(
65 com.liferay.portlet.calendar.model.CalEvent model)
66 throws com.liferay.portal.SystemException;
67
68 public com.liferay.portlet.calendar.service.persistence.CalEventPersistence getCalEventPersistence();
69
70 public void setCalEventPersistence(
71 com.liferay.portlet.calendar.service.persistence.CalEventPersistence calEventPersistence);
72
73 public com.liferay.portlet.calendar.service.persistence.CalEventFinder getCalEventFinder();
74
75 public void setCalEventFinder(
76 com.liferay.portlet.calendar.service.persistence.CalEventFinder calEventFinder);
77
78 public com.liferay.portal.service.persistence.CompanyPersistence getCompanyPersistence();
79
80 public void setCompanyPersistence(
81 com.liferay.portal.service.persistence.CompanyPersistence companyPersistence);
82
83 public com.liferay.portal.service.persistence.PortletPreferencesPersistence getPortletPreferencesPersistence();
84
85 public void setPortletPreferencesPersistence(
86 com.liferay.portal.service.persistence.PortletPreferencesPersistence portletPreferencesPersistence);
87
88 public com.liferay.portal.service.persistence.PortletPreferencesFinder getPortletPreferencesFinder();
89
90 public void setPortletPreferencesFinder(
91 com.liferay.portal.service.persistence.PortletPreferencesFinder portletPreferencesFinder);
92
93 public com.liferay.portal.service.persistence.ResourcePersistence getResourcePersistence();
94
95 public void setResourcePersistence(
96 com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence);
97
98 public com.liferay.portal.service.persistence.ResourceFinder getResourceFinder();
99
100 public void setResourceFinder(
101 com.liferay.portal.service.persistence.ResourceFinder resourceFinder);
102
103 public com.liferay.portal.service.persistence.UserPersistence getUserPersistence();
104
105 public void setUserPersistence(
106 com.liferay.portal.service.persistence.UserPersistence userPersistence);
107
108 public com.liferay.portal.service.persistence.UserFinder getUserFinder();
109
110 public void setUserFinder(
111 com.liferay.portal.service.persistence.UserFinder userFinder);
112
113 public void afterPropertiesSet();
114
115 public com.liferay.portlet.calendar.model.CalEvent addEvent(long userId,
116 long plid, java.lang.String title, java.lang.String description,
117 int startDateMonth, int startDateDay, int startDateYear,
118 int startDateHour, int startDateMinute, int endDateMonth,
119 int endDateDay, int endDateYear, int durationHour, int durationMinute,
120 boolean allDay, boolean timeZoneSensitive, java.lang.String type,
121 boolean repeating, com.liferay.portal.kernel.cal.Recurrence recurrence,
122 java.lang.String remindBy, int firstReminder, int secondReminder,
123 boolean addCommunityPermissions, boolean addGuestPermissions)
124 throws com.liferay.portal.SystemException,
125 com.liferay.portal.PortalException;
126
127 public com.liferay.portlet.calendar.model.CalEvent addEvent(
128 java.lang.String uuid, long userId, long plid, java.lang.String title,
129 java.lang.String description, int startDateMonth, int startDateDay,
130 int startDateYear, int startDateHour, int startDateMinute,
131 int endDateMonth, int endDateDay, int endDateYear, int durationHour,
132 int durationMinute, boolean allDay, boolean timeZoneSensitive,
133 java.lang.String type, boolean repeating,
134 com.liferay.portal.kernel.cal.Recurrence recurrence,
135 java.lang.String remindBy, int firstReminder, int secondReminder,
136 boolean addCommunityPermissions, boolean addGuestPermissions)
137 throws com.liferay.portal.SystemException,
138 com.liferay.portal.PortalException;
139
140 public com.liferay.portlet.calendar.model.CalEvent addEvent(long userId,
141 long plid, java.lang.String title, java.lang.String description,
142 int startDateMonth, int startDateDay, int startDateYear,
143 int startDateHour, int startDateMinute, int endDateMonth,
144 int endDateDay, int endDateYear, int durationHour, int durationMinute,
145 boolean allDay, boolean timeZoneSensitive, java.lang.String type,
146 boolean repeating, com.liferay.portal.kernel.cal.Recurrence recurrence,
147 java.lang.String remindBy, int firstReminder, int secondReminder,
148 java.lang.String[] communityPermissions,
149 java.lang.String[] guestPermissions)
150 throws com.liferay.portal.SystemException,
151 com.liferay.portal.PortalException;
152
153 public com.liferay.portlet.calendar.model.CalEvent addEvent(
154 java.lang.String uuid, long userId, long plid, java.lang.String title,
155 java.lang.String description, int startDateMonth, int startDateDay,
156 int startDateYear, int startDateHour, int startDateMinute,
157 int endDateMonth, int endDateDay, int endDateYear, int durationHour,
158 int durationMinute, boolean allDay, boolean timeZoneSensitive,
159 java.lang.String type, boolean repeating,
160 com.liferay.portal.kernel.cal.Recurrence recurrence,
161 java.lang.String remindBy, int firstReminder, int secondReminder,
162 java.lang.Boolean addCommunityPermissions,
163 java.lang.Boolean addGuestPermissions,
164 java.lang.String[] communityPermissions,
165 java.lang.String[] guestPermissions)
166 throws com.liferay.portal.SystemException,
167 com.liferay.portal.PortalException;
168
169 public void addEventResources(long eventId,
170 boolean addCommunityPermissions, boolean addGuestPermissions)
171 throws com.liferay.portal.SystemException,
172 com.liferay.portal.PortalException;
173
174 public void addEventResources(
175 com.liferay.portlet.calendar.model.CalEvent event,
176 boolean addCommunityPermissions, boolean addGuestPermissions)
177 throws com.liferay.portal.SystemException,
178 com.liferay.portal.PortalException;
179
180 public void addEventResources(long eventId,
181 java.lang.String[] communityPermissions,
182 java.lang.String[] guestPermissions)
183 throws com.liferay.portal.SystemException,
184 com.liferay.portal.PortalException;
185
186 public void addEventResources(
187 com.liferay.portlet.calendar.model.CalEvent event,
188 java.lang.String[] communityPermissions,
189 java.lang.String[] guestPermissions)
190 throws com.liferay.portal.SystemException,
191 com.liferay.portal.PortalException;
192
193 public void checkEvents()
194 throws com.liferay.portal.SystemException,
195 com.liferay.portal.PortalException;
196
197 public void deleteEvent(long eventId)
198 throws com.liferay.portal.SystemException,
199 com.liferay.portal.PortalException;
200
201 public void deleteEvent(com.liferay.portlet.calendar.model.CalEvent event)
202 throws com.liferay.portal.SystemException,
203 com.liferay.portal.PortalException;
204
205 public void deleteEvents(long groupId)
206 throws com.liferay.portal.SystemException,
207 com.liferay.portal.PortalException;
208
209 public java.io.File exportEvent(long userId, long eventId)
210 throws com.liferay.portal.SystemException,
211 com.liferay.portal.PortalException;
212
213 public java.io.File exportGroupEvents(long userId, long plid,
214 java.lang.String fileName)
215 throws com.liferay.portal.SystemException,
216 com.liferay.portal.PortalException;
217
218 public com.liferay.portlet.calendar.model.CalEvent getEvent(long eventId)
219 throws com.liferay.portal.SystemException,
220 com.liferay.portal.PortalException;
221
222 public java.util.List getEvents(long groupId, java.lang.String type,
223 int begin, int end) throws com.liferay.portal.SystemException;
224
225 public java.util.List getEvents(long groupId, java.util.Calendar cal)
226 throws com.liferay.portal.SystemException;
227
228 public java.util.List getEvents(long groupId, java.util.Calendar cal,
229 java.lang.String type) throws com.liferay.portal.SystemException;
230
231 public int getEventsCount(long groupId, java.lang.String type)
232 throws com.liferay.portal.SystemException;
233
234 public java.util.List getRepeatingEvents(long groupId)
235 throws com.liferay.portal.SystemException;
236
237 public boolean hasEvents(long groupId, java.util.Calendar cal)
238 throws com.liferay.portal.SystemException;
239
240 public boolean hasEvents(long groupId, java.util.Calendar cal,
241 java.lang.String type) throws com.liferay.portal.SystemException;
242
243 public void importICal4j(long userId, long plid, java.io.File file)
244 throws com.liferay.portal.SystemException,
245 com.liferay.portal.PortalException;
246
247 public com.liferay.portlet.calendar.model.CalEvent updateEvent(
248 long userId, long eventId, java.lang.String title,
249 java.lang.String description, int startDateMonth, int startDateDay,
250 int startDateYear, int startDateHour, int startDateMinute,
251 int endDateMonth, int endDateDay, int endDateYear, int durationHour,
252 int durationMinute, boolean allDay, boolean timeZoneSensitive,
253 java.lang.String type, boolean repeating,
254 com.liferay.portal.kernel.cal.Recurrence recurrence,
255 java.lang.String remindBy, int firstReminder, int secondReminder)
256 throws com.liferay.portal.SystemException,
257 com.liferay.portal.PortalException;
258 }