public interface GradebookColumnGradebookAssignmentSession extends OsidSession
This session provides methods to re-assign gradebook columns to
Gradebooks.
A GradebookColumn
may map to multiple
Gradebooks
and removing the last reference to a
GradebookColumn
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 GradebookColumn
to
another Gradebook
is not a copy operation (eg: does not
change its Id
).
Modifier and Type | Method and Description |
---|---|
void |
assignGradebookColumnToGradebook(Id gradebookColumnId,
Id gradebookId)
Adds an existing
GradebookColumn to a Gradebook. |
boolean |
canAssignGradebookColumns()
Tests if this user can alter gradebook column/gradebook mappings.
|
boolean |
canAssignGradebookColumnsToGradebook(Id gradebookId)
Tests if this user can alter gradebook column/gradebook mappings.
|
IdList |
getAssignableGradebookIds(Id gradebookId)
Gets a list of gradebook
Ids including and under the
given gradebook node in which any gradebook column can be assigned. |
IdList |
getAssignableGradebookIdsForGradebookColumn(Id gradebookId,
Id gradebookColumnId)
Gets a list of gradebooks including and under the given gradebook node
in which a specific gradebook column can be assigned.
|
void |
unassignGradebookColumnFromGradebook(Id gradebookColumnId,
Id gradebookId)
Removes a
GradebookColumn from a Gradebook. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canAssignGradebookColumns()
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 canAssignGradebookColumnsToGradebook(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
Ids
including and under the
given gradebook node in which any gradebook column can be assigned.gradebookId
- the Id
of the Gradebook
Ids
NullArgumentException
- gradebookId
is
null
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. IdList getAssignableGradebookIdsForGradebookColumn(Id gradebookId, Id gradebookColumnId) throws OperationFailedException
gradebookId
- the Id
of the Gradebook
gradebookColumnId
- the Id
of the
GradebokColumn
Ids
NullArgumentException
- gradebookId
or
gradebookColumnId
is null
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. void assignGradebookColumnToGradebook(Id gradebookColumnId, Id gradebookId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
GradebookColumn
to a Gradebook.
gradebookColumnId
- the Id
of the
GradebookColumn
gradebookId
- the Id
of the Gradebook
AlreadyExistsException
- gradebookColumnId
is already assigned to gradebookId
NotFoundException
- gradebookColumnId
or
gradebookId
not foundNullArgumentException
- gradebookColumnId
or gradebookId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void unassignGradebookColumnFromGradebook(Id gradebookColumnId, Id gradebookId) throws NotFoundException, OperationFailedException, PermissionDeniedException
GradebookColumn
from a Gradebook.
gradebookColumnId
- the Id
of the
GradebookColumn
gradebookId
- the Id
of the Gradebook
NotFoundException
- gradebookColumnId
or
gradebookId
not found or
gradebookColumnId
not assigned to gradebookId
NullArgumentException
- gradebookColumnId
or gradebookId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.