Interface ProficiencyObjectiveBankAssignmentSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to re-assign Proficiencies to
ObjectiveBanks . A Proficiency may appear in multiple
ObjectiveBank objects and removing the last reference to a
Proficiency is the equivalent of deleting it. Each ObjectiveBank
may have its own authorizations governing who is allowed to operate on it.
Adding a reference of a Proficiency to another
ObjectiveBank is not a copy operation (eg: does not change its Id
).
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignProficiencyToObjectiveBank(Id proficiencyId, Id objectiveBankId) Adds an existingProficiencyto aObjectiveBank.booleanTests if this user can alter proficiency/objective bank mappings.booleancanAssignProficienciesToObjectiveBank(Id objectiveBankId) Tests if this user can alter proficiency/objective bank mappings.getAssignableObjectiveBankIds(Id objectiveBankId) Gets a list of objective banks including and under the given objective bank proficiency in which any proficiency can be assigned.getAssignableObjectiveBankIdsForProficiency(Id objectiveBankId, Id proficiencyId) Gets a list of objective banks including and under the given objective bank proficiency in which a specific proficiency can be assigned.voidreassignProficiencyToObjectiveBank(Id proficiencyId, Id fromObjectiveBankId, Id toObjectiveBankId) Moves aProficiencyfrom oneObjectiveBankto another.voidunassignProficiencyFromObjectiveBank(Id proficiencyId, Id objectiveBankId) Removes aProficiencyfrom aObjectiveBank.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
-
canAssignProficiencies
boolean canAssignProficiencies()Tests if this user can alter proficiency/objective bank mappings. 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.
-
canAssignProficienciesToObjectiveBank
Tests if this user can alter proficiency/objective bank mappings. 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.- Parameters:
objectiveBankId- theIdof theObjectiveBank- Returns:
falseif mapping is not authorized,trueotherwise- Throws:
NullArgumentException-objectiveBankIdisnull- Compliance:
mandatory- This method must be implemented.
-
getAssignableObjectiveBankIds
Gets a list of objective banks including and under the given objective bank proficiency in which any proficiency can be assigned.- Parameters:
objectiveBankId- theIdof theObjectiveBank- Returns:
- list of assignable objectiveBank
Ids - Throws:
NullArgumentException-objectiveBankIdisnullOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getAssignableObjectiveBankIdsForProficiency
IdList getAssignableObjectiveBankIdsForProficiency(Id objectiveBankId, Id proficiencyId) throws OperationFailedException Gets a list of objective banks including and under the given objective bank proficiency in which a specific proficiency can be assigned.- Parameters:
objectiveBankId- theIdof theObjectiveBankproficiencyId- theIdof theProficiency- Returns:
- list of assignable objectiveBank
Ids - Throws:
NullArgumentException-objectiveBankIdorproficiencyIdisnullOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
assignProficiencyToObjectiveBank
void assignProficiencyToObjectiveBank(Id proficiencyId, Id objectiveBankId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingProficiencyto aObjectiveBank.- Parameters:
proficiencyId- theIdof theProficiencyobjectiveBankId- theIdof theObjectiveBank- Throws:
AlreadyExistsException-proficiencyIdis already mapped toobjectiveBankIdNotFoundException-proficiencyIdorobjectiveBankIdnot foundNullArgumentException-proficiencyIdorobjectiveBankIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignProficiencyFromObjectiveBank
void unassignProficiencyFromObjectiveBank(Id proficiencyId, Id objectiveBankId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aProficiencyfrom aObjectiveBank.- Parameters:
proficiencyId- theIdof theProficiencyobjectiveBankId- theIdof theObjectiveBank- Throws:
NotFoundException-proficiencyIdorobjectiveBankIdnot found orproficiencyIdnot mapped toobjectiveBankIdNullArgumentException-proficiencyIdorobjectiveBankIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
reassignProficiencyToObjectiveBank
void reassignProficiencyToObjectiveBank(Id proficiencyId, Id fromObjectiveBankId, Id toObjectiveBankId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Moves aProficiencyfrom oneObjectiveBankto another. Mappings to otherObjectiveBanksare unaffected.- Parameters:
proficiencyId- theIdof theProficiencyfromObjectiveBankId- theIdof the currentObjectiveBanktoObjectiveBankId- theIdof the destinationObjectiveBank- Throws:
AlreadyExistsException-proficiencyIdalready assigned totoObjectiveBankIdNotFoundException-proficiencyId, fromObjectiveBankId, ortoObjectiveBankIdnot found orproficiencyIdnot mapped tofromObjectiveBankIdNullArgumentException-proficiencyId, fromObjectiveBankId, ortoObjectiveBankIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-