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