public interface SignalEnablerRuleApplicationSession extends OsidSession
This session provides methods to apply SignalEnablers
to
Signals.
A Signal
with multiple
SignalEnablers
means any positive rule evaluation across the
enablers result in an enabled Signal.
Modifier and Type | Method and Description |
---|---|
void |
assignSignalEnablerToSignal(Id signalEnablerId,
Id signalId)
Adds an existing
SignalEnabler to a Signal. |
boolean |
canAssignSignalEnablers()
Tests if this user can alter signal enabler/signal mappings.
|
boolean |
canSequenceSignalEnablers()
Tests if this user can order
SignalEnablers. |
Map |
getMap()
Gets the
Map associated with this session. |
Id |
getMapId()
Gets the
Map Id associated with this
session. |
void |
moveSignalEnablerAhead(Id signalEnablerId,
Id signalId,
Id referenceId)
Reorders signal enablers for a signal by moving the specified signal
enabler in front of a reference signal enabler.
|
void |
moveSignalEnablerBehind(Id signalEnablerId,
Id signalId,
Id referenceId)
Reorders signal enablers for a signal by moving the specified signal
enabler behind a reference signal enabler.
|
void |
orderSignalEnablers(Id[] signalEnablerIds,
Id signalId)
Reorders a set of signal enablers for a signal.
|
void |
unassignSignalEnablerFromSignal(Id signalEnablerId,
Id signalId)
Removes a
SignalEnabler from a Signal. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getMapId()
Map
Id
associated with this
session. Map Id
associated with this sessionmandatory
- This method must be implemented. Map getMap() throws OperationFailedException, PermissionDeniedException
Map
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canAssignSignalEnablers()
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 assignSignalEnablerToSignal(Id signalEnablerId, Id signalId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
SignalEnabler
to a Signal.
signalEnablerId
- the Id
of the
SignalEnabler
signalId
- the Id
of the Signal
AlreadyExistsException
- signalEnablerId
is already applied to signalId
NotFoundException
- signalEnablerId
or
signalId
not foundNullArgumentException
- signalEnablerId
or signalId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void unassignSignalEnablerFromSignal(Id signalEnablerId, Id signalId) throws NotFoundException, OperationFailedException, PermissionDeniedException
SignalEnabler
from a Signal.
signalEnablerId
- the Id
of the
SignalEnabler
signalId
- the Id
of the Signal
NotFoundException
- signalEnablerId
or
signalId
not found or signalEnablerId
not applied to signalId
NullArgumentException
- signalEnablerId
or signalId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canSequenceSignalEnablers()
SignalEnablers.
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 SignalEnabler
ordering
is not authorized, true
otherwisemandatory
- This method must be implemented. void moveSignalEnablerAhead(Id signalEnablerId, Id signalId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
signalEnablerId
- the Id
of a
SignalEnabler
signalId
- the Id
of a Signal
referenceId
- the reference signal enabler Id
NotFoundException
- signalEnablerId, signalId,
or referenceId
not found or,
signalEnablerId
or referenceId
not
related to signalId
NullArgumentException
- signalEnablerId,
signalId,
or referenceId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void moveSignalEnablerBehind(Id signalEnablerId, Id signalId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
signalEnablerId
- the Id
of a
SignalEnabler
signalId
- the Id
of a Signal
referenceId
- the reference signal enabler Id
NotFoundException
- signalEnablerId, signalId,
or referenceId
not found or,
signalEnablerId
or referenceId
not
related to signalId
NullArgumentException
- signalEnablerId,
signalId,
or referenceId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void orderSignalEnablers(Id[] signalEnablerIds, Id signalId) throws NotFoundException, OperationFailedException, PermissionDeniedException
signalEnablerIds
- the Ids
for a set of
SignalEnablers
signalId
- the Id
of a Signal
NotFoundException
- signalId
not found
or, an signalEnablerId
not related to
signalId
NullArgumentException
- signalEnabelrIds
or signalId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.