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

This session provides methods for searching among Directory objects. The search query is constructed using the DirectoryQuery.

This session defines views that offer differing behaviors for searching.

  • federated directory view: searches include directories in directories of which this directory is an ancestor
  • isolated directory view: searches are restricted to diectories in 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.
MethodcanSearchDirectories
Description

Tests if this user can perform Directory 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 search 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.
MethodgetDirectoryQuery
Description

Gets a directory query.

Returnosid.filing.DirectoryQuerythe directory query
CompliancemandatoryThis method must be implemented.
MethodgetDirectoriesByQuery
Description

Gets a list of Directory objects matching the given directory query.

Parametersosid.filing.DirectoryQuerydirectoryQuerythe directory query
Returnosid.filing.DirectoryListthe returned DirectoryList
ErrorsNULL_ARGUMENT directoryQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED directoryQuery is not of this service
CompliancemandatoryThis method must be implemented.