| Interface | osid.filing.FileLookupSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description | 
                 This session defines methods for looking up on files in the current directory. This session defines the following views: 
 Generally, the comparative view should be used for most applications as it permits operation even if there is data out of sync. Some administrative applications may need to know whether it had retrieved an entire set of objects and may sacrifice some interoperability for the sake of precision using the plenary view.  | ||
| 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 | canLookupFiles | ||
| Description | 
                     Tests if this user can perform entry lookups. A return 
                    of true does not guarantee successful authorization. A 
                    return of false indicates that it is known all methods in 
                    this session will result in a   | ||
| Return | boolean |  false  if lookup methods are not authorized,  true 
 otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | useComparativeFileView | ||
| Description | 
                     The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision.  | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | usePlenaryFileView | ||
| Description | 
                     A complete view of the file returns is desired. Methods will return what is requested or result in an error. This view is used when greater precision is desired at the expense of interoperability.  | ||
| Compliance | mandatory | This method is 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 | getFile | ||
| Description | 
                     Gets a specified file or alias to the file.  | ||
| Parameters | osid.id.Id | fileId | the  Id  to the file  | 
| Return | osid.filing.File | the file | |
| Errors | NOT_FOUND |  fileId  is not found  |                 |
| NULL_ARGUMENT |  fileId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getFilesByIds | ||
| Description | 
                     Gets a   | ||
| Parameters | osid.id.IdList | fileIds | the list of  Ids  to retrieve  | 
| Return | osid.filing.FileList | the returned  File  list  | |
| Errors | NOT_FOUND | an  Id  was not found  |                 |
| NULL_ARGUMENT |  fileIds  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getFilesByGenusType | ||
| Description | 
                     Gets a   | ||
| Parameters | osid.type.Type | fileGenusType | a file genus type | 
| Return | osid.filing.FileList | the returned  File list   | |
| Errors | NULL_ARGUMENT |  fileGenusType  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getFilesByParentGenusType | ||
| Description | 
                     Gets a   | ||
| Parameters | osid.type.Type | fileGenusType | a file genus type | 
| Return | osid.filing.FileList | the returned  File  list  | |
| Errors | NULL_ARGUMENT |  fileGenusType  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getFilesByRecordType | ||
| Description | 
                     Gets a   | ||
| Parameters | osid.type.Type | fileRecordType | a file record type | 
| Return | osid.filing.FileList | the returned  File  list  | |
| Errors | NULL_ARGUMENT |  fileRecordType  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getFiles | ||
| Description | 
                     Gets the list of files and aliases to files in this directory. In a federated view, this method returns all files in descendant directories. In plenary mode, the returned list contains all known files or an error results. Otherwise, the returned list may contain only those files that are accessible through this session.  | ||
| Return | osid.filing.FileList | the list of files in this directory | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |