Changes between Version 1 and Version 2 of ApertureDataCrawlerListener


Ignore:
Timestamp:
10/17/05 22:50:36 (19 years ago)
Author:
sauermann
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ApertureDataCrawlerListener

    v1 v2  
     1* Leo changed String url to URI uri, as this does reflect the URI class used in DataObject. 
     2 
     3* The "new" and "modified" methods should be parted, if also "Deleted" and "unchanged" are seperate methods. clearer meaning then, objectScanned was an unclear method name compared to objectUnchanged. 
     4 
     5 
     6 
    17{{{ 
    28 
    39/** 
    4  * A listener for events from a DataCrawler. 
     10 * A listener for events from a DataCrawler. The listener is responsible to store 
     11 * the DataObjects in the database of choice. DataCrawlerListener are implemented 
     12 * by application developers using Aperture to extract data. The information  
     13 * whether an object is new, changed, deleted or unchanged is detected by  
     14 * the crawler. 
    515 **/ 
    616public interface DataCrawlerListener { 
     
    3242         * @param url The url of the data object that is going to be scanned. 
    3343         **/ 
    34         public void scanningObject(DataCrawler dataCrawler, String url); 
     44        public void scanningObject(DataCrawler dataCrawler, URI uri); 
    3545 
    3646        /** 
    37          * Notification that the DataCrawler has found a new or changed 
     47         * Notification that the DataCrawler has found a new  
     48         * DataObject in its scan domain. 
     49         * 
     50         * @param dataObject The DataObject that has been constructed. 
     51         **/ 
     52        public void objectNew(DataCrawler dataCrawler, DataObject dataObject); 
     53 
     54        /** 
     55         * Notification that the DataCrawler has found a changed 
    3856         * DataObject in its scan domain. 
    3957         * 
     
    4361         * changed (false). 
    4462         **/ 
    45         public void objectScanned(DataCrawler dataCrawler, DataObject dataObject, boolean newObject); 
     63        public void objectChanged(DataCrawler dataCrawler, DataObject dataObject); 
    4664 
    4765        /** 
     
    5169         * @param url The url of the unmodified data object. 
    5270         **/ 
    53         public void objectNotModified(DataCrawler dataCrawler, String url); 
     71        public void objectNotModified(DataCrawler dataCrawler, URI uri); 
    5472 
    5573        /** 
     
    6179         * @param id The id of the data object that could no longer be found. 
    6280         **/ 
    63         public void objectRemoved(DataCrawler dataCrawler, String url); 
     81        public void objectRemoved(DataCrawler dataCrawler, URI uri); 
    6482 
    6583        /** 
     
    84102         * This method is typically called at the start of a full rescan. 
    85103         **/ 
    86         public void clearingObject(DataCrawler dataCrawler, String url); 
     104        public void clearingObject(DataCrawler dataCrawler, URI url); 
    87105} 
    88106