OSID Logo
OSID Specifications
learning package
Version 3.0.0
Release Candidate Preview
Interfaceosid.learning.ObjectiveSequencingSession
Implementsosid.OsidSession
Description

This session provides methods to sequence the objectives in the objective hierarchy.

MethodgetObjectiveHierarchyId
Description

Gets the hierarchy Id associated with this session.

Returnosid.id.Idthe hierarchy Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetObjectiveHierarchy
Description

Gets the hierarchy associated with this session.

Returnosid.hierarchy.Hierarchythe hierarchy associated with this session
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanSequenceObjectives
Description

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

Returnboolean false if sequencing objectives is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodmoveObjectiveAhead
Description

Moves an objective ahead of a refrence objective under the given parent.

Parametersosid.id.IdparentObjectiveIdthe Id of the parent objective
osid.id.IdreferenceObjectiveIdthe Id of the objective
osid.id.IdobjectiveIdthe Id of the objective to move ahead of referenceObjectiveId
ErrorsNOT_FOUND parentObjectiveId, referenceObjectiveId, or objectiveId not found, or referenceObjectiveId or objectiveId is not a child of parentObjectiveId
NULL_ARGUMENT parentObjectiveId, referenceObjectiveId, or id is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodmoveObjectiveBehind
Description

Moves an objective behind a refrence objective under the given parent.

Parametersosid.id.IdparentObjectiveIdthe Id of the parent objective
osid.id.IdreferenceObjectiveIdthe Id of the objective
osid.id.IdobjectiveIdthe Id of the objective to move behind referenceObjectiveId
ErrorsNOT_FOUND parentObjectiveId, referenceObjectiveId, or objectiveId not found, or referenceObjectiveId or objectiveId is not a child of parentObjectiveId
NULL_ARGUMENT parentObjectiveId, referenceObjectiveId, or id is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodsequenceObjectives
Description

Sequences a set of objectives under a parent.

Parametersosid.id.IdparentObjectiveIdthe Id of the parent objective
osid.id.Id[]objectiveIdsthe Id of the objectives
ErrorsNOT_FOUND parentId or an objectiveId not found, or an objectiveId is not a child of parentObjectiveId
NULL_ARGUMENT parenObjectivetId or objectiveIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.