OSID Logo
OSID Specifications
relationship rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.relationship.rules.RelationshipEnablerRuleLookupSession
Implementsosid.OsidSession
Description

This session provides methods to retrieve RelationshipEnabler to Relationship mappings. A Relationship with multiple RelationshipEnablers means any positive rule evaluation across the enablers result in an enabled Relationship.

This lookup session defines several views:

  • comparative view: elements may be silently omitted or re-ordered
  • plenary view: provides a complete result set or is an error condition
  • isolated family view: All methods in this session operate, retrieve and pertain relationship enablers defined explicitly in the current family.
  • federated family view: All methods in this session operate, retrieve and pertain to all relationship enablers defined in this family and any other family enablers implicitly available in this family through family inheritence.
MethodgetFamilyId
Description

Gets the Family Id associated with this session.

Returnosid.id.Idthe Family Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetFamily
Description

Gets the Family associated with this session.

Returnosid.relationship.Familythe family
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanLookupRelationshipEnablerRules
Description

Tests if this user can perform lookups of relationship enabler/relationship mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known lookup methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.

Returnboolean false if looking up mappings is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseComparativeRelationshipEnablerRuleView
Description

The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision.

CompliancemandatoryThis method is must be implemented.
MethodusePlenaryRelationshipEnablerRuleView
Description

A complete view of the RelationshipEnabler and Relationship returns is desired. Methods will return what is requested or result in an error. This view is used when greater precision is desired at the expense of interoperability.

CompliancemandatoryThis method is must be implemented.
MethoduseFederatedFamilyView
Description

Federates the view for methods in this session. A federated view will include relationship enablers in families which are children of this family in the family hierarchy.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedFamilyView
Description

Isolates the view for methods in this session. An isolated view restricts lookups to this family only.

CompliancemandatoryThis method is must be implemented.
MethodgetRelationshipEnablerIdsForRelationship
Description

Gets the RelationshipEnabler Id associated with a Relationship.

Parametersosid.id.Id relationshipId Id of the Relationship
Returnosid.id.IdListthe relationship enabler Ids
ErrorsNOT_FOUND relationshipId is not found
NULL_ARGUMENT relationshipId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetRelationshipEnablersForRelationship
Description

Gets the RelationshipEnabler associated with a Relationship.

Parametersosid.id.IdrelationshipId Id of the Relationship
Returnosid.relationship.rules.RelationshipEnablerListthe relationship enablers
ErrorsNOT_FOUND relationshipId is not found
NULL_ARGUMENT relationshipId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetRelationshipIdsForRelationshipEnabler
Description

Gets the Relationship Ids mapped to a RelationshipEnabler.

Parametersosid.id.IdrelationshipEnablerId Id of a RelationshipEnabler
Returnosid.id.IdListlist of relationship Ids
ErrorsNOT_FOUND relationshipEnablerId is not found
NULL_ARGUMENT relationshipEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetRelationshipsForRelationshipEnabler
Description

Gets the Relationships mapped to a RelationshipEnabler.

Parametersosid.id.IdrelationshipEnablerId Id of a RelationshipEnabler
Returnosid.relationship.RelationshipListlist of relationships
ErrorsNOT_FOUND relationshipEnablerId is not found
NULL_ARGUMENT relationshipEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.