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    import com.liferay.portal.security.ac.AccessControlled;
024    import com.liferay.portal.service.BaseService;
025    
026    /**
027     * The interface for the cal event remote service.
028     *
029     * <p>
030     * 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.
031     * </p>
032     *
033     * @author Brian Wing Shun Chan
034     * @see CalEventServiceUtil
035     * @see com.liferay.portlet.calendar.service.base.CalEventServiceBaseImpl
036     * @see com.liferay.portlet.calendar.service.impl.CalEventServiceImpl
037     * @generated
038     */
039    @AccessControlled
040    @JSONWebService
041    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
042            PortalException.class, SystemException.class})
043    public interface CalEventService extends BaseService {
044            /*
045             * NOTE FOR DEVELOPERS:
046             *
047             * 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.
048             */
049    
050            /**
051            * Returns the Spring bean ID for this bean.
052            *
053            * @return the Spring bean ID for this bean
054            */
055            public java.lang.String getBeanIdentifier();
056    
057            /**
058            * Sets the Spring bean ID for this bean.
059            *
060            * @param beanIdentifier the Spring bean ID for this bean
061            */
062            public void setBeanIdentifier(java.lang.String beanIdentifier);
063    
064            public com.liferay.portlet.calendar.model.CalEvent addEvent(
065                    java.lang.String title, java.lang.String description,
066                    java.lang.String location, int startDateMonth, int startDateDay,
067                    int startDateYear, int startDateHour, int startDateMinute,
068                    int durationHour, int durationMinute, boolean allDay,
069                    boolean timeZoneSensitive, java.lang.String type, boolean repeating,
070                    com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
071                    int firstReminder, int secondReminder,
072                    com.liferay.portal.service.ServiceContext serviceContext)
073                    throws com.liferay.portal.kernel.exception.PortalException,
074                            com.liferay.portal.kernel.exception.SystemException;
075    
076            /**
077            * @deprecated {@link #addEvent(String, String, String, int, int, int, int,
078            int, int, int, boolean, boolean, String, boolean,
079            TZSRecurrence, int, int, int, ServiceContext)}
080            */
081            public com.liferay.portlet.calendar.model.CalEvent addEvent(
082                    java.lang.String title, java.lang.String description,
083                    java.lang.String location, int startDateMonth, int startDateDay,
084                    int startDateYear, int startDateHour, int startDateMinute,
085                    int endDateMonth, int endDateDay, int endDateYear, int durationHour,
086                    int durationMinute, boolean allDay, boolean timeZoneSensitive,
087                    java.lang.String type, boolean repeating,
088                    com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
089                    int firstReminder, int secondReminder,
090                    com.liferay.portal.service.ServiceContext serviceContext)
091                    throws com.liferay.portal.kernel.exception.PortalException,
092                            com.liferay.portal.kernel.exception.SystemException;
093    
094            public void deleteEvent(long eventId)
095                    throws com.liferay.portal.kernel.exception.PortalException,
096                            com.liferay.portal.kernel.exception.SystemException;
097    
098            public java.io.File exportEvent(long eventId)
099                    throws com.liferay.portal.kernel.exception.PortalException,
100                            com.liferay.portal.kernel.exception.SystemException;
101    
102            public java.io.File exportEvents(
103                    java.util.List<com.liferay.portlet.calendar.model.CalEvent> events,
104                    java.lang.String fileName)
105                    throws com.liferay.portal.kernel.exception.PortalException,
106                            com.liferay.portal.kernel.exception.SystemException;
107    
108            public java.io.File exportGroupEvents(long groupId,
109                    java.lang.String fileName)
110                    throws com.liferay.portal.kernel.exception.PortalException,
111                            com.liferay.portal.kernel.exception.SystemException;
112    
113            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
114            public com.liferay.portlet.calendar.model.CalEvent getEvent(long eventId)
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 java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
120                    long groupId, java.util.Calendar cal, java.lang.String type)
121                    throws com.liferay.portal.kernel.exception.PortalException,
122                            com.liferay.portal.kernel.exception.SystemException;
123    
124            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
125            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
126                    long groupId, java.util.Calendar cal, java.lang.String[] types)
127                    throws com.liferay.portal.kernel.exception.PortalException,
128                            com.liferay.portal.kernel.exception.SystemException;
129    
130            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
131            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
132                    long groupId, java.lang.String type, int start, int end)
133                    throws com.liferay.portal.kernel.exception.SystemException;
134    
135            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
136            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
137                    long groupId, java.lang.String[] types, int start, int end)
138                    throws com.liferay.portal.kernel.exception.SystemException;
139    
140            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
141            public int getEventsCount(long groupId, java.lang.String type)
142                    throws com.liferay.portal.kernel.exception.SystemException;
143    
144            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
145            public int getEventsCount(long groupId, java.lang.String[] types)
146                    throws com.liferay.portal.kernel.exception.SystemException;
147    
148            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
149            public boolean hasEvents(long groupId, java.util.Calendar cal)
150                    throws com.liferay.portal.kernel.exception.PortalException,
151                            com.liferay.portal.kernel.exception.SystemException;
152    
153            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
154            public boolean hasEvents(long groupId, java.util.Calendar cal,
155                    java.lang.String type)
156                    throws com.liferay.portal.kernel.exception.PortalException,
157                            com.liferay.portal.kernel.exception.SystemException;
158    
159            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
160            public boolean hasEvents(long groupId, java.util.Calendar cal,
161                    java.lang.String[] types)
162                    throws com.liferay.portal.kernel.exception.PortalException,
163                            com.liferay.portal.kernel.exception.SystemException;
164    
165            public void importICal4j(long groupId, java.io.InputStream inputStream)
166                    throws com.liferay.portal.kernel.exception.PortalException,
167                            com.liferay.portal.kernel.exception.SystemException;
168    
169            public com.liferay.portlet.calendar.model.CalEvent updateEvent(
170                    long eventId, java.lang.String title, java.lang.String description,
171                    java.lang.String location, int startDateMonth, int startDateDay,
172                    int startDateYear, int startDateHour, int startDateMinute,
173                    int durationHour, int durationMinute, boolean allDay,
174                    boolean timeZoneSensitive, java.lang.String type, boolean repeating,
175                    com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
176                    int firstReminder, int secondReminder,
177                    com.liferay.portal.service.ServiceContext serviceContext)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException;
180    
181            /**
182            * @deprecated {@link #updateEvent(long, String, String, String, int, int,
183            int, int, int, int, int, boolean, boolean, String, boolean,
184            TZSRecurrence, int, int, int, ServiceContext)}
185            */
186            public com.liferay.portlet.calendar.model.CalEvent updateEvent(
187                    long eventId, java.lang.String title, java.lang.String description,
188                    java.lang.String location, int startDateMonth, int startDateDay,
189                    int startDateYear, int startDateHour, int startDateMinute,
190                    int endDateMonth, int endDateDay, int endDateYear, int durationHour,
191                    int durationMinute, boolean allDay, boolean timeZoneSensitive,
192                    java.lang.String type, boolean repeating,
193                    com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
194                    int firstReminder, int secondReminder,
195                    com.liferay.portal.service.ServiceContext serviceContext)
196                    throws com.liferay.portal.kernel.exception.PortalException,
197                            com.liferay.portal.kernel.exception.SystemException;
198    }