Interface CalendarService
- All Superinterfaces:
com.google.gwt.user.client.rpc.RemoteService
@RemoteServiceRelativePath("calendar")
public interface CalendarService
extends com.google.gwt.user.client.rpc.RemoteService
The client side stub for the Calendar Service. This service allows the
handling of calendar events.
- Since:
- 6.7
- Author:
- Marco Meschieri - LogicalDOC
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
countUserEvents
(String username, Date end) Counts the number of events that start from now until a given datevoid
deleteEvent
(long eventId) Deletes an event.find
(GUICalendarEventSearchCriteria criteria) Searches for eventsgetEvent
(long eventId) Gets an eventvoid
saveEvent
(GUICalendarEvent event) Saves an event into the calendar
-
Method Details
-
saveEvent
Saves an event into the calendar- Parameters:
event
- the event to save- Throws:
ServerException
- an error happened in the server application
-
getEvent
Gets an event- Parameters:
eventId
- identifier of the event- Returns:
- the calendar event
- Throws:
ServerException
- an error happened in the server application
-
find
Searches for events- Parameters:
criteria
- the search criteria- Returns:
- The list of events ordered by ascending date
- Throws:
ServerException
- an error happened in the server application
-
deleteEvent
Deletes an event. If the event is a master, in any case all the occurrences will be deleted too- Parameters:
eventId
- identifier of the event- Throws:
ServerException
- an error happened in the server application
-
countUserEvents
Counts the number of events that start from now until a given date- Parameters:
username
- The user to be processedend
- The and date- Returns:
- The number of found events
- Throws:
ServerException
- an error happened in the server application
-