| Interface | osid.filing.FileQuerySession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description | 
                 This session provides methods for searching among files and 
                directories objects. The search query is constructed using a 
                 This session defines views that offer differing behaviors when retrieving multiple objects. 
  | ||
| Method | getDirectoryId | ||
| Description | 
                     Gets the   | ||
| Return | osid.id.Id | the  Id  of this directory  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getDirectory | ||
| Description | 
                     Gets the directory associated with this session.  | ||
| Return | osid.filing.Directory | the directory associated with this session | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canSearchFiles | ||
| Description | 
                     Tests if this user can perform   | ||
| Return | boolean |  false  if lookup methods are not authorized,  true 
 otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | useFederatedDirectoryView | ||
| Description | 
                     Federates the view for methods in this session. A federated view will include entries in directories which are children of this directory.  | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | useIsolatedDirectoryView | ||
| Description | 
                     Isolates the view for methods in this session. An isolated view restricts lookups to this directory only.  | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | getFileQuery | ||
| Description | 
                     Gets a file query.  | ||
| Return | osid.filing.FileQuery | the file query | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getFilesByQuery | ||
| Description | 
                     Gets a list of   | ||
| Parameters | osid.filing.FileQuery | fileQuery | the file query | 
| Return | osid.filing.FileList | the returned  FileList   | |
| Errors | NULL_ARGUMENT |  fileQuery  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED |  fileQuery  is not of this service  |                 ||
| Compliance | mandatory | This method must be implemented. | |