OSID Logo
OSID Specifications
resource package
Version 3.1.0
Interfaceosid.resource.ResourceRelationshipSearchSession
Implementsosid.resource.ResourceRelationshipQuerySession
Used Byosid.resource.ResourceManager
osid.resource.ResourceProxyManager
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 an 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.ResourceRelationshipSearch the relationship search
Compliancemandatory This 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.ResourceRelationshipSearchOrder the relationship search order
Compliancemandatory This method must be implemented.
MethodgetResourceRelationshipsBySearch
Description

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

Parametersosid.resource.ResourceRelationshipQueryresourceRelationshipQuery the resource relationship query
osid.resource.ResourceRelationshipSearchresourceRelationshipSearch the resource relationship search
Returnosid.resource.ResourceRelationshipSearchResults the returned resource relationship search results
ErrorsNULL_ARGUMENT resourceRelationshipQuery or r esourceRelationshipSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED resourceRelationshipSearch or r esourceRelationshipQuery is not of this service
Compliancemandatory This method must be implemented.
MethodgetResourceRelationshipQueryFromInspector
Description

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

Parametersosid.resource.ResourceRelationshipQueryInspectorresourceRelationshipQueryInspector a query inspector
Returnosid.resource.ResourceRelationshipQuery the resource relationship query
ErrorsNULL_ARGUMENT resourceRelationshipQueryInspector is null
UNSUPPORTED resourceRelationshipQueryInspector is not of this service
Compliancemandatory This method must be implemented.