Changes between Version 4 and Version 5 of ApertureDataOpener
- Timestamp:
- 10/17/05 23:11:14 (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ApertureDataOpener
v4 v5 8 8 9 9 /** 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. 12 15 */ 13 16 14 public interface CommandExecutor {17 public interface DataOpener { 15 18 16 19 /** 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 21 23 * @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? 22 26 */ 23 public void executeCommand(String command, String url) throws27 public void openDataObject(URI uri) throws 24 28 ResourceNotFoundException, ExecuteException; 25 29