Interface LearningPathSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session defines methods for finding learning paths through an objective hierarchy based on proficiencies.
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 objective bank view: All methods in this session operate, retrieve and pertain to objectives defined explicitly in the current objective bank.
- federated objective bank view: All methods in this session operate, retrieve and pertain to all obtecives defined in this objective bank and any other objectives implicitly available in this objective bank through objective bank inheritence.
The methods useFederatedObjectiveBankView() and
useIsolatedObjectiveBankView() behave as a radio group and one should be
selected before invoking any lookup methods.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if this user can perform learning path lookups.findPathForResource(Id objectiveId, Id resourceId) Gets the shortest path to an objective.findPathForResourceAtProficiency(Id objectiveId, Id resourceId, Id gradeId) Gets the shortest path to an objective.Gets theObjectiveBankassociated with this session.Gets theObjectiveBankIdassociated with this session.getObjectivesForResourceByCompletion(Id objectiveId, Id resourceId, long completion) Gets the list of objectives for a resource that have a minimum completion.voidThe returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error.voidFederates the view for methods in this session.voidIsolates the view for methods in this session.voidA complete view of theProficiencyreturns is desired.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
getObjectiveBankId
Id getObjectiveBankId()Gets theObjectiveBankIdassociated with this session.- Returns:
- the
ObjectiveBank Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getObjectiveBank
Gets theObjectiveBankassociated with this session.- Returns:
- the obective bank
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canLookupLearningPaths
boolean canLookupLearningPaths()Tests if this user can perform learning path lookups. A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in aPERMISSION_DENIED. This is intended as a hint to an application that may not offer lookup operations to unauthorized users.- Returns:
falseif lookup methods are not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
useComparativeProficiencyView
void useComparativeProficiencyView()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.- Compliance:
mandatory- This method is must be implemented.
-
usePlenaryProficiencyView
void usePlenaryProficiencyView()A complete view of theProficiencyreturns 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.- Compliance:
mandatory- This method is must be implemented.
-
useFederatedObjectiveBankView
void useFederatedObjectiveBankView()Federates the view for methods in this session. A federated view will include proficiencies in objective banks which are children of this objective bank in the obective bank hierarchy.- Compliance:
mandatory- This method is must be implemented.
-
useIsolatedObjectiveBankView
void useIsolatedObjectiveBankView()Isolates the view for methods in this session. An isolated view restricts retrievals to this objective bank only.- Compliance:
mandatory- This method is must be implemented.
-
findPathForResource
ObjectiveList findPathForResource(Id objectiveId, Id resourceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets the shortest path to an objective. The path is a list of objectives for which the resource has a deficient proficiency.- Parameters:
objectiveId- theIdof theObjectiveto reachresourceId- theIdof theResource- Returns:
- the returned list of objectives
- Throws:
NotFoundException-objectiveIdorresourceIdnot foundNullArgumentException-proficiencyIdorresourceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
findPathForResourceAtProficiency
ObjectiveList findPathForResourceAtProficiency(Id objectiveId, Id resourceId, Id gradeId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets the shortest path to an objective. The path is a list of objectives for which the resource has a proficiency less than the given proficiency.- Parameters:
objectiveId- theIdof theObjectiveto reachresourceId- theIdof theResourcegradeId- theIdof a proficiency level- Returns:
- the returned list of objectives
- Throws:
NotFoundException-objectiveIdorresourceIdnot foundNullArgumentException-proficiencyId, resourceIdorgradeIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getObjectivesForResourceByCompletion
ObjectiveList getObjectivesForResourceByCompletion(Id objectiveId, Id resourceId, long completion) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets the list of objectives for a resource that have a minimum completion.- Parameters:
objectiveId- theIdof theObjectiveto reachresourceId- theIdof theResourcecompletion- the minimum completion as a percentage number- Returns:
- the returned list of objectives
- Throws:
NotFoundException-objectiveIdorresourceIdnot foundNullArgumentException-proficiencyIdorresourceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-