OSID Logo
OSID Specifications
resource package
Version 3.0.0
Release Candidate Preview
Interfaceosid.resource.ResourceRelationshipSearchSession
Implementsosid.resource.ResourceRelationshipQuerySession
Description

This session provides methods for searching ResourceRelationship objects. The search query is constructed using the ResourceRelationshipQuery. The resource relationship record Type also specifies the record for the relationship query.

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

This session defines views that offer differing behaviors for searching.

  • federated bin view: searches include relationships in bins of which this bin is a ancestor in the bin hierarchy
  • isolated bin view: searches are restricted to relationships in this bin only

Relationships may have a resource relationship query record indicated by their respective record types. The resource relationship query record is accessed via the ResourceRelationshipQuery.

MethodgetResourceRelationshipSearch
Description

Gets a relationship search.

Returnosid.resource.ResourceRelationshipSearchthe relationship search
CompliancemandatoryThis method must be implemented.
MethodgetResourceRelationshipSearchOrder
Description

Gets a relationship search order. The ResourceRelationshipSearchOrder is supplied to a ResourceRelationshipSearch to specify the ordering of results.

Returnosid.resource.ResourceRelationshipSearchOrderthe relationship search order
CompliancemandatoryThis method must be implemented.
MethodgetResourceRelationshipsBySearch
Description

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

Parametersosid.resource.ResourceRelationshipQueryresourceRelationshipQuerythe resource relationship query
osid.resource.ResourceRelationshipSearchresourceRelationshipSearchthe resource relationship search
Returnosid.resource.ResourceRelationshipSearchResultsthe returned resource relationship search results
ErrorsNULL_ARGUMENT resourceRelationshipQuery or r esourceRelationshipSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED resourceRelationshipSearch or r esourceRelationshipQuery is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetResourceRelationshipQueryFromInspector
Description

Gets a resource relationship query from an inspector. The inspector is available from a ResourceRelationshipSearchResults.

Parametersosid.resource.ResourceRelationshipQueryInspectorresourceRelationshipQueryInspectora query inspector
Returnosid.resource.ResourceRelationshipQuerythe resource relationship query
ErrorsNULL_ARGUMENT resourceRelationshipQueryInspector is null
UNSUPPORTED resourceRelationshipQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.