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
  • Method Details

    • saveEvent

      void saveEvent(GUICalendarEvent event) throws ServerException
      Saves an event into the calendar
      Parameters:
      event - the event to save
      Throws:
      ServerException - an error happened in the server application
    • getEvent

      GUICalendarEvent getEvent(long eventId) throws ServerException
      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

      void deleteEvent(long eventId) throws ServerException
      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

      int countUserEvents(String username, Date end) throws ServerException
      Counts the number of events that start from now until a given date
      Parameters:
      username - The user to be processed
      end - The and date
      Returns:
      The number of found events
      Throws:
      ServerException - an error happened in the server application