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

This session creates and removes sequence rule enablers. The data for create and update is provided via the SequenceRuleEnablerForm.

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

Tests if this user can create sequence rule enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known creating a SequenceRuleEnabler 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 SequenceRuleEnabler creation is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodcanCreateSequenceRuleEnablerWithRecordTypes
Description

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

Parametersosid.type.Type[]sequenceRuleEnablerRecordTypesarray of sequence rule enabler record types
Returnboolean true if SequenceRuleEnabler creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT sequenceRuleEnablerRecordTypes is null
CompliancemandatoryThis method must be implemented.
MethodgetSequenceRuleEnablerFormForCreate
Description

Gets the sequence rule enabler form for creating new sequence rule enablers. A new form should be requested for each create transaction.

Parametersosid.type.Type[]sequenceRuleEnablerRecordTypesarray of sequence rule enabler record types
Returnosid.assessment.authoring.SequenceRuleEnablerFormthe sequence rule enabler form
ErrorsNULL_ARGUMENT sequenceRuleEnablerRecordTypes is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDunable to get form for requested record types
CompliancemandatoryThis method must be implemented.
MethodcreateSequenceRuleEnabler
Description

Creates a new SequenceRuleEnabler.

Parametersosid.assessment.authoring.SequenceRuleEnablerFormsequenceRuleEnablerFormthe form for this SequenceRuleEnabler
Returnosid.assessment.authoring.SequenceRuleEnablerthe new SequenceRuleEnabler
ErrorsILLEGAL_STATE sequenceRuleEnablerForm already used in a create transaction
INVALID_ARGUMENTone or more of the form elements is invalid
NULL_ARGUMENT sequenceRuleEnablerForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED sequenceRuleEnablerForm did not originate from getSequenceRuleEnablerFormForCreate()
CompliancemandatoryThis method must be implemented.
MethodcanUpdateSequenceRuleEnablers
Description

Tests if this user can update sequence rule enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known updating a SequenceRuleEnabler 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 SequenceRuleEnabler modification is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetSequenceRuleEnablerFormForUpdate
Description

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

Parametersosid.id.IdsequenceRuleEnablerIdthe Id of the SequenceRuleEnabler
Returnosid.assessment.authoring.SequenceRuleEnablerFormthe sequence rule enabler form
ErrorsNOT_FOUND sequenceRuleEnablerId is not found
NULL_ARGUMENT sequenceRuleEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodupdateSequenceRuleEnabler
Description

Updates an existing sequence rule enabler.

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

Tests if this user can delete sequence rule enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting a SequenceRuleEnabler 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 SequenceRuleEnabler deletion is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoddeleteSequenceRuleEnabler
Description

Deletes a SequenceRuleEnabler.

Parametersosid.id.IdsequenceRuleEnablerIdthe Id of the SequenceRuleEnabler to remove
ErrorsNOT_FOUND sequenceRuleEnablerId not found
NULL_ARGUMENT sequenceRuleEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageSequenceRuleEnablerAliases
Description

Tests if this user can manage Id aliases for sequence rule enablers. 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 SequenceRuleEnabler aliasing is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodaliasSequenceRuleEnabler
Description

Adds a Id to a SequenceRuleEnabler for the purpose of creating compatibility. The primary Id of the SequenceRuleEnabler 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 enabler. it is reassigned to the given sequence rule enabler Id.

Parametersosid.id.IdsequenceRuleEnablerIdthe Id of a SequenceRuleEnabler
osid.id.IdaliasIdthe alias Id
ErrorsALREADY_EXISTS aliasId is already assigned
NOT_FOUND sequenceRuleEnablerId not found
NULL_ARGUMENT sequenceRuleEnablerId or aliasId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.