public interface ProficiencyObjectiveBankAssignmentSession extends OsidSession
This session provides methods to re-assign Proficiencies
to ObjectiveBank objects. 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 ).
| Modifier and Type | Method and Description |
|---|---|
void |
assignProficiencyToObjectiveBank(Id proficiencyId,
Id objectiveBankId)
Adds an existing
Proficiency to a ObjectiveBank. |
boolean |
canAssignProficiencies()
Tests if this user can alter proficiency/objective bank mappings.
|
boolean |
canAssignProficienciesToObjectiveBank(Id objectiveBankId)
Tests if this user can alter proficiency/objective bank mappings.
|
IdList |
getAssignableObjectiveBankIds(Id objectiveBankId)
Gets a list of objective banks including and under the given objective
bank proficiency in which any proficiency can be assigned.
|
IdList |
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.
|
void |
unassignProficiencyFromObjectiveBank(Id proficiencyId,
Id objectiveBankId)
Removes a
Proficiency from a ObjectiveBank. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canAssignProficiencies()
PERMISSION_DENIED. This is intended as
a hint to an application that may opt not to offer assignment
operations to unauthorized users. false if mapping is not authorized, true
otherwisemandatory - This method must be implemented. boolean canAssignProficienciesToObjectiveBank(Id objectiveBankId)
PERMISSION_DENIED. This is intended as
a hint to an application that may opt not to offer assignment
operations to unauthorized users.objectiveBankId - the Id of the
ObjectiveBank false if mapping is not authorized, true
otherwiseNullArgumentException - objectiveBankId
is null mandatory - This method must be implemented. IdList getAssignableObjectiveBankIds(Id objectiveBankId) throws OperationFailedException
objectiveBankId - the Id of the
ObjectiveBank Ids NullArgumentException - objectiveBankId
is null OperationFailedException - unable to complete requestmandatory - This method must be implemented. IdList getAssignableObjectiveBankIdsForProficiency(Id objectiveBankId, Id proficiencyId) throws OperationFailedException
objectiveBankId - the Id of the
ObjectiveBank proficiencyId - the Id of the Proficiency
Ids NullArgumentException - objectiveBankId
or proficiencyId is null OperationFailedException - unable to complete requestmandatory - This method must be implemented. void assignProficiencyToObjectiveBank(Id proficiencyId, Id objectiveBankId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
Proficiency to a ObjectiveBank.
proficiencyId - the Id of the Proficiency
objectiveBankId - the Id of the
ObjectiveBank AlreadyExistsException - proficiencyId
is already mapped to objectiveBankId NotFoundException - proficiencyId or
objectiveBankId not foundNullArgumentException - proficiencyId or
objectiveBankId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void unassignProficiencyFromObjectiveBank(Id proficiencyId, Id objectiveBankId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Proficiency from a ObjectiveBank.
proficiencyId - the Id of the Proficiency
objectiveBankId - the Id of the
ObjectiveBank NotFoundException - proficiencyId or
objectiveBankId not found or
proficiencyId not mapped to objectiveBankId
NullArgumentException - proficiencyId or
objectiveBankId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.