OSID Logo
OSID Specifications
filing package
Version 3.1.0
Interfaceosid.filing.DirectoryQuerySession
Implementsosid.OsidSession
Implemented Byosid.filing.DirectorySearchSession
Used Byosid.filing.FilingManager
osid.filing.FilingProxyManager
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.Id the Id of this directory
Compliancemandatory This method must be implemented.
MethodgetDirectory
Description

Gets the directory associated with this session.

Returnosid.filing.Directory the directory associated with this session
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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
Compliancemandatory This 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.

Compliancemandatory This method is must be implemented.
MethoduseIsolatedDirectoryView
Description

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

Compliancemandatory This method is must be implemented.
MethodgetDirectoryQuery
Description

Gets a directory query.

Returnosid.filing.DirectoryQuery the directory query
Compliancemandatory This method must be implemented.
MethodgetDirectoriesByQuery
Description

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

Parametersosid.filing.DirectoryQuerydirectoryQuery the directory query
Returnosid.filing.DirectoryList the returned DirectoryList
ErrorsNULL_ARGUMENT directoryQuery is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED directoryQuery is not of this service
Compliancemandatory This method must be implemented.