001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.calendar.service;
016    
017    import com.liferay.portal.kernel.exception.PortalException;
018    import com.liferay.portal.kernel.exception.SystemException;
019    import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
020    import com.liferay.portal.kernel.transaction.Isolation;
021    import com.liferay.portal.kernel.transaction.Propagation;
022    import com.liferay.portal.kernel.transaction.Transactional;
023    
024    /**
025     * The interface for the cal event remote service.
026     *
027     * <p>
028     * 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.
029     * </p>
030     *
031     * @author Brian Wing Shun Chan
032     * @see CalEventServiceUtil
033     * @see com.liferay.portlet.calendar.service.base.CalEventServiceBaseImpl
034     * @see com.liferay.portlet.calendar.service.impl.CalEventServiceImpl
035     * @generated
036     */
037    @JSONWebService
038    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
039            PortalException.class, SystemException.class})
040    public interface CalEventService {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * Never modify or reference this interface directly. Always use {@link CalEventServiceUtil} to access the cal event remote service. Add custom service methods to {@link com.liferay.portlet.calendar.service.impl.CalEventServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
045             */
046            public com.liferay.portlet.calendar.model.CalEvent addEvent(
047                    java.lang.String title, java.lang.String description,
048                    java.lang.String location, int startDateMonth, int startDateDay,
049                    int startDateYear, int startDateHour, int startDateMinute,
050                    int endDateMonth, int endDateDay, int endDateYear, int durationHour,
051                    int durationMinute, boolean allDay, boolean timeZoneSensitive,
052                    java.lang.String type, boolean repeating,
053                    com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
054                    int firstReminder, int secondReminder,
055                    com.liferay.portal.service.ServiceContext serviceContext)
056                    throws com.liferay.portal.kernel.exception.PortalException,
057                            com.liferay.portal.kernel.exception.SystemException;
058    
059            public void deleteEvent(long eventId)
060                    throws com.liferay.portal.kernel.exception.PortalException,
061                            com.liferay.portal.kernel.exception.SystemException;
062    
063            public java.io.File exportEvent(long eventId)
064                    throws com.liferay.portal.kernel.exception.PortalException,
065                            com.liferay.portal.kernel.exception.SystemException;
066    
067            public java.io.File exportGroupEvents(long groupId,
068                    java.lang.String fileName)
069                    throws com.liferay.portal.kernel.exception.PortalException,
070                            com.liferay.portal.kernel.exception.SystemException;
071    
072            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
073            public com.liferay.portlet.calendar.model.CalEvent getEvent(long eventId)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException;
076    
077            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
078            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
079                    long groupId, java.util.Calendar cal, java.lang.String type)
080                    throws com.liferay.portal.kernel.exception.PortalException,
081                            com.liferay.portal.kernel.exception.SystemException;
082    
083            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
084            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
085                    long groupId, java.util.Calendar cal, java.lang.String[] types)
086                    throws com.liferay.portal.kernel.exception.PortalException,
087                            com.liferay.portal.kernel.exception.SystemException;
088    
089            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
090            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
091                    long groupId, java.lang.String type, int start, int end)
092                    throws com.liferay.portal.kernel.exception.SystemException;
093    
094            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
095            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
096                    long groupId, java.lang.String[] types, int start, int end)
097                    throws com.liferay.portal.kernel.exception.SystemException;
098    
099            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
100            public int getEventsCount(long groupId, java.lang.String type)
101                    throws com.liferay.portal.kernel.exception.SystemException;
102    
103            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
104            public int getEventsCount(long groupId, java.lang.String[] types)
105                    throws com.liferay.portal.kernel.exception.SystemException;
106    
107            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
108            public boolean hasEvents(long groupId, java.util.Calendar cal)
109                    throws com.liferay.portal.kernel.exception.PortalException,
110                            com.liferay.portal.kernel.exception.SystemException;
111    
112            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
113            public boolean hasEvents(long groupId, java.util.Calendar cal,
114                    java.lang.String type)
115                    throws com.liferay.portal.kernel.exception.PortalException,
116                            com.liferay.portal.kernel.exception.SystemException;
117    
118            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
119            public boolean hasEvents(long groupId, java.util.Calendar cal,
120                    java.lang.String[] types)
121                    throws com.liferay.portal.kernel.exception.PortalException,
122                            com.liferay.portal.kernel.exception.SystemException;
123    
124            public void importICal4j(long groupId, java.io.InputStream inputStream)
125                    throws com.liferay.portal.kernel.exception.PortalException,
126                            com.liferay.portal.kernel.exception.SystemException;
127    
128            public com.liferay.portlet.calendar.model.CalEvent updateEvent(
129                    long eventId, java.lang.String title, java.lang.String description,
130                    java.lang.String location, int startDateMonth, int startDateDay,
131                    int startDateYear, int startDateHour, int startDateMinute,
132                    int endDateMonth, int endDateDay, int endDateYear, int durationHour,
133                    int durationMinute, boolean allDay, boolean timeZoneSensitive,
134                    java.lang.String type, boolean repeating,
135                    com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
136                    int firstReminder, int secondReminder,
137                    com.liferay.portal.service.ServiceContext serviceContext)
138                    throws com.liferay.portal.kernel.exception.PortalException,
139                            com.liferay.portal.kernel.exception.SystemException;
140    }