Class ContentHistoryWatcher

java.lang.Object
java.util.Observable
oracle.stellent.ridc.convenience.monitor.ContentHistoryWatcher

public class ContentHistoryWatcher extends Observable
  • Field Details

  • Constructor Details

    • ContentHistoryWatcher

      public ContentHistoryWatcher(IdcClient idcClient, IdcContext context)
  • Method Details

    • getSleep

      public long getSleep()
    • setSleep

      public void setSleep(long sleep)
    • getIdcClient

      public IdcClient getIdcClient()
    • getOdbcDateFormat

      public DateFormat getOdbcDateFormat() throws IdcClientException
      Throws:
      IdcClientException
    • stop

      public void stop() throws Exception
      Stop the event poller
      Throws:
      Exception - in case of shutdown errors. Exceptions will get logged but not rethrown to allow other beans to release their resources too.
    • start

      public void start()
      Start the event poller
    • addQuerySubject

      public void addQuerySubject(String subject)
      Add the subject with to the list to query
      Parameters:
      subject -
    • setQuerySubjects

      public void setQuerySubjects(List subjects)
      Set the list of subjects to query
      Parameters:
      subjects -
    • updateSubject

      protected void updateSubject(String name, long time)
    • initializeDateFormat

      protected DateFormat initializeDateFormat(IdcContext context) throws IdcClientException
      Throws:
      IdcClientException
    • getContext

      protected IdcContext getContext()
      Returns:
      the context used to run the event polling methods
    • fireContentUpdateEvent

      protected void fireContentUpdateEvent(DataObject contentInfo)
      Fire the content update event
      Parameters:
      contentInfo - the document info for the content
    • fireSubjectChangedEvent

      public void fireSubjectChangedEvent(String name, long time)
      Fire the subjectChanged event
      Parameters:
      name - the subject name
      time - the subject time