OSID Logo
OSID Specifications
relationship rules package
Version 3.1.0
Interfaceosid.relationship.rules.RelationshipEnablerRuleLookupSession
Implementsosid.OsidSession
Used Byosid.relationship.rules.RelationshipRulesManager
osid.relationship.rules.RelationshipRulesProxyManager
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.Id the Family Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetFamily
Description

Gets the Family associated with this session.

Returnosid.relationship.Family the family
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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
Compliancemandatory This 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.

Compliancemandatory This 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.

Compliancemandatory This 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.

Compliancemandatory This method is must be implemented.
MethoduseIsolatedFamilyView
Description

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

Compliancemandatory This 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.IdList the relationship enabler Ids
ErrorsNOT_FOUND relationshipId is not found
NULL_ARGUMENT relationshipId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetRelationshipEnablersForRelationship
Description

Gets the RelationshipEnabler associated with a Relationship.

Parametersosid.id.IdrelationshipId Id of the Relationship
Returnosid.relationship.rules.RelationshipEnablerList the relationship enablers
ErrorsNOT_FOUND relationshipId is not found
NULL_ARGUMENT relationshipId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetRelationshipIdsForRelationshipEnabler
Description

Gets the Relationship Ids mapped to a RelationshipEnabler.

Parametersosid.id.IdrelationshipEnablerId Id of a RelationshipEnabler
Returnosid.id.IdList list of relationship Ids
ErrorsNOT_FOUND relationshipEnablerId is not found
NULL_ARGUMENT relationshipEnablerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetRelationshipsForRelationshipEnabler
Description

Gets the Relationships mapped to a RelationshipEnabler.

Parametersosid.id.IdrelationshipEnablerId Id of a RelationshipEnabler
Returnosid.relationship.RelationshipList list of relationships
ErrorsNOT_FOUND relationshipEnablerId is not found
NULL_ARGUMENT relationshipEnablerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.