public class Device.EventDispatcher
extends java.lang.Object
Constructor and Description |
---|
Device.EventDispatcher() |
Modifier and Type | Method and Description |
---|---|
void |
eventAuthenticationFailure(AuthenticationModule authModule,
User user)
Dispatched when a authentication failed (the user who tried to authenticate has not the right permissions).
|
void |
eventAuthenticationSuccess(AuthenticationModule authModule,
User user)
Dispatched when an authentication is successful.
|
void |
eventBadgeReaderConnected(boolean isMaster)
Dispatched when a badge reader is successfully connected.
|
void |
eventBadgeReaderDisconnected(boolean isMaster)
Dispatched when a badge reader is disconnected.
|
void |
eventBadgeScanned(java.lang.String badgeNumber)
Dispatched when a badge has been scanned.
|
void |
eventFingerprintEnrollmentSample(byte sampleNumber)
Dispatched during a fingerprint enrollment, each time a sample (out of the 4 required) is acquired.
|
void |
eventFingerTouched(boolean isMaster)
Dispatched when a finger is detected.
|
void |
eventTemperatureMeasure(double value)
Dispatched when a new temperature measure has been made.
|
void |
eventWeightMeasure(ScaleMeasure measure)
Dispatched when a new weight measure is available.
|
public void eventFingerTouched(boolean isMaster)
isMaster
- If true, the event comes from the master reader. Otherwise, the slave.public void eventFingerprintEnrollmentSample(byte sampleNumber)
sampleNumber
- Number of the sample.public void eventBadgeReaderConnected(boolean isMaster)
isMaster
- If true, the event comes from the master reader. Otherwise, the slave.public void eventBadgeReaderDisconnected(boolean isMaster)
isMaster
- If true, the event comes from the master reader. Otherwise, the slave.public void eventBadgeScanned(java.lang.String badgeNumber)
badgeNumber
- Badge number just scanned.public void eventAuthenticationSuccess(AuthenticationModule authModule, User user)
The context is said 'valid' when:
authModule
- Authentication module.user
- Authenticated user.public void eventAuthenticationFailure(AuthenticationModule authModule, User user)
authModule
- Authentication module.user
- Authenticating user.public void eventTemperatureMeasure(double value)
value
- Value measured by the probe.public void eventWeightMeasure(ScaleMeasure measure)
measure
- Measure given by the scale.