Changeset 8416


Ignore:
Timestamp:
2004-10-22T16:10:04+13:00 (17 years ago)
Author:
schweer
Message:

proof-of-concept implementation for detecting new documents

Location:
branches/alerting-branch/gsdl3/src/java/org/greenstone/gsdl3/gs3build
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • branches/alerting-branch/gsdl3/src/java/org/greenstone/gsdl3/gs3build/BuildManager.java

    r8408 r8416  
    66import org.greenstone.gsdl3.gs3build.classifier.*;
    77import org.greenstone.gsdl3.gs3build.collection.*;
     8import org.greenstone.gsdl3.gs3build.notifier.*;
    89
    910import java.io.File;
     
    1718  ClassifierManager classifierManager;
    1819  ExtractorManager  extractorManager;
     20  NotifierManager   notifierManager;
    1921  DocumentList      docList;
    2022  List              inputRoots;
     
    7779    this.indexerManager = new IndexerManager(this.docList);
    7880
     81    this.notifierManager = new NotifierManager();
     82   
    7983    // configure the collection
    8084    this.collectionManager.configureCollection();
     
    122126    this.classifierManager.classifyDocuments();
    123127    this.indexerManager.indexDocuments();
     128    this.notifierManager.detectEvents(this.collectionManager.getDatabase(), this.collectionManager.getLastBuildDate());
    124129
    125130    // Timestamp management - update all timestamps on modified dates...
  • branches/alerting-branch/gsdl3/src/java/org/greenstone/gsdl3/gs3build/CollectionManager.java

    r8408 r8416  
    370370  public String getBuildDirectory()
    371371  { return GSFile.collectionBuildDir(this.collectionHome);
     372  }
     373 
     374  public GregorianCalendar getLastBuildDate(){
     375    return lastBuildDate;
    372376  }
    373377
Note: See TracChangeset for help on using the changeset viewer.