Class TOBOEntityChangeProvider<T extends SubjectInfo>

java.lang.Object
com.caplin.datasource.subscription.BaseSubscriptionListener
com.caplin.motif.fx.tobo.TOBOEntityChangeProvider<T>
All Implemented Interfaces:
com.caplin.datasource.publisher.CachingDataProvider, com.caplin.datasource.subscription.SubscriptionListener

public abstract class TOBOEntityChangeProvider<T extends SubjectInfo> extends com.caplin.datasource.subscription.BaseSubscriptionListener implements com.caplin.datasource.publisher.CachingDataProvider
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
    protected SubjectParser<T>
     

    Fields inherited from class com.caplin.datasource.subscription.BaseSubscriptionListener

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    genericMessageUpdated(com.caplin.datasource.subscription.Subscription subscription, com.caplin.datasource.Peer peer, com.caplin.datasource.messaging.record.GenericMessage message)
     
    void
    initialise(TOBOEntityPublisher toboEntityPublisher)
     
    void
    onRequest(String subject)
     
    protected abstract void
    onRequest(T subject)
     
    protected abstract void
    onTOBOEntityChanged(T subject, String entityId, String description)
     

    Methods inherited from class com.caplin.datasource.subscription.BaseSubscriptionListener

    containerUpdated, jsonUpdated, newsUpdated, pageUpdated, permissionUpdated, recordType2Updated, recordType3Updated, recordUpdated, storyUpdated, subjectErrorReceived, subjectStatusReceived

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface com.caplin.datasource.publisher.CachingDataProvider

    onDiscard, setPublisher
  • Field Details

  • Constructor Details

    • TOBOEntityChangeProvider

      public TOBOEntityChangeProvider(Logger logger, SubjectParser<T> subjectParser)
  • Method Details

    • onTOBOEntityChanged

      protected abstract void onTOBOEntityChanged(T subject, String entityId, String description)
    • onRequest

      protected abstract void onRequest(T subject)
    • initialise

      public void initialise(TOBOEntityPublisher toboEntityPublisher)
    • onRequest

      public void onRequest(String subject)
      Specified by:
      onRequest in interface com.caplin.datasource.publisher.CachingDataProvider
    • genericMessageUpdated

      public void genericMessageUpdated(com.caplin.datasource.subscription.Subscription subscription, com.caplin.datasource.Peer peer, com.caplin.datasource.messaging.record.GenericMessage message)
      Specified by:
      genericMessageUpdated in interface com.caplin.datasource.subscription.SubscriptionListener
      Overrides:
      genericMessageUpdated in class com.caplin.datasource.subscription.BaseSubscriptionListener