OSID Logo
OSID Specifications
assessment authoring package
Version 3.1.0
Interfaceosid.assessment.authoring.SequenceRuleEnablerAdminSession
Implementsosid.OsidSession
Used Byosid.assessment.authoring.AssessmentAuthoringManager
osid.assessment.authoring.AssessmentAuthoringProxyManager
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.Id the Bank Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetBank
Description

Gets the Bank associated with this session.

Returnosid.assessment.Bank the bank
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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
Compliancemandatory This 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[]sequenceRuleEnablerRecordTypes array 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
Compliancemandatory This 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[]sequenceRuleEnablerRecordTypes array of sequence rule enabler record types
Returnosid.assessment.authoring.SequenceRuleEnablerForm the sequence rule enabler form
ErrorsNULL_ARGUMENT sequenceRuleEnablerRecordTypes is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED unable to get form for requested record types
Compliancemandatory This method must be implemented.
MethodcreateSequenceRuleEnabler
Description

Creates a new SequenceRuleEnabler.

Parametersosid.assessment.authoring.SequenceRuleEnablerFormsequenceRuleEnablerForm the form for this SequenceRuleEnabler
Returnosid.assessment.authoring.SequenceRuleEnabler the new SequenceRuleEnabler
ErrorsILLEGAL_STATE sequenceRuleEnablerForm already used in a create transaction
INVALID_ARGUMENT one or more of the form elements is invalid
NULL_ARGUMENT sequenceRuleEnablerForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED sequenceRuleEnablerForm did not originate from getSequenceRuleEnablerFormForCreate()
Compliancemandatory This 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
Compliancemandatory This 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.IdsequenceRuleEnablerId the Id of the SequenceRuleEnabler
Returnosid.assessment.authoring.SequenceRuleEnablerForm the sequence rule enabler form
ErrorsNOT_FOUND sequenceRuleEnablerId is not found
NULL_ARGUMENT sequenceRuleEnablerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodupdateSequenceRuleEnabler
Description

Updates an existing sequence rule enabler.

Parametersosid.assessment.authoring.SequenceRuleEnablerFormsequenceRuleEnablerForm the form containing the elements to be updated
ErrorsILLEGAL_STATE sequenceRuleEnablerForm already used in an update transaction
INVALID_ARGUMENT the form contains an invalid value
NULL_ARGUMENT sequenceRuleEnablerForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED sequenceRuleEnablerForm did not originate from getSequenceRuleEnablerFormForUpdate()
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethoddeleteSequenceRuleEnabler
Description

Deletes a SequenceRuleEnabler.

Parametersosid.id.IdsequenceRuleEnablerId the Id of the SequenceRuleEnabler to remove
ErrorsNOT_FOUND sequenceRuleEnablerId not found
NULL_ARGUMENT sequenceRuleEnablerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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
Compliancemandatory This 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.IdsequenceRuleEnablerId the Id of a SequenceRuleEnabler
osid.id.IdaliasId the alias Id
ErrorsALREADY_EXISTS aliasId is already assigned
NOT_FOUND sequenceRuleEnablerId not found
NULL_ARGUMENT sequenceRuleEnablerId or aliasId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.