OSID Logo
OSID Specifications
filing package
Version 3.0.0
Release Candidate Preview
Interfaceosid.filing.FileQuerySession
Implementsosid.OsidSession
Description

This session provides methods for searching among files and directories objects. The search query is constructed using a FileQuery.

This session defines views that offer differing behaviors when retrieving multiple objects.

  • federated directory view: searches include entries in directories of which this directory is a ancestor
  • isolated directory view: searches are restricted this directory only
MethodgetDirectoryId
Description

Gets the Id of this directory.

Returnosid.id.Idthe Id of this directory
CompliancemandatoryThis method must be implemented.
MethodgetDirectory
Description

Gets the directory associated with this session.

Returnosid.filing.Directorythe directory associated with this session
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanSearchFiles
Description

Tests if this user can perform File searches. 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 PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer search operations to unauthorized users.

Returnboolean false if lookup methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseFederatedDirectoryView
Description

Federates the view for methods in this session. A federated view will include entries in directories which are children of this directory.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedDirectoryView
Description

Isolates the view for methods in this session. An isolated view restricts lookups to this directory only.

CompliancemandatoryThis method is must be implemented.
MethodgetFileQuery
Description

Gets a file query.

Returnosid.filing.FileQuerythe file query
CompliancemandatoryThis method must be implemented.
MethodgetFilesByQuery
Description

Gets a list of Files matching the given file query.

Parametersosid.filing.FileQueryfileQuerythe file query
Returnosid.filing.FileListthe returned FileList
ErrorsNULL_ARGUMENT fileQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED fileQuery is not of this service
CompliancemandatoryThis method must be implemented.