Changes between Version 4 and Version 5 of ApertureDataOpener


Ignore:
Timestamp:
10/17/05 23:11:14 (19 years ago)
Author:
sauermann
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ApertureDataOpener

    v4 v5  
    88 
    99/** 
    10  * A commandExecutor is the handler of an Adapter that implements the ability 
    11  * to execute commands. The handler can be seperated from the adapter. 
     10 * A DataOpener is a handler, tightly coupled to a DataSource, that 
     11 * knows how to open DataObjects (identified by URI) to be seen by the user. 
     12 * The DataOpener will open a file using the operating system or open an email 
     13 * using an email application or open a KOrganizer address book entry using 
     14 * KOrganizer. 
    1215 */ 
    1316 
    14 public interface CommandExecutor { 
     17public interface DataOpener { 
    1518         
    1619  /** 
    17    * Executes a command on the uri. 
    18    * @param command a command identifier (uri). 
    19    * preferably one from http://www.gnowsis.org/ont/appworkspace/cmd/0.1# 
    20    * @param url url of the resource that should be manipulated 
     20   * opens the passed DataObject in the application that the user 
     21   * typically would use to access the object. 
     22   * @param uri uri of the resource that should be opened 
    2123   * @throws an Exception when something goes wrong. 
     24   * @throws ResourceNotFoundException when the uri does not point  
     25   * to a known resource, perhaps the resource was deleted? 
    2226   */ 
    23   public void executeCommand(String command, String url) throws 
     27  public void openDataObject(URI uri) throws 
    2428      ResourceNotFoundException, ExecuteException; 
    2529