public interface DeviceEnablerRuleApplicationSession extends OsidSession
This session provides methods to apply DeviceEnablers
to
Devices.
A Device
with multiple
DeviceEnablers
means any positive rule evaluation across the
enablers result in an active Device.
Modifier and Type | Method and Description |
---|---|
void |
assignDeviceEnablerToDevice(Id deviceEnablerId,
Id deviceId)
Adds an existing
DeviceEnabler to a Device. |
boolean |
canAssignDeviceEnablers()
Tests if this user can alter device enabler/device mappings.
|
boolean |
canSequenceDeviceEnablers()
Tests if this user can order
DeviceEnablers. |
System |
getSystem()
Gets the
System associated with this session. |
Id |
getSystemId()
Gets the
System Id associated with this
session. |
void |
moveDeviceEnablerAhead(Id deviceEnablerId,
Id deviceId,
Id referenceId)
Reorders device enablers for a device by moving the specified device
enabler in front of a reference device enabler.
|
void |
moveDeviceEnablerBehind(Id deviceEnablerId,
Id deviceId,
Id referenceId)
Reorders device enablers for a device by moving the specified device
enabler behind a reference device enabler.
|
void |
orderDeviceEnablers(Id[] deviceEnablerIds,
Id deviceId)
Reorders a set of device enablers for a device.
|
void |
unassignDeviceEnablerFromDevice(Id deviceEnablerId,
Id deviceId)
Removes a
DeviceEnabler from a Device. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getSystemId()
System
Id
associated with this
session. System Id
associated with this sessionmandatory
- This method must be implemented. System getSystem() throws OperationFailedException, PermissionDeniedException
System
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. 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. void assignDeviceEnablerToDevice(Id deviceEnablerId, Id deviceId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
DeviceEnabler
to a Device.
deviceEnablerId
- the Id
of the
DeviceEnabler
deviceId
- the Id
of the Device
AlreadyExistsException
- deviceEnablerId
already applied to deviceId
NotFoundException
- deviceEnablerId
or
deviceId
not foundNullArgumentException
- deviceEnablerId
or deviceId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void unassignDeviceEnablerFromDevice(Id deviceEnablerId, Id deviceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
DeviceEnabler
from a Device.
deviceEnablerId
- the Id
of the
DeviceEnabler
deviceId
- the Id
of the Device
NotFoundException
- deviceEnablerId
or
deviceId
not found or deviceEnablerId
not applied to deviceId
NullArgumentException
- deviceEnablerId
or deviceId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canSequenceDeviceEnablers()
DeviceEnablers.
A return
of true does not guarantee successful authorization. A return of false
indicates that it is known sequencing operations will result in a
PERMISSION_DENIED.
This is intended as a hint to an
application that may opt not to offer sequencing operations to an
unauthorized user. false
if DeviceEnabler
ordering
is not authorized, true
otherwisemandatory
- This method must be implemented. void moveDeviceEnablerAhead(Id deviceEnablerId, Id deviceId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
deviceEnablerId
- the Id
of a
DeviceEnabler
deviceId
- the Id
of a Device
referenceId
- the reference device enabler Id
NotFoundException
- deviceEnablerId, deviceId,
or referenceId
not found or,
deviceEnablerId
or referenceId
not
related to deviceId
NullArgumentException
- deviceEnablerId,
deviceId,
or referenceId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void moveDeviceEnablerBehind(Id deviceEnablerId, Id deviceId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
deviceEnablerId
- the Id
of a
DeviceEnabler
deviceId
- the Id
of a Device
referenceId
- the reference device enabler Id
NotFoundException
- deviceEnablerId, deviceId,
or referenceId
not found or,
deviceEnablerId
or referenceId
not
related to deviceId
NullArgumentException
- deviceEnablerId,
deviceId,
or referenceId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void orderDeviceEnablers(Id[] deviceEnablerIds, Id deviceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
deviceEnablerIds
- the Ids
for a set of
DeviceEnablers
deviceId
- the Id
of a Device
NotFoundException
- deviceConstraienrId
not found or, a deviceEnablerId
not related to
deviceId
NullArgumentException
- deviceEnablerIds
or deviceId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.