Class CaldavConnectorRest

java.lang.Object
org.exoplatform.caldav.rest.CaldavConnectorRest
All Implemented Interfaces:
org.exoplatform.services.rest.resource.ResourceContainer

public class CaldavConnectorRest extends Object implements org.exoplatform.services.rest.resource.ResourceContainer
  • Constructor Summary

    Constructors
    Constructor
    Description
    CaldavConnectorRest(org.exoplatform.caldav.service.CaldavConnectorService caldavConnectorService, org.exoplatform.social.core.manager.IdentityManager identityManager)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    javax.ws.rs.core.Response
    createCaldavSetting(org.exoplatform.caldav.model.CaldavUserSetting caldavUserSetting)
     
    javax.ws.rs.core.Response
     
    javax.ws.rs.core.Response
     
    javax.ws.rs.core.Response
    saveMirrorCalendarHref(org.exoplatform.caldav.model.CaldavUserSetting caldavUserSetting)
    Saves the href of the mirror calendar of the current user: the collection, on the connected CalDAV server, that receives the meetings pushed by eXo.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CaldavConnectorRest

      public CaldavConnectorRest(org.exoplatform.caldav.service.CaldavConnectorService caldavConnectorService, org.exoplatform.social.core.manager.IdentityManager identityManager)
  • Method Details

    • createCaldavSetting

      @RolesAllowed("users") public javax.ws.rs.core.Response createCaldavSetting(org.exoplatform.caldav.model.CaldavUserSetting caldavUserSetting)
    • getCaldavSetting

      @RolesAllowed("users") public javax.ws.rs.core.Response getCaldavSetting()
    • saveMirrorCalendarHref

      @RolesAllowed("users") public javax.ws.rs.core.Response saveMirrorCalendarHref(org.exoplatform.caldav.model.CaldavUserSetting caldavUserSetting)
      Saves the href of the mirror calendar of the current user: the collection, on the connected CalDAV server, that receives the meetings pushed by eXo. Only the href travels here — the collection itself is created (or picked) by the front-end connector, which is the only party holding a CalDAV session.
      Parameters:
      caldavUserSetting - a CaldavUserSetting carrying the mirrorCalendarHref to store; other fields are ignored
      Returns:
      200 when stored, 400 when the href is blank
    • deleteCaldavSetting

      @RolesAllowed("users") public javax.ws.rs.core.Response deleteCaldavSetting()