public interface InputSystemAssignmentSession extends OsidSession
This session provides methods to re-assign Inputs
to
System
mappings. A Input
may appear in
multiple System
objects and removing the last reference to
a Input
is the equivalent of deleting it. Each
System
may have its own authorizations governing who is allowed to
operate on it.
Adding a reference of a Input
to another System
is not a copy operation (eg: does not change its Id
).
Modifier and Type | Method and Description |
---|---|
void |
assignInputToSystem(Id inputId,
Id systemId)
Adds an existing
Input to a System. |
boolean |
canAssignInputs()
Tests if this user can alter input/system mappings.
|
boolean |
canAssignInputsToSystem(Id systemId)
Tests if this user can alter input/system mappings.
|
IdList |
getAssignableSystemIds(Id systemId)
Gets a list of systems including and under the given system node in
which any input can be assigned.
|
IdList |
getAssignableSystemIdsForInput(Id systemId,
Id inputId)
Gets a list of systems including and under the given system node in
which a specific input can be assigned.
|
void |
reassignInputToSystem(Id inputId,
Id fromSystemId,
Id toSystemId)
Moves an
Input from one System to
another. |
void |
unassignInputFromSystem(Id inputId,
Id systemId)
Removes a
Input from a System. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canAssignInputs()
PERMISSION_DENIED.
This is intended as a hint to
an application that may opt not to offer assignment operations to
unauthorized users. false
if input assignment is not authorized,
true
otherwisemandatory
- This method must be implemented. boolean canAssignInputsToSystem(Id systemId)
PERMISSION_DENIED.
This is intended as a hint to
an application that may opt not to offer assignment operations to
unauthorized users.systemId
- the Id
of the System
false
if input assignment is not authorized,
true
otherwiseNullArgumentException
- systemId
is
null
mandatory
- This method must be implemented. IdList getAssignableSystemIds(Id systemId) throws OperationFailedException
systemId
- the Id
of the System
Ids
NullArgumentException
- systemId
is
null
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. IdList getAssignableSystemIdsForInput(Id systemId, Id inputId) throws OperationFailedException
systemId
- the Id
of the System
inputId
- the Id
of the Input
Ids
NullArgumentException
- systemId
or
inputId
is null
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. void assignInputToSystem(Id inputId, Id systemId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
Input
to a System.
inputId
- the Id
of the Input
systemId
- the Id
of the System
AlreadyExistsException
- inputId
is
already assigned to systemId
NotFoundException
- inputId
or
systemId
not foundNullArgumentException
- inputId
or
systemId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void unassignInputFromSystem(Id inputId, Id systemId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Input
from a System.
inputId
- the Id
of the Input
systemId
- the Id
of the System
NotFoundException
- inputId
or
systemId
not found or inputId
not
assigned to systemId
NullArgumentException
- inputId
or
systemId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void reassignInputToSystem(Id inputId, Id fromSystemId, Id toSystemId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Input
from one System
to
another. Mappings to other Systems
are unaffected.inputId
- the Id
of the Input
fromSystemId
- the Id
of the current
System
toSystemId
- the Id
of the destination
System
NotFoundException
- inputId, fromSystemId,
or toSystemId
not found or
inputId
not mapped to fromSystemId
NullArgumentException
- inputId, fromSystemId,
or toSystemId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.