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.service.BaseService;
024
025
038 @JSONWebService
039 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
040 PortalException.class, SystemException.class})
041 public interface CalEventService extends BaseService {
042
047
048
053 public java.lang.String getBeanIdentifier();
054
055
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 }