OSID Logo
OSID Specifications
journaling package
Version 3.0.0
Release Candidate Preview
Interfaceosid.journaling.BranchSearchSession
Implementsosid.journaling.BranchQuerySession
Description

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

getBranchsByQuery() is the basic search method and returns a list of Branches. A more advanced search may be performed with getBranchesBySearch(). It accepts an BranchSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getBranchesBySearch() returns an BranchSearchResults that can be used to access the resulting BranchList or be used to perform a search within the result set through BranchList.

This session defines views that offer differing behaviors for searching.

  • federated journal view: searches include branches in journals of which this journal is a ancestor in the journal hierarchy
  • isolated journal view: searches are restricted to branches in this journal

Branches may have a query record indicated by their respective recod types. The query record is accessed via the BranchQuery.

MethodgetBranchSearch
Description

Gets a branch search.

Returnosid.journaling.BranchSearchthe branch search
CompliancemandatoryThis method must be implemented.
MethodgetBranchSearchOrder
Description

Gets a branch search order. The BranchSearchOrder is supplied to a BranchSearch to specify the ordering of results.

Returnosid.journaling.BranchSearchOrderthe branch search order
CompliancemandatoryThis method must be implemented.
MethodgetBranchesBySearch
Description

Gets the search results matching the given search query using the given search.

Parametersosid.journaling.BranchQuerybranchQuerythe branch query
osid.journaling.BranchSearchbranchSearchthe branch search
Returnosid.journaling.BranchSearchResultsthe returned search results
ErrorsNULL_ARGUMENT branchQuery or branchSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED branchQuery or branchSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetBranchQueryFromInspector
Description

Gets a branch query from an inspector. The inspector is available from a BranchSearchResults.

Parametersosid.journaling.BranchQueryInspectorbranchQueryInspectora branch query inspector
Returnosid.journaling.BranchQuerythe branch query
ErrorsNULL_ARGUMENT branchQueryInspector is null
UNSUPPORTED branchQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.