public interface GradeSystemGradebookAssignmentSession extends OsidSession
This session provides methods to re-assign grade systems to
Gradebooks.
A GradeSystem
may map to multiple
Gradebooks
and removing the last reference to a
GradeSystem
is the equivalent of deleting it. Each
Gradebook
may have its own authorizations governing who is allowed
to operate on it.
Moving or adding a reference of a GradeSystem
to
another Gradebook
is not a copy operation (eg: does not
change its Id
).
Modifier and Type | Method and Description |
---|---|
void |
assignGradeSystemToGradebook(Id gradeSystemId,
Id gradebookId)
Adds an existing
GradeSystem to a Gradebook. |
boolean |
canAssignGradeSystem()
Tests if this user can alter grade system/gradebook mappings.
|
boolean |
canAssignGradeSystemsToGradebook(Id gradebookId)
Tests if this user can alter grade system/gradebook mappings.
|
IdList |
getAssignableGradebookIds(Id gradebookId)
Gets a list of gradebooks including and under the given gradebook node
in which any grade system can be assigned.
|
IdList |
getAssignableGradebookIdsForGradeSystem(Id gradebookId,
Id gradeSystemId)
Gets a list of gradebooks including and under the given gradebook node
in which a specific grade system can be assigned.
|
void |
unassignGradeSystemFromGradebook(Id gradeSystemId,
Id gradebookId)
Removes a
GradeSystem from a Gradebook. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canAssignGradeSystem()
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 canAssignGradeSystemsToGradebook(Id gradebookId)
PERMISSION_DENIED.
This is intended as a hint to
an application that may opt not to offer assignment operations to
unauthorized users.gradebookId
- the Id
of the Gradebook
false
if mapping is not authorized, true
otherwiseNullArgumentException
- gradebookId
is
null
mandatory
- This method must be implemented. IdList getAssignableGradebookIds(Id gradebookId) throws OperationFailedException
gradebookId
- the Id
of the Gradebook
Ids
NullArgumentException
- gradebookId
is
null
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. IdList getAssignableGradebookIdsForGradeSystem(Id gradebookId, Id gradeSystemId) throws OperationFailedException
gradebookId
- the Id
of the Gradebook
gradeSystemId
- the Id
of the GradeSystem
Ids
NullArgumentException
- gradebookId
or
gradeSystemId
is null
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. void assignGradeSystemToGradebook(Id gradeSystemId, Id gradebookId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
GradeSystem
to a Gradebook.
gradeSystemId
- the Id
of the GradeSystem
gradebookId
- the Id
of the Gradebook
AlreadyExistsException
- gradeSystemId
is already assigned to gradebookId
NotFoundException
- gradeSystemId
or
gradebookId
not foundNullArgumentException
- gradeSystemId
or
gradebookId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void unassignGradeSystemFromGradebook(Id gradeSystemId, Id gradebookId) throws NotFoundException, OperationFailedException, PermissionDeniedException
GradeSystem
from a Gradebook.
gradeSystemId
- the Id
of the GradeSystem
gradebookId
- the Id
of the Gradebook
NotFoundException
- gradeSystemId
or
gradebookId
not found or gradeSystemId
not assigned to gradebookId
NullArgumentException
- gradeSystemId
or
gradebookId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.