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

This session creates and removes sequence rules. The data for create and update is provided via the SequenceRuleForm.

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.
MethodcanCreateSequenceRule
Description

Tests if this user can create sequence rules. A return of true does not guarantee successful authorization. A return of false indicates that it is known creating a SequenceRule will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer create operations to an unauthorized user.

Returnboolean false if SequenceRule creation is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodcanCreateSequenceRuleWithRecordTypes
Description

Tests if this user can create a single SequenceRule using the desired record types. While AssessmentAuthoringManager.getSequenceRuleRecordTypes() can be used to examine which records are supported, this method tests which record(s) are required for creating a specific SequenceRule. Providing an empty array tests if a SequenceRule can be created with no records.

Parametersosid.type.Type[]sequenceRuleRecordTypesarray of sequence rule record types
Returnboolean true if SequenceRule creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT sequenceRuleRecordTypes is null
CompliancemandatoryThis method must be implemented.
MethodgetSequenceRuleFormForCreate
Description

Gets the sequence rule form for creating new sequence rules between two assessment parts. A new form should be requested for each create transaction.

Parametersosid.id.IdassessmentPartIdthe source assessment part Id
osid.id.IdnextAssessmentPartIdthe target assessment part Id
osid.type.Type[]sequenceRuleRecordTypesarray of sequence rule record types
Returnosid.assessment.authoring.SequenceRuleFormthe sequence rule form
ErrorsINVALID_ARGUMENT assessmentPartId and nextAssessmentPartId not on the same assessment
NOT_FOUND assessmentPartId or nextAssessmentPartId is not found
NULL_ARGUMENT assessmentPartId, nextAssessmentPartId , or sequenceRuleRecordTypes is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDunable to get form for requested record types
CompliancemandatoryThis method must be implemented.
MethodcreateSequenceRule
Description

Creates a new SequenceRule.

Parametersosid.assessment.authoring.SequenceRuleFormsequenceRuleFormthe form for this SequenceRule
Returnosid.assessment.authoring.SequenceRulethe new SequenceRule
ErrorsILLEGAL_STATE sequenceRuleForm already used in a create transaction
INVALID_ARGUMENTone or more of the form elements is invalid
NULL_ARGUMENT sequenceRuleForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED sequenceRuleForm did not originate from getSequenceRuleFormForCreate()
CompliancemandatoryThis method must be implemented.
MethodcanUpdateSequenceRules
Description

Tests if this user can update sequence rules. A return of true does not guarantee successful authorization. A return of false indicates that it is known updating a SequenceRule will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer update operations to an unauthorized user.

Returnboolean false if SequenceRule modification is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetSequenceRuleFormForUpdate
Description

Gets the sequence rule form for updating an existing sequence rule. A new sequence rule form should be requested for each update transaction.

Parametersosid.id.IdsequenceRuleIdthe Id of the SequenceRule
Returnosid.assessment.authoring.SequenceRuleFormthe sequence rule form
ErrorsNOT_FOUND sequenceRuleId is not found
NULL_ARGUMENT sequenceRuleId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodupdateSequenceRule
Description

Updates an existing sequence rule.

Parametersosid.assessment.authoring.SequenceRuleFormsequenceRuleFormthe form containing the elements to be updated
ErrorsILLEGAL_STATE sequenceRuleForm already used in an update transaction
INVALID_ARGUMENTthe form contains an invalid value
NULL_ARGUMENT sequenceRuleForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED sequenceRuleForm did not originate from getSequenceRuleFormForUpdate()
CompliancemandatoryThis method must be implemented.
MethodcanDeleteSequenceRules
Description

Tests if this user can delete sequence rules. A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting a SequenceRule will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer delete operations to an unauthorized user.

Returnboolean false if SequenceRule deletion is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoddeleteSequenceRule
Description

Deletes a SequenceRule.

Parametersosid.id.IdsequenceRuleIdthe Id of the SequenceRule to remove
ErrorsNOT_FOUND sequenceRuleId not found
NULL_ARGUMENT sequenceRuleId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageSequenceRuleAliases
Description

Tests if this user can manage Id aliases for sequence rules. A return of true does not guarantee successful authorization. A return of false indicates that it is known changing an alias will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer alias operations to an unauthorized user.

Returnboolean false if SequenceRule aliasing is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodaliasSequenceRule
Description

Adds a Id to a SequenceRule for the purpose of creating compatibility. The primary Id of the SequenceRule is determined by the provider. The new Id performs as an alias to the primary Id . If the alias is a pointer to another sequence rule. it is reassigned to the given sequence rule Id.

Parametersosid.id.IdsequenceRuleIdthe Id of a SequenceRule
osid.id.IdaliasIdthe alias Id
ErrorsALREADY_EXISTS aliasId is already assigned
NOT_FOUND sequenceRuleId not found
NULL_ARGUMENT sequenceRuleId or aliasId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanSequenceSequenceRules
Description

Tests if this user can order SequenceRules. A return of true does not guarantee successful authorization. A return of false indicates that it is known sequencing operations will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer sequencing operations to an unauthorized user.

Returnboolean false if SequenceRule ordering is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodmoveSequenceRuleAhead
Description

Reorders sequence rule for a source assessment part by moving the specified sequence rule in front of a reference sequence rule.

Parametersosid.id.IdsequenceRuleIdthe Id of a SequenceRule
osid.id.IdassessmentPartIdthe Id of an AssessmentPart
osid.id.IdreferenceIdthe reference sequence rule Id
ErrorsNOT_FOUND sequenceRuleId, assessmentPartId, or referenceId not found or, sequenceRuleId or referenceId not related to assessmentPartId
NULL_ARGUMENT sequenceRuleId, assessmentPartId, or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodmoveSequenceRuleBehind
Description

Reorders sequence rule for a source assessment part by moving the specified sequence rule behind a reference sequence rule.

Parametersosid.id.IdsequenceRuleIdthe Id of a SequenceRule
osid.id.IdassessmentPartIdthe Id of an AssessmentPart
osid.id.IdreferenceIdthe reference sequence rule Id
ErrorsNOT_FOUND sequenceRuleId, assessmentPartId, or referenceId not found or, sequenceRuleId or referenceId not related to assessmentPartId
NULL_ARGUMENT sequenceRuleId, assessmentPartId, or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodorderSequenceRules
Description

Reorders a set of sequence rules for an assessment part.

Parametersosid.id.Id[]sequenceRuleIdsthe Ids for a set of SequenceRules
osid.id.IdassessmentPartIdthe Id of an AssessmentPart
ErrorsNOT_FOUND assessmentPartId not found or, a sequenceRuleId not related to assessmentPartId
NULL_ARGUMENT sequenceRuleIds or assessmentPartId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.