Class BedeworkConnector

java.lang.Object
org.bedework.notifier.db.JsonUtil
All Implemented Interfaces:
Connector<BedeworkConnectorInstance,​Note,​BedeworkConnectorConfig>, org.bedework.util.logging.Logged

public class BedeworkConnector
extends AbstractConnector<BedeworkConnector,​BedeworkConnectorInstance,​Note,​BedeworkConnectorConfig>
The notification inbound processor connector for connections to bedework.

This connector sets up inbound connection instances to provide a stream of notification messages into the notification system

The notification directory path points to a special collection which contains links to the calendar homes of accounts for which we want outbound notifications

Author:
Mike Douglass
  • Constructor Details

    • BedeworkConnector

      public BedeworkConnector()
  • Method Details

    • start

      public void start​(org.bedework.notifier.db.NotifyDb db, java.lang.String callbackUri, NotifyEngine notifier) throws org.bedework.notifier.exception.NoteException
      Specified by:
      start in interface Connector<BedeworkConnectorInstance,​Note,​BedeworkConnectorConfig>
      Overrides:
      start in class AbstractConnector<BedeworkConnector,​BedeworkConnectorInstance,​Note,​BedeworkConnectorConfig>
      Throws:
      org.bedework.notifier.exception.NoteException
    • getInfo

      public NotifyRegistry.Info getInfo()
    • subscribe

      public org.bedework.notifier.db.Subscription subscribe​(org.bedework.notifier.db.NotifyDb db, java.util.Map<?,​?> vals) throws org.bedework.notifier.exception.NoteException
      Throws:
      org.bedework.notifier.exception.NoteException
    • unsubscribe

      public org.bedework.notifier.db.Subscription unsubscribe​(org.bedework.notifier.db.NotifyDb db, java.util.Map<?,​?> vals) throws org.bedework.notifier.exception.NoteException
      Throws:
      org.bedework.notifier.exception.NoteException
    • isManager

      public boolean isManager()
    • getKind

      public NotifyDefs.NotifyKind getKind()
    • isReadOnly

      public boolean isReadOnly()
    • getTrustLastmod

      public boolean getTrustLastmod()
    • getConnectorInstance

      public BedeworkConnectorInstance getConnectorInstance​(org.bedework.notifier.db.NotifyDb db, org.bedework.notifier.db.Subscription sub) throws org.bedework.notifier.exception.NoteException
      Throws:
      org.bedework.notifier.exception.NoteException
    • handleCallback

      public org.bedework.notifier.cnctrs.bedework.BedeworkConnector.BedeworkNotificationBatch handleCallback​(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, java.util.List<java.lang.String> resourceUri) throws org.bedework.notifier.exception.NoteException
      Throws:
      org.bedework.notifier.exception.NoteException
    • respondCallback

      public void respondCallback​(javax.servlet.http.HttpServletResponse resp, Connector.NotificationBatch<Note> notifications) throws org.bedework.notifier.exception.NoteException
      Throws:
      org.bedework.notifier.exception.NoteException
    • stop

      public void stop() throws org.bedework.notifier.exception.NoteException
      Specified by:
      stop in interface Connector<BedeworkConnectorInstance,​Note,​BedeworkConnectorConfig>
      Overrides:
      stop in class AbstractConnector<BedeworkConnector,​BedeworkConnectorInstance,​Note,​BedeworkConnectorConfig>
      Throws:
      org.bedework.notifier.exception.NoteException