Changes between Version 23 and Version 24 of ApertureDataSource
- Timestamp:
- 10/17/05 14:44:35 (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ApertureDataSource
v23 v24 18 18 19 19 /** 20 * Method added from Gnowsis21 *22 *23 *24 20 * get the configuration of this datasource. 25 * The configuration is always passed to the constructor.26 21 * @return the configuration 27 22 */ 28 public DataSourceConfig getDSConfig();29 23 public Map getConfiguration(); 24 30 25 /** 31 * Method added from Gnowsis 32 * 33 * The Aduna Interface identifies DataSources by ID and Name. 34 * Gnowsis uses Uris 35 * 36 * return the uri identifying this datasource inside gnowsis. 37 * The uri is usually the uri of the resource in the DSConfig. 38 * The uri is unique inside one gnowsis installation. 39 * @return the uri of this datasource 26 * Initialize the datasource using the passed configuration map. 27 * each parameter relevant to the datasource (data path, passwords, usernames, timeouts, rules, etc) is passed 28 * this method must only be called once. 29 * TODO: should it check the configuration (passwords allright, etc) now or when the crawler starts? 30 * @throws InitializationException when the configuration contains syntactically wrong parameters 31 * or does not function correctly. 40 32 */ 41 public String getUri();33 public void initConfiguration(Map configuration) throws InitializationException; 42 34 43 35 /** 44 36 * Gets the id of this data source. 45 * 46 * @return A identifier for the data source. 37 * The Aduna Interface identifies DataSources by ID and Name. 38 * Gnowsis uses Uris. This ID SHOULD conform to the URI scheme norm! 39 * TODO: should it be a URI or not? for future's sake: yes! 40 * @return A URI identifier for the data source. 47 41 */ 48 42 public String getID();