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
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
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 }