OSID Logo
OSID Specifications
hold rules package
Version 3.1.0
Interfaceosid.hold.rules.HoldEnablerSearchSession
Implementsosid.hold.rules.HoldEnablerQuerySession
Used Byosid.hold.rules.HoldRulesManager
osid.hold.rules.HoldRulesProxyManager
Description

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

getHoldEnablersByQuery() is the basic search method and returns a list of HoldEnablers. A more advanced search may be performed with getHoldEnablersBySearch().It accepts a HoldEnablerSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getHoldEnablersBySearch() returns a HoldEnablerSearchResults that can be used to access the resulting HoldEnablerList or be used to perform a search within the result set through HoldEnablerSearch.

This session defines views that offer differing behaviors for searching.

  • federated hold view: searches include hold enablers in holds of which this hold is an ancestor in the hold hierarchy
  • isolated hold view: searches are restricted to hold enablers in this hold
HoldEnablers may have a query record indicated by their respective record types. The query record is accessed via the HoldEnablerQuery.
MethodgetHoldEnablerSearch
Description

Gets a hold enabler search.

Returnosid.hold.rules.HoldEnablerSearch the hold enabler search
Compliancemandatory This method must be implemented.
MethodgetHoldEnablerSearchOrder
Description

Gets a hold enabler search order. The HoldEnablerSearchOrder is supplied to a HoldEnablerSearch to specify the ordering of results.

Returnosid.hold.rules.HoldEnablerSearchOrder the hold enabler search order
Compliancemandatory This method must be implemented.
MethodgetHoldEnablersBySearch
Description

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

Parametersosid.hold.rules.HoldEnablerQueryholdEnablerQuery the hold enabler query
osid.hold.rules.HoldEnablerSearchholdEnablerSearch the hold enabler search
Returnosid.hold.rules.HoldEnablerSearchResults the returned search results
ErrorsNULL_ARGUMENT holdEnablerQuery or holdEnablerSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED holdEnablerQuery or holdEnablerSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetHoldEnablerQueryFromInspector
Description

Gets a hold enabler query from an inspector. The inspector is available from a HoldEnablerSearchResults.

Parametersosid.hold.rules.HoldEnablerQueryInspectorholdEnablerQueryInspector a hold enabler query inspector
Returnosid.hold.rules.HoldEnablerQuery the hold enabler query
ErrorsNULL_ARGUMENT holdEnablerQueryInspector is null
UNSUPPORTED holdEnablerQueryInspector is not of this service
Compliancemandatory This method must be implemented.