1
19
20 package com.liferay.portlet.calendar.service;
21
22 import com.liferay.portal.PortalException;
23 import com.liferay.portal.SystemException;
24 import com.liferay.portal.kernel.annotation.Propagation;
25 import com.liferay.portal.kernel.annotation.Transactional;
26
27
51 @Transactional(rollbackFor = {
52 PortalException.class, SystemException.class})
53 public interface CalEventService {
54 public com.liferay.portlet.calendar.model.CalEvent addEvent(long plid,
55 java.lang.String title, java.lang.String description,
56 int startDateMonth, int startDateDay, int startDateYear,
57 int startDateHour, int startDateMinute, int endDateMonth,
58 int endDateDay, int endDateYear, int durationHour, int durationMinute,
59 boolean allDay, boolean timeZoneSensitive, java.lang.String type,
60 boolean repeating,
61 com.liferay.portal.kernel.cal.TZSRecurrence recurrence,
62 java.lang.String remindBy, int firstReminder, int secondReminder,
63 boolean addCommunityPermissions, boolean addGuestPermissions)
64 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
65 com.liferay.portal.SystemException;
66
67 public com.liferay.portlet.calendar.model.CalEvent addEvent(long plid,
68 java.lang.String title, java.lang.String description,
69 int startDateMonth, int startDateDay, int startDateYear,
70 int startDateHour, int startDateMinute, int endDateMonth,
71 int endDateDay, int endDateYear, int durationHour, int durationMinute,
72 boolean allDay, boolean timeZoneSensitive, java.lang.String type,
73 boolean repeating,
74 com.liferay.portal.kernel.cal.TZSRecurrence recurrence,
75 java.lang.String remindBy, int firstReminder, int secondReminder,
76 java.lang.String[] communityPermissions,
77 java.lang.String[] guestPermissions)
78 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
79 com.liferay.portal.SystemException;
80
81 public void deleteEvent(long eventId)
82 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
83 com.liferay.portal.SystemException;
84
85 public java.io.File exportEvent(long eventId)
86 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
87 com.liferay.portal.SystemException;
88
89 public java.io.File exportGroupEvents(long plid, java.lang.String fileName)
90 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
91 com.liferay.portal.SystemException;
92
93 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
94 public com.liferay.portlet.calendar.model.CalEvent getEvent(long eventId)
95 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
96 com.liferay.portal.SystemException;
97
98 public void importICal4j(long plid, java.io.File file)
99 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
100 com.liferay.portal.SystemException;
101
102 public com.liferay.portlet.calendar.model.CalEvent updateEvent(
103 long eventId, java.lang.String title, java.lang.String description,
104 int startDateMonth, int startDateDay, int startDateYear,
105 int startDateHour, int startDateMinute, int endDateMonth,
106 int endDateDay, int endDateYear, int durationHour, int durationMinute,
107 boolean allDay, boolean timeZoneSensitive, java.lang.String type,
108 boolean repeating,
109 com.liferay.portal.kernel.cal.TZSRecurrence recurrence,
110 java.lang.String remindBy, int firstReminder, int secondReminder)
111 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
112 com.liferay.portal.SystemException;
113 }