001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.calendar.service;
022:
023: /**
024: * <a href="CalEventLocalService.java.html"><b><i>View Source</i></b></a>
025: *
026: * <p>
027: * ServiceBuilder generated this class. Modifications in this class will be
028: * overwritten the next time is generated.
029: * </p>
030: *
031: * <p>
032: * This interface defines the service. The default implementation is
033: * <code>com.liferay.portlet.calendar.service.impl.CalEventLocalServiceImpl</code>.
034: * Modify methods in that class and rerun ServiceBuilder to populate this class
035: * and all other generated classes.
036: * </p>
037: *
038: * <p>
039: * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portlet.calendar.service.CalEventLocalServiceFactory
045: * @see com.liferay.portlet.calendar.service.CalEventLocalServiceUtil
046: *
047: */
048: public interface CalEventLocalService {
049: public com.liferay.portlet.calendar.model.CalEvent addCalEvent(
050: com.liferay.portlet.calendar.model.CalEvent model)
051: throws com.liferay.portal.SystemException;
052:
053: public java.util.List dynamicQuery(
054: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
055: throws com.liferay.portal.SystemException;
056:
057: public java.util.List dynamicQuery(
058: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
059: int begin, int end)
060: throws com.liferay.portal.SystemException;
061:
062: public com.liferay.portlet.calendar.model.CalEvent updateCalEvent(
063: com.liferay.portlet.calendar.model.CalEvent model)
064: throws com.liferay.portal.SystemException;
065:
066: public com.liferay.portlet.calendar.service.persistence.CalEventPersistence getCalEventPersistence();
067:
068: public void setCalEventPersistence(
069: com.liferay.portlet.calendar.service.persistence.CalEventPersistence calEventPersistence);
070:
071: public com.liferay.portlet.calendar.service.persistence.CalEventFinder getCalEventFinder();
072:
073: public void setCalEventFinder(
074: com.liferay.portlet.calendar.service.persistence.CalEventFinder calEventFinder);
075:
076: public com.liferay.portal.service.persistence.CompanyPersistence getCompanyPersistence();
077:
078: public void setCompanyPersistence(
079: com.liferay.portal.service.persistence.CompanyPersistence companyPersistence);
080:
081: public com.liferay.portal.service.persistence.PortletPreferencesPersistence getPortletPreferencesPersistence();
082:
083: public void setPortletPreferencesPersistence(
084: com.liferay.portal.service.persistence.PortletPreferencesPersistence portletPreferencesPersistence);
085:
086: public com.liferay.portal.service.persistence.PortletPreferencesFinder getPortletPreferencesFinder();
087:
088: public void setPortletPreferencesFinder(
089: com.liferay.portal.service.persistence.PortletPreferencesFinder portletPreferencesFinder);
090:
091: public com.liferay.portal.service.persistence.ResourcePersistence getResourcePersistence();
092:
093: public void setResourcePersistence(
094: com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence);
095:
096: public com.liferay.portal.service.persistence.ResourceFinder getResourceFinder();
097:
098: public void setResourceFinder(
099: com.liferay.portal.service.persistence.ResourceFinder resourceFinder);
100:
101: public com.liferay.portal.service.persistence.UserPersistence getUserPersistence();
102:
103: public void setUserPersistence(
104: com.liferay.portal.service.persistence.UserPersistence userPersistence);
105:
106: public com.liferay.portal.service.persistence.UserFinder getUserFinder();
107:
108: public void setUserFinder(
109: com.liferay.portal.service.persistence.UserFinder userFinder);
110:
111: public void afterPropertiesSet();
112:
113: public com.liferay.portlet.calendar.model.CalEvent addEvent(
114: long userId, long plid, java.lang.String title,
115: java.lang.String description, int startDateMonth,
116: int startDateDay, int startDateYear, int startDateHour,
117: int startDateMinute, int endDateMonth, int endDateDay,
118: int endDateYear, int durationHour, int durationMinute,
119: boolean allDay, boolean timeZoneSensitive,
120: java.lang.String type, boolean repeating,
121: com.liferay.portal.kernel.cal.Recurrence recurrence,
122: java.lang.String remindBy, int firstReminder,
123: int secondReminder, boolean addCommunityPermissions,
124: boolean addGuestPermissions)
125: throws com.liferay.portal.SystemException,
126: com.liferay.portal.PortalException;
127:
128: public com.liferay.portlet.calendar.model.CalEvent addEvent(
129: java.lang.String uuid, long userId, long plid,
130: java.lang.String title, java.lang.String description,
131: int startDateMonth, int startDateDay, int startDateYear,
132: int startDateHour, int startDateMinute, int endDateMonth,
133: int endDateDay, int endDateYear, int durationHour,
134: int durationMinute, boolean allDay,
135: boolean timeZoneSensitive, java.lang.String type,
136: boolean repeating,
137: com.liferay.portal.kernel.cal.Recurrence recurrence,
138: java.lang.String remindBy, int firstReminder,
139: int secondReminder, boolean addCommunityPermissions,
140: boolean addGuestPermissions)
141: throws com.liferay.portal.SystemException,
142: com.liferay.portal.PortalException;
143:
144: public com.liferay.portlet.calendar.model.CalEvent addEvent(
145: long userId, long plid, java.lang.String title,
146: java.lang.String description, int startDateMonth,
147: int startDateDay, int startDateYear, int startDateHour,
148: int startDateMinute, int endDateMonth, int endDateDay,
149: int endDateYear, int durationHour, int durationMinute,
150: boolean allDay, boolean timeZoneSensitive,
151: java.lang.String type, boolean repeating,
152: com.liferay.portal.kernel.cal.Recurrence recurrence,
153: java.lang.String remindBy, int firstReminder,
154: int secondReminder,
155: java.lang.String[] communityPermissions,
156: java.lang.String[] guestPermissions)
157: throws com.liferay.portal.SystemException,
158: com.liferay.portal.PortalException;
159:
160: public com.liferay.portlet.calendar.model.CalEvent addEvent(
161: java.lang.String uuid, long userId, long plid,
162: java.lang.String title, java.lang.String description,
163: int startDateMonth, int startDateDay, int startDateYear,
164: int startDateHour, int startDateMinute, int endDateMonth,
165: int endDateDay, int endDateYear, int durationHour,
166: int durationMinute, boolean allDay,
167: boolean timeZoneSensitive, java.lang.String type,
168: boolean repeating,
169: com.liferay.portal.kernel.cal.Recurrence recurrence,
170: java.lang.String remindBy, int firstReminder,
171: int secondReminder,
172: java.lang.Boolean addCommunityPermissions,
173: java.lang.Boolean addGuestPermissions,
174: java.lang.String[] communityPermissions,
175: java.lang.String[] guestPermissions)
176: throws com.liferay.portal.SystemException,
177: com.liferay.portal.PortalException;
178:
179: public void addEventResources(long eventId,
180: boolean addCommunityPermissions, boolean addGuestPermissions)
181: throws com.liferay.portal.SystemException,
182: com.liferay.portal.PortalException;
183:
184: public void addEventResources(
185: com.liferay.portlet.calendar.model.CalEvent event,
186: boolean addCommunityPermissions, boolean addGuestPermissions)
187: throws com.liferay.portal.SystemException,
188: com.liferay.portal.PortalException;
189:
190: public void addEventResources(long eventId,
191: java.lang.String[] communityPermissions,
192: java.lang.String[] guestPermissions)
193: throws com.liferay.portal.SystemException,
194: com.liferay.portal.PortalException;
195:
196: public void addEventResources(
197: com.liferay.portlet.calendar.model.CalEvent event,
198: java.lang.String[] communityPermissions,
199: java.lang.String[] guestPermissions)
200: throws com.liferay.portal.SystemException,
201: com.liferay.portal.PortalException;
202:
203: public void checkEvents()
204: throws com.liferay.portal.SystemException,
205: com.liferay.portal.PortalException;
206:
207: public void deleteEvent(long eventId)
208: throws com.liferay.portal.SystemException,
209: com.liferay.portal.PortalException;
210:
211: public void deleteEvent(
212: com.liferay.portlet.calendar.model.CalEvent event)
213: throws com.liferay.portal.SystemException,
214: com.liferay.portal.PortalException;
215:
216: public void deleteEvents(long groupId)
217: throws com.liferay.portal.SystemException,
218: com.liferay.portal.PortalException;
219:
220: public java.io.File exportEvent(long userId, long eventId)
221: throws com.liferay.portal.SystemException,
222: com.liferay.portal.PortalException;
223:
224: public java.io.File exportGroupEvents(long userId, long plid,
225: java.lang.String fileName)
226: throws com.liferay.portal.SystemException,
227: com.liferay.portal.PortalException;
228:
229: public com.liferay.portlet.calendar.model.CalEvent getEvent(
230: long eventId) throws com.liferay.portal.SystemException,
231: com.liferay.portal.PortalException;
232:
233: public java.util.List getEvents(long groupId,
234: java.lang.String type, int begin, int end)
235: throws com.liferay.portal.SystemException;
236:
237: public java.util.List getEvents(long groupId, java.util.Calendar cal)
238: throws com.liferay.portal.SystemException;
239:
240: public java.util.List getEvents(long groupId,
241: java.util.Calendar cal, java.lang.String type)
242: throws com.liferay.portal.SystemException;
243:
244: public int getEventsCount(long groupId, java.lang.String type)
245: throws com.liferay.portal.SystemException;
246:
247: public java.util.List getRepeatingEvents(long groupId)
248: throws com.liferay.portal.SystemException;
249:
250: public boolean hasEvents(long groupId, java.util.Calendar cal)
251: throws com.liferay.portal.SystemException;
252:
253: public boolean hasEvents(long groupId, java.util.Calendar cal,
254: java.lang.String type)
255: throws com.liferay.portal.SystemException;
256:
257: public void importICal4j(long userId, long plid, java.io.File file)
258: throws com.liferay.portal.SystemException,
259: com.liferay.portal.PortalException;
260:
261: public com.liferay.portlet.calendar.model.CalEvent updateEvent(
262: long userId, long eventId, java.lang.String title,
263: java.lang.String description, int startDateMonth,
264: int startDateDay, int startDateYear, int startDateHour,
265: int startDateMinute, int endDateMonth, int endDateDay,
266: int endDateYear, int durationHour, int durationMinute,
267: boolean allDay, boolean timeZoneSensitive,
268: java.lang.String type, boolean repeating,
269: com.liferay.portal.kernel.cal.Recurrence recurrence,
270: java.lang.String remindBy, int firstReminder,
271: int secondReminder)
272: throws com.liferay.portal.SystemException,
273: com.liferay.portal.PortalException;
274: }
|