001
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
037 @JSONWebService
038 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
039 PortalException.class, SystemException.class})
040 public interface CalEventService {
041
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 }