public interface ActivityObjectiveBankAssignmentSession extends OsidSession
This session provides methods to re-assign Activities to
ObjectiveBanks. An Activity may map to
multiple ObjectiveBanks and removing the last reference to
a Activity is the equivalent of deleting it. Each
ObjectiveBank may have its own authorizations governing who is
allowed to operate on it.
Moving or adding a reference of an Activity to another
ObjectiveBank is not a copy operation (eg: does not change
its Id ).
| Modifier and Type | Method and Description |
|---|---|
void |
assignActivityToObjectiveBank(Id activityId,
Id objectiveBankId)
Adds an existing
Activity to a ObjectiveBank. |
boolean |
canAssignActivities()
Tests if this user can alter activity/objective bank mappings.
|
boolean |
canAssignActivitiesToObjectiveBank(Id objectiveBankId)
Tests if this user can alter activity/objective bank mappings.
|
IdList |
getAssignableObjectiveBankIds(Id objectiveBankId)
Gets a list of objective banks including and under the given objective
bank node in which any activity can be assigned.
|
IdList |
getAssignableObjectiveBankIdsForActivity(Id objectiveBankId,
Id activityId)
Gets a list of objective banks including and under the given objective
bank node in which a specific activity can be assigned.
|
void |
unassignActivityFromObjectiveBank(Id activityId,
Id objectiveBankId)
Removes a
Activity from a ObjectiveBank. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canAssignActivities()
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 canAssignActivitiesToObjectiveBank(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 getAssignableObjectiveBankIdsForActivity(Id objectiveBankId, Id activityId) throws OperationFailedException
objectiveBankId - the Id of the
ObjectiveBank activityId - the Id of the Activity
Ids NullArgumentException - activityId or
objectiveBankId is null OperationFailedException - unable to complete requestmandatory - This method must be implemented. void assignActivityToObjectiveBank(Id activityId, Id objectiveBankId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
Activity to a ObjectiveBank.
activityId - the Id of the Activity
objectiveBankId - the Id of the
ObjectiveBank AlreadyExistsException - activityId
already mapped to objectiveBankId NotFoundException - activityId or
objectiveBankId not foundNullArgumentException - activityId or
objectiveBankId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void unassignActivityFromObjectiveBank(Id activityId, Id objectiveBankId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Activity from a ObjectiveBank. activityId - the Id of the Activity
objectiveBankId - the Id of the
ObjectiveBank NotFoundException - activityId or
objectiveBankId not found or activityId
not mapped to objectiveBankId NullArgumentException - activityId or
objectiveBankId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.