public interface DeviceEnablerSystemAssignmentSession extends OsidSession
This session provides methods to re-assign DeviceEnabler
to System
mappings. A DeviceEnabler
may
appear in multiple System
objects and removing the last
reference to a DeviceEnabler
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 DeviceEnabler
to another
System
is not a copy operation (eg: does not change its Id
).
Modifier and Type | Method and Description |
---|---|
void |
assignDeviceEnablerToSystem(Id deviceEnablerId,
Id systemId)
Adds an existing
DeviceEnabler to a System. |
boolean |
canAssignDeviceEnablers()
Tests if this user can alter device enabler/system mappings.
|
boolean |
canAssignDeviceEnablersToSystem(Id systemId)
Tests if this user can alter device enabler/system mappings.
|
IdList |
getAssignableSystemIds(Id systemId)
Gets a list of systems including and under the given system node in
which any device enabler can be assigned.
|
IdList |
getAssignableSystemIdsForDeviceEnabler(Id systemId,
Id deviceEnablerId)
Gets a list of systems including and under the given system node in
which a specific device enabler can be assigned.
|
void |
reassignDeviceEnablerToSystem(Id deviceEnablerId,
Id fromSystemId,
Id toSystemId)
Moves a
DeviceEnabler from one System to
another. |
void |
unassignDeviceEnablerFromSystem(Id deviceEnablerId,
Id systemId)
Removes a
DeviceEnabler from a System. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canAssignDeviceEnablers()
PERMISSION_DENIED.
This is intended as a hint to
an application that may opt not to offer lookup operations to
unauthorized users. false
if mapping is not authorized, true
otherwisemandatory
- This method must be implemented. boolean canAssignDeviceEnablersToSystem(Id systemId)
PERMISSION_DENIED.
This is intended as a hint to
an application that may opt not to offer lookup operations to
unauthorized users.systemId
- the Id
of the System
false
if mapping 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 getAssignableSystemIdsForDeviceEnabler(Id systemId, Id deviceEnablerId) throws OperationFailedException
systemId
- the Id
of the System
deviceEnablerId
- the Id
of the
DeviceEnabler
Ids
NullArgumentException
- systemId
or
deviceEnablerId
is null
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. void assignDeviceEnablerToSystem(Id deviceEnablerId, Id systemId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
DeviceEnabler
to a System.
deviceEnablerId
- the Id
of the
DeviceEnabler
systemId
- the Id
of the System
AlreadyExistsException
- deviceEnablerId
already assigned to systemId
NotFoundException
- deviceEnablerId
or
systemId
not foundNullArgumentException
- deviceEnablerId
or systemId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void unassignDeviceEnablerFromSystem(Id deviceEnablerId, Id systemId) throws NotFoundException, OperationFailedException, PermissionDeniedException
DeviceEnabler
from a System.
deviceEnablerId
- the Id
of the
DeviceEnabler
systemId
- the Id
of the System
NotFoundException
- deviceEnablerId
or
systemId
not found or deviceEnablerId
already assigned to systemId
NullArgumentException
- deviceEnablerId
or systemId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void reassignDeviceEnablerToSystem(Id deviceEnablerId, Id fromSystemId, Id toSystemId) throws NotFoundException, OperationFailedException, PermissionDeniedException
DeviceEnabler
from one System
to
another. Mappings to other Systems
are unaffected.deviceEnablerId
- the Id
of the
DeviceEnabler
fromSystemId
- the Id
of the current
System
toSystemId
- the Id
of the destination
System
NotFoundException
- deviceEnablerId,
fromSystemId,
or toSystemId
not found
or deviceEnablerId
not mapped to
fromSystemId
NullArgumentException
- deviceEnablerId,
fromSystemId,
or toSystemrId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.