OSID Logo
OSID Specifications
relationship package
Version 3.0.0
Release Candidate Preview
Interfaceosid.relationship.RelationshipSearchSession
Implementsosid.relationship.RelationshipQuerySession
Description

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

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

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

MethodgetRelationshipSearch
Description

Gets a relationship search.

Returnosid.relationship.RelationshipSearchthe relationship search
CompliancemandatoryThis method must be implemented.
MethodgetRelationshipSearchOrder
Description

Gets a relationship search order. The RelationshipSearchOrder is supplied to a RelationshipSearch to specify the ordering of results.

Returnosid.relationship.RelationshipSearchOrderthe relationship search order
CompliancemandatoryThis method must be implemented.
MethodgetRelationshipsBySearch
Description

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

Parametersosid.relationship.RelationshipQueryrelationshipQuerythe relationship query
osid.relationship.RelationshipSearchrelationshipSearchthe relationship search
Returnosid.relationship.RelationshipSearchResultsthe returned search results
ErrorsNULL_ARGUMENT relationshipQuery or relationshipSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED relationshipQuery or relationshipSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetRelationshipQueryFromInspector
Description

Gets a relationship query from an inspector. The inspector is available from a RelationshipSearchResults.

Parametersosid.relationship.RelationshipQueryInspectorrelationshipQueryInspectora relationship query inspector
Returnosid.relationship.RelationshipQuerythe relationship query
ErrorsNULL_ARGUMENT relationshipQueryInspector is null
UNSUPPORTED relationshipQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.