Class NotificationClient

java.lang.Object
org.bedework.calsvc.notifications.NotificationClient
All Implemented Interfaces:
org.bedework.util.logging.Logged

public class NotificationClient extends Object implements org.bedework.util.logging.Logged
Handles interactions with the bedework notification engine.
Author:
Mike Douglass douglm - rpi.edu
  • Constructor Summary

    Constructors
    Constructor
    Description
    NotificationClient(org.bedework.calfacade.configs.NotificationProperties np)
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bedework.util.logging.BwLogger
     
    void
    informNotifier(String principalHref, String resourceName)
     
    void
    subscribe(String principalHref, List<String> emails, String userToken)
     
    void
    unsubscribe(String principalHref, List<String> emails)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.bedework.util.logging.Logged

    audit, debug, debug, debug, enableAuditLogger, enableErrorLogger, enableMetricsLogger, error, error, error, getLogLevel, info, isAuditLoggerEnabled, isErrorLoggerEnabled, isMetricsDebugEnabled, isMetricsLoggerEnabled, metrics, setLoggerClass, setLoggerClass, trace, trace, trace, warn
  • Constructor Details

    • NotificationClient

      public NotificationClient(org.bedework.calfacade.configs.NotificationProperties np)
      Constructor
  • Method Details

    • informNotifier

      public void informNotifier(String principalHref, String resourceName)
      Parameters:
      principalHref - owner of changed notifications
    • subscribe

      public void subscribe(String principalHref, List<String> emails, String userToken)
      Parameters:
      principalHref - identify who
      emails - non-empty list
      userToken - per-user token
    • unsubscribe

      public void unsubscribe(String principalHref, List<String> emails)
      Parameters:
      principalHref - identify who
      emails - null to remove entire subscription
    • getLogger

      public org.bedework.util.logging.BwLogger getLogger()
      Specified by:
      getLogger in interface org.bedework.util.logging.Logged