OSID Logo
OSID Specifications
journaling package
Version 3.1.0
Interfaceosid.journaling.BranchSearchSession
Implementsosid.journaling.BranchQuerySession
Used Byosid.journaling.JournalingManager
osid.journaling.JournalingProxyManager
Description

This session provides methods for searching among Branches. 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.BranchSearch the branch search
Compliancemandatory This 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.BranchSearchOrder the branch search order
Compliancemandatory This method must be implemented.
MethodgetBranchesBySearch
Description

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

Parametersosid.journaling.BranchQuerybranchQuery the branch query
osid.journaling.BranchSearchbranchSearch the branch search
Returnosid.journaling.BranchSearchResults the returned search results
ErrorsNULL_ARGUMENT branchQuery or branchSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED branchQuery or branchSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetBranchQueryFromInspector
Description

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

Parametersosid.journaling.BranchQueryInspectorbranchQueryInspector a branch query inspector
Returnosid.journaling.BranchQuery the branch query
ErrorsNULL_ARGUMENT branchQueryInspector is null
UNSUPPORTED branchQueryInspector is not of this service
Compliancemandatory This method must be implemented.