Interface ObjectiveRequisiteAssignmentSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to manage requisites.
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignEquivalentObjective(Id objectiveId, Id equivalentObjectiveId) Makes an objective equivalent to another objective for the purposes of satisfying a requisite.voidassignObjectiveRequisite(Id objectiveId, Id requisiteObjectiveId) Creates a requirement dependency between twoObjectives.booleanTests if this user can manage objective requisites.Gets theObjectiveBankassociated with this session.Gets theObjectiveBankIdassociated with this session.voidunassignEquivalentObjective(Id objectiveId, Id equivalentObjectiveId) Removes anObjectiverequisite from anObjective.voidunassignObjectiveRequisite(Id objectiveId, Id requisiteObjectiveId) Removes anObjectiverequisite from anObjective.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
ObjectiveBankassociated with this session - Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canAssignRequisites
boolean canAssignRequisites()Tests if this user can manage objective requisites. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping methods in this session will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer assignment operations to unauthorized users.- Returns:
falseif mapping is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
assignObjectiveRequisite
void assignObjectiveRequisite(Id objectiveId, Id requisiteObjectiveId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Creates a requirement dependency between twoObjectives.- Parameters:
objectiveId- theIdof the dependentObjectiverequisiteObjectiveId- theIdof the requiredObjective- Throws:
AlreadyExistsException-objectiveIdalready mapped torequisiteObjectiveIdNotFoundException-objectiveIdorrequisiteObjectiveIdnot foundNullArgumentException-objectiveIdorrequisiteObjectiveIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignObjectiveRequisite
void unassignObjectiveRequisite(Id objectiveId, Id requisiteObjectiveId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes anObjectiverequisite from anObjective.- Parameters:
objectiveId- theIdof theObjectiverequisiteObjectiveId- theIdof the requiredObjective- Throws:
NotFoundException-objectiveIdorrequisiteObjectiveIdnot found orobjectiveIdnot mapped torequisiteObjectiveIdNullArgumentException-objectiveIdorrequisiteObjectiveIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
assignEquivalentObjective
void assignEquivalentObjective(Id objectiveId, Id equivalentObjectiveId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Makes an objective equivalent to another objective for the purposes of satisfying a requisite.- Parameters:
objectiveId- theIdof the principalObjectiveequivalentObjectiveId- theIdof the equivalentObjective- Throws:
AlreadyExistsException-objectiveIdalready mapped toequiavelntObjectiveIdNotFoundException-objectiveIdorequivalentObjectiveIdnot foundNullArgumentException-objectiveIdorequivalentObjectiveIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignEquivalentObjective
void unassignEquivalentObjective(Id objectiveId, Id equivalentObjectiveId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes anObjectiverequisite from anObjective.- Parameters:
objectiveId- theIdof the principalObjectiveequivalentObjectiveId- theIdof the equivalentObjective- Throws:
NotFoundException-objectiveIdorequivalentObjectiveIdnot found orobjectiveIdis already equivalent toequivalentObjectiveIdNullArgumentException-objectiveIdorequivalentObjectiveIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-