public interface DirectoryReceiver extends OsidReceiver
The directory receiver is the consumer supplied interface for receiving notifications pertaining to new, updated or deleted directories.
An example showing how to receive notifications of new directories created under a user's home directory.
class myReceiver { void newDirectory(string path) { print "new directory created: " + path; } void changedDirectory(string path) {} void deletedDirectory(string path) {} void up() {} void down() {} } notificationSession = manager.getDirectoryNotificationSessionForDirectory(myReceiver, "/Users/tom"); notificationSession.useFederatedDirectoryView(); notificationSession.registerForNewDirectories();
Modifier and Type | Method and Description |
---|---|
void |
changedDirectory(java.lang.String directoryPath)
The callback for notification of updated directories.
|
void |
deletedDirectory(java.lang.String directoryPath)
the callback for notification of deleted directories.
|
void |
newDirectory(java.lang.String directoryPath)
The callback for notifications of new directories.
|
down, up
void newDirectory(java.lang.String directoryPath)
directoryPath
- absolute pathname to the new directorymandatory
- This method must be implemented. void changedDirectory(java.lang.String directoryPath)
directoryPath
- absolute pathname to the changed directorymandatory
- This method must be implemented. void deletedDirectory(java.lang.String directoryPath)
directoryPath
- absolute pathname to the deleted directorymandatory
- This method must be implemented.