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="CalEventService.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.CalEventServiceImpl</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 remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portlet.calendar.service.CalEventServiceFactory
045: * @see com.liferay.portlet.calendar.service.CalEventServiceUtil
046: *
047: */
048: public interface CalEventService {
049: public com.liferay.portlet.calendar.model.CalEvent addEvent(
050: long plid, java.lang.String title,
051: java.lang.String description, int startDateMonth,
052: int startDateDay, int startDateYear, int startDateHour,
053: int startDateMinute, int endDateMonth, int endDateDay,
054: int endDateYear, int durationHour, int durationMinute,
055: boolean allDay, boolean timeZoneSensitive,
056: java.lang.String type, boolean repeating,
057: com.liferay.portal.kernel.cal.Recurrence recurrence,
058: java.lang.String remindBy, int firstReminder,
059: int secondReminder, boolean addCommunityPermissions,
060: boolean addGuestPermissions)
061: throws java.rmi.RemoteException,
062: com.liferay.portal.SystemException,
063: com.liferay.portal.PortalException;
064:
065: public com.liferay.portlet.calendar.model.CalEvent addEvent(
066: long plid, java.lang.String title,
067: java.lang.String description, int startDateMonth,
068: int startDateDay, int startDateYear, int startDateHour,
069: int startDateMinute, int endDateMonth, int endDateDay,
070: int endDateYear, int durationHour, int durationMinute,
071: boolean allDay, boolean timeZoneSensitive,
072: java.lang.String type, boolean repeating,
073: com.liferay.portal.kernel.cal.Recurrence recurrence,
074: java.lang.String remindBy, int firstReminder,
075: int secondReminder,
076: java.lang.String[] communityPermissions,
077: java.lang.String[] guestPermissions)
078: throws java.rmi.RemoteException,
079: com.liferay.portal.SystemException,
080: com.liferay.portal.PortalException;
081:
082: public void deleteEvent(long eventId)
083: throws java.rmi.RemoteException,
084: com.liferay.portal.SystemException,
085: com.liferay.portal.PortalException;
086:
087: public java.io.File exportEvent(long eventId)
088: throws java.rmi.RemoteException,
089: com.liferay.portal.SystemException,
090: com.liferay.portal.PortalException;
091:
092: public java.io.File exportGroupEvents(long plid,
093: java.lang.String fileName) throws java.rmi.RemoteException,
094: com.liferay.portal.SystemException,
095: com.liferay.portal.PortalException;
096:
097: public com.liferay.portlet.calendar.model.CalEvent getEvent(
098: long eventId) throws java.rmi.RemoteException,
099: com.liferay.portal.SystemException,
100: com.liferay.portal.PortalException;
101:
102: public void importICal4j(long plid, java.io.File file)
103: throws java.rmi.RemoteException,
104: com.liferay.portal.SystemException,
105: com.liferay.portal.PortalException;
106:
107: public com.liferay.portlet.calendar.model.CalEvent updateEvent(
108: long eventId, java.lang.String title,
109: java.lang.String description, int startDateMonth,
110: int startDateDay, int startDateYear, int startDateHour,
111: int startDateMinute, int endDateMonth, int endDateDay,
112: int endDateYear, int durationHour, int durationMinute,
113: boolean allDay, boolean timeZoneSensitive,
114: java.lang.String type, boolean repeating,
115: com.liferay.portal.kernel.cal.Recurrence recurrence,
116: java.lang.String remindBy, int firstReminder,
117: int secondReminder) throws java.rmi.RemoteException,
118: com.liferay.portal.SystemException,
119: com.liferay.portal.PortalException;
120: }
|