001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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.service.BaseService;
024    
025    /**
026     * The interface for the cal event remote service.
027     *
028     * <p>
029     * 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.
030     * </p>
031     *
032     * @author Brian Wing Shun Chan
033     * @see CalEventServiceUtil
034     * @see com.liferay.portlet.calendar.service.base.CalEventServiceBaseImpl
035     * @see com.liferay.portlet.calendar.service.impl.CalEventServiceImpl
036     * @generated
037     */
038    @JSONWebService
039    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
040            PortalException.class, SystemException.class})
041    public interface CalEventService extends BaseService {
042            /*
043             * NOTE FOR DEVELOPERS:
044             *
045             * 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.
046             */
047    
048            /**
049            * Returns the Spring bean ID for this bean.
050            *
051            * @return the Spring bean ID for this bean
052            */
053            public java.lang.String getBeanIdentifier();
054    
055            /**
056            * Sets the Spring bean ID for this bean.
057            *
058            * @param beanIdentifier the Spring bean ID for this bean
059            */
060            public void setBeanIdentifier(java.lang.String beanIdentifier);
061    
062            public com.liferay.portlet.calendar.model.CalEvent addEvent(
063                    java.lang.String title, java.lang.String description,
064                    java.lang.String location, int startDateMonth, int startDateDay,
065                    int startDateYear, int startDateHour, int startDateMinute,
066                    int endDateMonth, int endDateDay, int endDateYear, int durationHour,
067                    int durationMinute, boolean allDay, boolean timeZoneSensitive,
068                    java.lang.String type, boolean repeating,
069                    com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
070                    int firstReminder, int secondReminder,
071                    com.liferay.portal.service.ServiceContext serviceContext)
072                    throws com.liferay.portal.kernel.exception.PortalException,
073                            com.liferay.portal.kernel.exception.SystemException;
074    
075            public void deleteEvent(long eventId)
076                    throws com.liferay.portal.kernel.exception.PortalException,
077                            com.liferay.portal.kernel.exception.SystemException;
078    
079            public java.io.File exportEvent(long eventId)
080                    throws com.liferay.portal.kernel.exception.PortalException,
081                            com.liferay.portal.kernel.exception.SystemException;
082    
083            public java.io.File exportGroupEvents(long groupId,
084                    java.lang.String fileName)
085                    throws com.liferay.portal.kernel.exception.PortalException,
086                            com.liferay.portal.kernel.exception.SystemException;
087    
088            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
089            public com.liferay.portlet.calendar.model.CalEvent getEvent(long eventId)
090                    throws com.liferay.portal.kernel.exception.PortalException,
091                            com.liferay.portal.kernel.exception.SystemException;
092    
093            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
094            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
095                    long groupId, java.util.Calendar cal, java.lang.String type)
096                    throws com.liferay.portal.kernel.exception.PortalException,
097                            com.liferay.portal.kernel.exception.SystemException;
098    
099            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
100            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
101                    long groupId, java.util.Calendar cal, java.lang.String[] types)
102                    throws com.liferay.portal.kernel.exception.PortalException,
103                            com.liferay.portal.kernel.exception.SystemException;
104    
105            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
106            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
107                    long groupId, java.lang.String type, int start, int end)
108                    throws com.liferay.portal.kernel.exception.SystemException;
109    
110            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
111            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
112                    long groupId, java.lang.String[] types, int start, int end)
113                    throws com.liferay.portal.kernel.exception.SystemException;
114    
115            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
116            public int getEventsCount(long groupId, java.lang.String type)
117                    throws com.liferay.portal.kernel.exception.SystemException;
118    
119            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
120            public int getEventsCount(long groupId, java.lang.String[] types)
121                    throws com.liferay.portal.kernel.exception.SystemException;
122    
123            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
124            public boolean hasEvents(long groupId, java.util.Calendar cal)
125                    throws com.liferay.portal.kernel.exception.PortalException,
126                            com.liferay.portal.kernel.exception.SystemException;
127    
128            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
129            public boolean hasEvents(long groupId, java.util.Calendar cal,
130                    java.lang.String type)
131                    throws com.liferay.portal.kernel.exception.PortalException,
132                            com.liferay.portal.kernel.exception.SystemException;
133    
134            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
135            public boolean hasEvents(long groupId, java.util.Calendar cal,
136                    java.lang.String[] types)
137                    throws com.liferay.portal.kernel.exception.PortalException,
138                            com.liferay.portal.kernel.exception.SystemException;
139    
140            public void importICal4j(long groupId, java.io.InputStream inputStream)
141                    throws com.liferay.portal.kernel.exception.PortalException,
142                            com.liferay.portal.kernel.exception.SystemException;
143    
144            public com.liferay.portlet.calendar.model.CalEvent updateEvent(
145                    long eventId, java.lang.String title, java.lang.String description,
146                    java.lang.String location, int startDateMonth, int startDateDay,
147                    int startDateYear, int startDateHour, int startDateMinute,
148                    int endDateMonth, int endDateDay, int endDateYear, int durationHour,
149                    int durationMinute, boolean allDay, boolean timeZoneSensitive,
150                    java.lang.String type, boolean repeating,
151                    com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
152                    int firstReminder, int secondReminder,
153                    com.liferay.portal.service.ServiceContext serviceContext)
154                    throws com.liferay.portal.kernel.exception.PortalException,
155                            com.liferay.portal.kernel.exception.SystemException;
156    }