1
22
23 package com.liferay.portlet.calendar.service;
24
25
51 public interface CalEventLocalService {
52 public com.liferay.portlet.calendar.model.CalEvent addCalEvent(
53 com.liferay.portlet.calendar.model.CalEvent model)
54 throws com.liferay.portal.SystemException;
55
56 public java.util.List dynamicQuery(
57 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
58 throws com.liferay.portal.SystemException;
59
60 public java.util.List dynamicQuery(
61 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
62 int begin, int end) throws com.liferay.portal.SystemException;
63
64 public com.liferay.portlet.calendar.model.CalEvent updateCalEvent(
65 com.liferay.portlet.calendar.model.CalEvent model)
66 throws com.liferay.portal.SystemException;
67
68 public com.liferay.portlet.calendar.model.CalEvent addEvent(long userId,
69 long plid, java.lang.String title, java.lang.String description,
70 int startDateMonth, int startDateDay, int startDateYear,
71 int startDateHour, int startDateMinute, int endDateMonth,
72 int endDateDay, int endDateYear, int durationHour, int durationMinute,
73 boolean allDay, boolean timeZoneSensitive, java.lang.String type,
74 boolean repeating, com.liferay.portal.kernel.cal.Recurrence recurrence,
75 java.lang.String remindBy, int firstReminder, int secondReminder,
76 boolean addCommunityPermissions, boolean addGuestPermissions)
77 throws com.liferay.portal.SystemException,
78 com.liferay.portal.PortalException;
79
80 public com.liferay.portlet.calendar.model.CalEvent addEvent(long userId,
81 long plid, java.lang.String title, java.lang.String description,
82 int startDateMonth, int startDateDay, int startDateYear,
83 int startDateHour, int startDateMinute, int endDateMonth,
84 int endDateDay, int endDateYear, int durationHour, int durationMinute,
85 boolean allDay, boolean timeZoneSensitive, java.lang.String type,
86 boolean repeating, com.liferay.portal.kernel.cal.Recurrence recurrence,
87 java.lang.String remindBy, int firstReminder, int secondReminder,
88 java.lang.String[] communityPermissions,
89 java.lang.String[] guestPermissions)
90 throws com.liferay.portal.SystemException,
91 com.liferay.portal.PortalException;
92
93 public com.liferay.portlet.calendar.model.CalEvent addEvent(long userId,
94 long plid, java.lang.String title, java.lang.String description,
95 int startDateMonth, int startDateDay, int startDateYear,
96 int startDateHour, int startDateMinute, int endDateMonth,
97 int endDateDay, int endDateYear, int durationHour, int durationMinute,
98 boolean allDay, boolean timeZoneSensitive, java.lang.String type,
99 boolean repeating, com.liferay.portal.kernel.cal.Recurrence recurrence,
100 java.lang.String remindBy, int firstReminder, int secondReminder,
101 java.lang.Boolean addCommunityPermissions,
102 java.lang.Boolean addGuestPermissions,
103 java.lang.String[] communityPermissions,
104 java.lang.String[] guestPermissions)
105 throws com.liferay.portal.SystemException,
106 com.liferay.portal.PortalException;
107
108 public void addEventResources(long eventId,
109 boolean addCommunityPermissions, boolean addGuestPermissions)
110 throws com.liferay.portal.SystemException,
111 com.liferay.portal.PortalException;
112
113 public void addEventResources(
114 com.liferay.portlet.calendar.model.CalEvent event,
115 boolean addCommunityPermissions, boolean addGuestPermissions)
116 throws com.liferay.portal.SystemException,
117 com.liferay.portal.PortalException;
118
119 public void addEventResources(long eventId,
120 java.lang.String[] communityPermissions,
121 java.lang.String[] guestPermissions)
122 throws com.liferay.portal.SystemException,
123 com.liferay.portal.PortalException;
124
125 public void addEventResources(
126 com.liferay.portlet.calendar.model.CalEvent event,
127 java.lang.String[] communityPermissions,
128 java.lang.String[] guestPermissions)
129 throws com.liferay.portal.SystemException,
130 com.liferay.portal.PortalException;
131
132 public void checkEvents()
133 throws com.liferay.portal.SystemException,
134 com.liferay.portal.PortalException;
135
136 public void deleteEvent(long eventId)
137 throws com.liferay.portal.SystemException,
138 com.liferay.portal.PortalException;
139
140 public void deleteEvent(com.liferay.portlet.calendar.model.CalEvent event)
141 throws com.liferay.portal.SystemException,
142 com.liferay.portal.PortalException;
143
144 public void deleteEvents(long groupId)
145 throws com.liferay.portal.SystemException,
146 com.liferay.portal.PortalException;
147
148 public java.io.File exportEvent(long userId, long eventId)
149 throws com.liferay.portal.SystemException,
150 com.liferay.portal.PortalException;
151
152 public java.io.File exportGroupEvents(long userId, long plid,
153 java.lang.String fileName)
154 throws com.liferay.portal.SystemException,
155 com.liferay.portal.PortalException;
156
157 public com.liferay.portlet.calendar.model.CalEvent getEvent(long eventId)
158 throws com.liferay.portal.SystemException,
159 com.liferay.portal.PortalException;
160
161 public java.util.List getEvents(long groupId, java.lang.String type,
162 int begin, int end) throws com.liferay.portal.SystemException;
163
164 public java.util.List getEvents(long groupId, java.util.Calendar cal)
165 throws com.liferay.portal.SystemException;
166
167 public java.util.List getEvents(long groupId, java.util.Calendar cal,
168 java.lang.String type) throws com.liferay.portal.SystemException;
169
170 public int getEventsCount(long groupId, java.lang.String type)
171 throws com.liferay.portal.SystemException;
172
173 public java.util.List getRepeatingEvents(long groupId)
174 throws com.liferay.portal.SystemException;
175
176 public boolean hasEvents(long groupId, java.util.Calendar cal)
177 throws com.liferay.portal.SystemException;
178
179 public boolean hasEvents(long groupId, java.util.Calendar cal,
180 java.lang.String type) throws com.liferay.portal.SystemException;
181
182 public void importICal4j(long userId, long plid, java.io.File file)
183 throws com.liferay.portal.SystemException,
184 com.liferay.portal.PortalException;
185
186 public com.liferay.portlet.calendar.model.CalEvent updateEvent(
187 long userId, long eventId, java.lang.String title,
188 java.lang.String description, 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.Recurrence recurrence,
194 java.lang.String remindBy, int firstReminder, int secondReminder)
195 throws com.liferay.portal.SystemException,
196 com.liferay.portal.PortalException;
197 }