Class ContentHistoryWatcher.IdcPollingThread

java.lang.Object
java.lang.Thread
oracle.stellent.ridc.convenience.monitor.ContentHistoryWatcher.IdcPollingThread
All Implemented Interfaces:
Runnable
Enclosing class:
ContentHistoryWatcher

protected class ContentHistoryWatcher.IdcPollingThread extends Thread
Content Server Event Polling Thread
  • Field Details

  • Constructor Details

    • IdcPollingThread

      protected IdcPollingThread()
  • Method Details

    • isKeepRunning

      public boolean isKeepRunning()
    • setKeepRunning

      public void setKeepRunning(boolean keepRunning)
    • run

      public void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • buildDocHistoryQuery

      protected DataBinder buildDocHistoryQuery(String whereClause, String orderClause)
      Build the document history query
      Parameters:
      whereClause - the where clause
      orderClause - the order clause
      Returns:
      the populated binder
    • sendEventsForResponse

      protected void sendEventsForResponse(DataBinder responseBinder)
      Send our the events for the response
      Parameters:
      responseBinder - the binder with the results of the query
    • getCurrentDate

      protected String getCurrentDate()
      Returns:
      the date string used for the getCurrentDateWhereClause(). It checks the adapter config if current date has been set.
    • getDefaultCurrentDate

      protected String getDefaultCurrentDate()
      Returns:
      the date string used for the getCurrentDateWhereClause(). It checks the adapter config if current date has been set.
    • updateCurrentDate

      protected void updateCurrentDate(Date date)
      Updates the current date returned by getCurrentDate(). This date ultimately is used in the query string that checks for content server document changes.
      Parameters:
      date -
    • getCurrentDateWhereClause

      protected String[] getCurrentDateWhereClause()
      Returns:
      the initial date query string
    • getCurrentDateWhereClause

      protected String[] getCurrentDateWhereClause(DataObject documentEvent) throws IdcClientException
      Parameters:
      documentEvent - the document event
      Returns:
      date query string for any item after the given information
      Throws:
      IdcClientException
    • getMonitoredSubjects

      protected String getMonitoredSubjects(Map<String,Long> subjectTime)
      Build the request modifier to send custom subject queries
      Parameters:
      subjectTime - a mapping of subject name (String) to subject time (Long)
      Returns:
      the request modifier populated with the querySubjects