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 import com.liferay.portal.security.ac.AccessControlled;
024 import com.liferay.portal.service.BaseService;
025
026
039 @AccessControlled
040 @JSONWebService
041 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
042 PortalException.class, SystemException.class})
043 public interface CalEventService extends BaseService {
044
049
050
055 public java.lang.String getBeanIdentifier();
056
057
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
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
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 }