Changes between Version 1 and Version 2 of ApertureDataCrawlerListener
- Timestamp:
- 10/17/05 22:50:36 (19 years ago)
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 1 7 {{{ 2 8 3 9 /** 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. 5 15 **/ 6 16 public interface DataCrawlerListener { … … 32 42 * @param url The url of the data object that is going to be scanned. 33 43 **/ 34 public void scanningObject(DataCrawler dataCrawler, String url);44 public void scanningObject(DataCrawler dataCrawler, URI uri); 35 45 36 46 /** 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 38 56 * DataObject in its scan domain. 39 57 * … … 43 61 * changed (false). 44 62 **/ 45 public void object Scanned(DataCrawler dataCrawler, DataObject dataObject, boolean newObject);63 public void objectChanged(DataCrawler dataCrawler, DataObject dataObject); 46 64 47 65 /** … … 51 69 * @param url The url of the unmodified data object. 52 70 **/ 53 public void objectNotModified(DataCrawler dataCrawler, String url);71 public void objectNotModified(DataCrawler dataCrawler, URI uri); 54 72 55 73 /** … … 61 79 * @param id The id of the data object that could no longer be found. 62 80 **/ 63 public void objectRemoved(DataCrawler dataCrawler, String url);81 public void objectRemoved(DataCrawler dataCrawler, URI uri); 64 82 65 83 /** … … 84 102 * This method is typically called at the start of a full rescan. 85 103 **/ 86 public void clearingObject(DataCrawler dataCrawler, Stringurl);104 public void clearingObject(DataCrawler dataCrawler, URI url); 87 105 } 88 106