001    /**
002     * Copyright (c) 2000-2013 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 As of 6.2.0, replaced by {@link #addEvent(String, String,
078            String, int, int, int, int, int, int, int, boolean, boolean,
079            String, boolean, TZSRecurrence, int, int, int,
080            ServiceContext)}
081            */
082            public com.liferay.portlet.calendar.model.CalEvent addEvent(
083                    java.lang.String title, java.lang.String description,
084                    java.lang.String location, int startDateMonth, int startDateDay,
085                    int startDateYear, int startDateHour, int startDateMinute,
086                    int endDateMonth, int endDateDay, int endDateYear, int durationHour,
087                    int durationMinute, boolean allDay, boolean timeZoneSensitive,
088                    java.lang.String type, boolean repeating,
089                    com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
090                    int firstReminder, int secondReminder,
091                    com.liferay.portal.service.ServiceContext serviceContext)
092                    throws com.liferay.portal.kernel.exception.PortalException,
093                            com.liferay.portal.kernel.exception.SystemException;
094    
095            public void deleteEvent(long eventId)
096                    throws com.liferay.portal.kernel.exception.PortalException,
097                            com.liferay.portal.kernel.exception.SystemException;
098    
099            public java.io.File exportEvent(long eventId)
100                    throws com.liferay.portal.kernel.exception.PortalException,
101                            com.liferay.portal.kernel.exception.SystemException;
102    
103            public java.io.File exportEvents(
104                    java.util.List<com.liferay.portlet.calendar.model.CalEvent> events,
105                    java.lang.String fileName)
106                    throws com.liferay.portal.kernel.exception.PortalException,
107                            com.liferay.portal.kernel.exception.SystemException;
108    
109            public java.io.File exportGroupEvents(long groupId,
110                    java.lang.String fileName)
111                    throws com.liferay.portal.kernel.exception.PortalException,
112                            com.liferay.portal.kernel.exception.SystemException;
113    
114            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
115            public com.liferay.portlet.calendar.model.CalEvent getEvent(long eventId)
116                    throws com.liferay.portal.kernel.exception.PortalException,
117                            com.liferay.portal.kernel.exception.SystemException;
118    
119            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
120            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
121                    long groupId, java.util.Calendar cal, java.lang.String type)
122                    throws com.liferay.portal.kernel.exception.PortalException,
123                            com.liferay.portal.kernel.exception.SystemException;
124    
125            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
126            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
127                    long groupId, java.util.Calendar cal, java.lang.String[] types)
128                    throws com.liferay.portal.kernel.exception.PortalException,
129                            com.liferay.portal.kernel.exception.SystemException;
130    
131            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
132            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
133                    long groupId, java.lang.String type, int start, int end)
134                    throws com.liferay.portal.kernel.exception.SystemException;
135    
136            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
137            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
138                    long groupId, java.lang.String[] types, int start, int end)
139                    throws com.liferay.portal.kernel.exception.SystemException;
140    
141            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
142            public int getEventsCount(long groupId, java.lang.String type)
143                    throws com.liferay.portal.kernel.exception.SystemException;
144    
145            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
146            public int getEventsCount(long groupId, java.lang.String[] types)
147                    throws com.liferay.portal.kernel.exception.SystemException;
148    
149            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
150            public boolean hasEvents(long groupId, java.util.Calendar cal)
151                    throws com.liferay.portal.kernel.exception.PortalException,
152                            com.liferay.portal.kernel.exception.SystemException;
153    
154            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155            public boolean hasEvents(long groupId, java.util.Calendar cal,
156                    java.lang.String type)
157                    throws com.liferay.portal.kernel.exception.PortalException,
158                            com.liferay.portal.kernel.exception.SystemException;
159    
160            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
161            public boolean hasEvents(long groupId, java.util.Calendar cal,
162                    java.lang.String[] types)
163                    throws com.liferay.portal.kernel.exception.PortalException,
164                            com.liferay.portal.kernel.exception.SystemException;
165    
166            public void importICal4j(long groupId, java.io.InputStream inputStream)
167                    throws com.liferay.portal.kernel.exception.PortalException,
168                            com.liferay.portal.kernel.exception.SystemException;
169    
170            public com.liferay.portlet.calendar.model.CalEvent updateEvent(
171                    long eventId, java.lang.String title, java.lang.String description,
172                    java.lang.String location, int startDateMonth, int startDateDay,
173                    int startDateYear, int startDateHour, int startDateMinute,
174                    int durationHour, int durationMinute, boolean allDay,
175                    boolean timeZoneSensitive, java.lang.String type, boolean repeating,
176                    com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
177                    int firstReminder, int secondReminder,
178                    com.liferay.portal.service.ServiceContext serviceContext)
179                    throws com.liferay.portal.kernel.exception.PortalException,
180                            com.liferay.portal.kernel.exception.SystemException;
181    
182            /**
183            * @deprecated As of 6.2.0, replaced by {@link #updateEvent(long, String,
184            String, String, int, int, int, int, int, int, int, boolean,
185            boolean, String, boolean, TZSRecurrence, int, int, int,
186            ServiceContext)}
187            */
188            public com.liferay.portlet.calendar.model.CalEvent updateEvent(
189                    long eventId, java.lang.String title, java.lang.String description,
190                    java.lang.String location, int startDateMonth, int startDateDay,
191                    int startDateYear, int startDateHour, int startDateMinute,
192                    int endDateMonth, int endDateDay, int endDateYear, int durationHour,
193                    int durationMinute, boolean allDay, boolean timeZoneSensitive,
194                    java.lang.String type, boolean repeating,
195                    com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
196                    int firstReminder, int secondReminder,
197                    com.liferay.portal.service.ServiceContext serviceContext)
198                    throws com.liferay.portal.kernel.exception.PortalException,
199                            com.liferay.portal.kernel.exception.SystemException;
200    }