OSID Logo
OSID Specifications
relationship package
Version 3.1.0
Interfaceosid.relationship.RelationshipSearchSession
Implementsosid.relationship.RelationshipQuerySession
Used Byosid.relationship.RelationshipManager
osid.relationship.RelationshipProxyManager
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.RelationshipSearch the relationship search
Compliancemandatory This 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.RelationshipSearchOrder the relationship search order
Compliancemandatory This method must be implemented.
MethodgetRelationshipsBySearch
Description

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

Parametersosid.relationship.RelationshipQueryrelationshipQuery the relationship query
osid.relationship.RelationshipSearchrelationshipSearch the relationship search
Returnosid.relationship.RelationshipSearchResults the returned search results
ErrorsNULL_ARGUMENT relationshipQuery or relationshipSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED relationshipQuery or relationshipSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetRelationshipQueryFromInspector
Description

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

Parametersosid.relationship.RelationshipQueryInspectorrelationshipQueryInspector a relationship query inspector
Returnosid.relationship.RelationshipQuery the relationship query
ErrorsNULL_ARGUMENT relationshipQueryInspector is null
UNSUPPORTED relationshipQueryInspector is not of this service
Compliancemandatory This method must be implemented.