public interface ObjectiveRequisiteSession extends OsidSession
This session provides methods for retrieving objective requisites. A
requisite is a set of Objectives
that should be achieved
before another Objective
is attempted.
This session defines views that offer differing behaviors when retrieving multiple objects.
ObjectiveAdminSession.
Objectives may have an additional records indicated by their
respective record types. The record may not be accessed through a cast of
the Objective.
Modifier and Type | Method and Description |
---|---|
boolean |
canLookupObjectivePrerequisites()
Tests if this user can perform
Objective lookups. |
ObjectiveList |
getAllRequisiteObjectives(Id objectiveId)
Gets a list of
Objectives that are the requisites for
the given Objective including the requistes of the
requisites, and so on. |
ObjectiveList |
getDependentObjectives(Id objectiveId)
Gets a list of
Objectives that require the given
Objective. |
ObjectiveList |
getEquivalentObjectives(Id objectiveId)
Gets a list of
Objectives that are equivalent to the
given Objective for the purpose of requisites. |
ObjectiveBank |
getObjectiveBank()
Gets the
ObjectiveBank associated with this session. |
Id |
getObjectiveBankId()
Gets the
ObjectiveBank Id associated
with this session. |
ObjectiveList |
getRequisiteObjectives(Id objectiveId)
Gets a list of
Objectives that are the immediate
requisites for the given Objective. |
boolean |
isObjectiveRequired(Id objectiveId,
Id requiredObjectiveId)
Tests if an objective is required before proceeding with an objective.
|
void |
useComparativeObjectiveView()
The returns from the lookup methods may omit or translate elements
based on this session, such as authorization, and not result in an
error.
|
void |
useFederatedObjectiveBankView()
Federates the view for methods in this session.
|
void |
useIsolatedObjectiveBankView()
Isolates the view for methods in this session.
|
void |
usePlenaryObjectiveView()
A complete view of the
Objective returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getObjectiveBankId()
ObjectiveBank
Id
associated
with this session. ObjectiveBank Id
associated with this
sessionmandatory
- This method must be implemented. ObjectiveBank getObjectiveBank() throws OperationFailedException, PermissionDeniedException
ObjectiveBank
associated with this session. ObjectiveBank
associated with this sessionOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canLookupObjectivePrerequisites()
Objective
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 a PERMISSION_DENIED.
This is intended as a
hint to an application that may opt not to offer lookup operations to
unauthorized users. false
if lookup methods are not authorized,
true
otherwisemandatory
- This method must be implemented. void useComparativeObjectiveView()
mandatory
- This method is must be implemented. void usePlenaryObjectiveView()
Objective
returns 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.mandatory
- This method is must be implemented. void useFederatedObjectiveBankView()
mandatory
- This method is must be implemented. void useIsolatedObjectiveBankView()
mandatory
- This method is must be implemented. ObjectiveList getRequisiteObjectives(Id objectiveId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Objectives
that are the immediate
requisites for the given Objective.
In plenary mode,
the returned list contains all of the immediate requisites, or an
error results if an Objective
is not found or
inaccessible. Otherwise, inaccessible Objectives
may be
omitted from the list and may present the elements in any order
including returning a unique set.objectiveId
- Id
of the Objective
Objectives
NotFoundException
- objectiveId
not
foundNullArgumentException
- objectiveId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method is must be implemented. ObjectiveList getAllRequisiteObjectives(Id objectiveId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Objectives
that are the requisites for
the given Objective
including the requistes of the
requisites, and so on. In plenary mode, the returned list contains all
of the immediate requisites, or an error results if an
Objective
is not found or inaccessible. Otherwise,
inaccessible Objectives
may be omitted from the list
and may present the elements in any order including returning a unique
set.objectiveId
- Id
of the Objective
Objective
listNotFoundException
- objectiveId
not
foundNullArgumentException
- objectiveId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. ObjectiveList getDependentObjectives(Id objectiveId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Objectives
that require the given
Objective.
In plenary mode, the returned list contains all of
the immediate requisites, or an error results if an Objective is not
found or inaccessible. Otherwise, inaccessible Objectives
may be omitted from the list and may present the elements in
any order including returning a unique set.objectiveId
- Id
of the Objective
Objective
listNotFoundException
- objectiveId
not
foundNullArgumentException
- objectiveId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean isObjectiveRequired(Id objectiveId, Id requiredObjectiveId) throws NotFoundException, OperationFailedException, PermissionDeniedException
objectiveId
- Id
of the dependent
Objective
requiredObjectiveId
- Id
of the required
Objective
true
if objectiveId
depends on
requiredObjectiveId,
false
otherwiseNotFoundException
- objectiveId
not
foundNullArgumentException
- objectiveId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. ObjectiveList getEquivalentObjectives(Id objectiveId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Objectives
that are equivalent to the
given Objective
for the purpose of requisites. An
equivalent objective can satisfy the given objective. In plenary mode,
the returned list contains all of the equivalent requisites, or an
error results if an Objective is not found or inaccessible. Otherwise,
inaccessible Objectives
may be omitted from the list
and may present the elements in any order including returning a unique
set.objectiveId
- Id
of the Objective
Objective
listNotFoundException
- objectiveId
not
foundNullArgumentException
- objectiveId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.