Interface SignalEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, 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 .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignSignalEnablerToSignal(Id signalEnablerId, Id signalId) Adds an existingSignalEnablerto aSignal.booleanTests if this user can alter signal enabler/signal mappings.booleanTests if this user can orderSignalEnablers.getMap()Gets theMapassociated with this session.getMapId()Gets theMapIdassociated with this session.voidmoveSignalEnablerAhead(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.voidmoveSignalEnablerBehind(Id signalEnablerId, Id signalId, Id referenceId) Reorders signal enablers for a signal by moving the specified signal enabler behind a reference signal enabler.voidorderSignalEnablers(Id[] signalEnablerIds, Id signalId) Reorders a set of signal enablers for a signal.voidunassignSignalEnablerFromSignal(Id signalEnablerId, Id signalId) Removes aSignalEnablerfrom aSignal.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
getMapId
Id getMapId()Gets theMapIdassociated with this session.- Returns:
- the
Map Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getMap
Gets theMapassociated with this session.- Returns:
- the map
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canAssignSignalEnablers
boolean canAssignSignalEnablers()Tests if this user can alter signal enabler/signal mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping methods in this session will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.- Returns:
falseif mapping is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
assignSignalEnablerToSignal
void assignSignalEnablerToSignal(Id signalEnablerId, Id signalId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingSignalEnablerto aSignal.- Parameters:
signalEnablerId- theIdof theSignalEnablersignalId- theIdof theSignal- Throws:
AlreadyExistsException-signalEnablerIdis already applied tosignalIdNotFoundException-signalEnablerIdorsignalIdnot foundNullArgumentException-signalEnablerIdorsignalIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignSignalEnablerFromSignal
void unassignSignalEnablerFromSignal(Id signalEnablerId, Id signalId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aSignalEnablerfrom aSignal.- Parameters:
signalEnablerId- theIdof theSignalEnablersignalId- theIdof theSignal- Throws:
NotFoundException-signalEnablerIdorsignalIdnot found orsignalEnablerIdnot applied tosignalIdNullArgumentException-signalEnablerIdorsignalIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceSignalEnablers
boolean canSequenceSignalEnablers()Tests if this user can orderSignalEnablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known sequencing operations will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer sequencing operations to an unauthorized user.- Returns:
falseifSignalEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveSignalEnablerAhead
void moveSignalEnablerAhead(Id signalEnablerId, Id signalId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders signal enablers for a signal by moving the specified signal enabler in front of a reference signal enabler.- Parameters:
signalEnablerId- theIdof aSignalEnablersignalId- theIdof aSignalreferenceId- the reference signal enablerId- Throws:
NotFoundException-signalEnablerId, signalId, orreferenceIdnot found or,signalEnablerIdorreferenceIdnot related tosignalIdNullArgumentException-signalEnablerId, signalId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveSignalEnablerBehind
void moveSignalEnablerBehind(Id signalEnablerId, Id signalId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders signal enablers for a signal by moving the specified signal enabler behind a reference signal enabler.- Parameters:
signalEnablerId- theIdof aSignalEnablersignalId- theIdof aSignalreferenceId- the reference signal enablerId- Throws:
NotFoundException-signalEnablerId, signalId, orreferenceIdnot found or,signalEnablerIdorreferenceIdnot related tosignalIdNullArgumentException-signalEnablerId, signalId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderSignalEnablers
void orderSignalEnablers(Id[] signalEnablerIds, Id signalId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of signal enablers for a signal.- Parameters:
signalEnablerIds- theIdsfor a set ofSignalEnablerssignalId- theIdof aSignal- Throws:
NotFoundException-signalIdnot found or, ansignalEnablerIdnot related tosignalIdNullArgumentException-signalEnabelrIdsorsignalIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-