OSID Logo
OSID Specifications
assessment authoring package
Version 3.0.0
Release Candidate Preview
Interfaceosid.assessment.authoring.SequenceRuleEnablerRuleLookupSession
Implementsosid.OsidSession
Description

This session provides methods to retrieve SequenceRuleEnabler to SequenceRule mappings. a Step with multiple SequenceRuleEnablers means any positive rule evaluation across the enablers result in an effective SequenceRule.

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 bank view: All methods in this session operate, retrieve and pertain sequence rule enablers defined explicitly in the current bank
  • federated bank view: All methods in this session operate, retrieve and pertain to all sequence rule enablers defined in this bank and any other sequence rule enablers implicitly available in this bank through bank inheritence.
MethodgetBankId
Description

Gets the Bank Id associated with this session.

Returnosid.id.Idthe Bank Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetBank
Description

Gets the Bank associated with this session.

Returnosid.assessment.Bankthe bank
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanLookupSequenceRuleEnablerRules
Description

Tests if this user can perform lookups of sequence rule enabler/sequence rule 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.
MethoduseComparativeSequenceRuleEnablerRuleView
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.
MethodusePlenarySequenceRuleEnablerRuleView
Description

A complete view of the SequenceRuleEnabler and SequenceRule 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.
MethoduseFederatedBankView
Description

Federates the view for methods in this session. A federated view will include sequence rule enablers in banks which are children of this bank in the bank hierarchy.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedBankView
Description

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

CompliancemandatoryThis method is must be implemented.
MethodgetSequenceRuleEnablerIdsForSequenceRule
Description

Gets the SequenceRuleEnabler Id associated with a SequenceRule.

Parametersosid.id.Id sequenceRuleId Id of the SequenceRule
Returnosid.id.IdListthe sequence rule enabler Ids
ErrorsNOT_FOUND sequenceRuleId is not found
NULL_ARGUMENT sequenceRuleId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetSequenceRuleEnablersForSequenceRule
Description

Gets the SequenceRuleEnablers associated with a SequenceRule.

Parametersosid.id.IdsequenceRuleId Id of the SequenceRule
Returnosid.assessment.authoring.SequenceRuleEnablerListthe sequence rule enablers
ErrorsNOT_FOUND sequenceRuleId is not found
NULL_ARGUMENT sequenceRuleId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetSequenceRuleIdsForSequenceRuleEnabler
Description

Gets the SequenceRule Ids mapped to a SequenceRuleEnabler.

Parametersosid.id.IdsequenceRuleEnablerId Id of a SequenceRuleEnabler
Returnosid.id.IdListlist of sequence rule Ids
ErrorsNOT_FOUND sequenceRuleEnablerId is not found
NULL_ARGUMENT sequenceRuleEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetSequenceRulesForSequenceRuleEnabler
Description

Gets the SequenceRules mapped to a SequenceRuleEnabler.

Parametersosid.id.IdsequenceRuleEnablerId Id of a SequenceRuleEnabler
Returnosid.assessment.authoring.SequenceRuleListlist of sequence rules
ErrorsNOT_FOUND sequenceRuleEnablerId is not found
NULL_ARGUMENT sequenceRuleEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.