Package org.exoplatform.caldav.rest
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
ConstructorsConstructorDescriptionCaldavConnectorRest(org.exoplatform.caldav.service.CaldavConnectorService caldavConnectorService, org.exoplatform.social.core.manager.IdentityManager identityManager) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponsecreateCaldavSetting(org.exoplatform.caldav.model.CaldavUserSetting caldavUserSetting) javax.ws.rs.core.Responsejavax.ws.rs.core.Responsejavax.ws.rs.core.ResponsesaveMirrorCalendarHref(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.
-
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- aCaldavUserSettingcarrying 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()
-