Package org.syncany.operations.daemon
Class EventUserInteractionListener
- java.lang.Object
-
- org.syncany.operations.daemon.EventUserInteractionListener
-
- All Implemented Interfaces:
UserInteractionListener
public class EventUserInteractionListener extends java.lang.Object implements UserInteractionListener
This implementation of aUserInteractionListeneruses theLocalEventBusto broadcast interaction requests to subscribers and waits synchronously for a corresponding event response. All methods wait until the response event arrives by sending the current thread to sleep viaObject.wait(), and waking it up viaObject.notify().- See Also:
UserInteractionListener
-
-
Constructor Summary
Constructors Constructor Description EventUserInteractionListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonConfirmUserInteractionExternalManagementRequest(ConfirmUserInteractionExternalEventResponse response)voidonGetPasswordUserInteractionExternalManagementRequest(GetPasswordUserInteractionExternalEventResponse response)booleanonUserConfirm(java.lang.String header, java.lang.String message, java.lang.String question)java.lang.StringonUserNewPassword()java.lang.StringonUserPassword(java.lang.String header, java.lang.String message)
-
-
-
Constructor Detail
-
EventUserInteractionListener
public EventUserInteractionListener()
-
-
Method Detail
-
onUserConfirm
public boolean onUserConfirm(java.lang.String header, java.lang.String message, java.lang.String question)
- Specified by:
onUserConfirmin interfaceUserInteractionListener
-
onUserPassword
public java.lang.String onUserPassword(java.lang.String header, java.lang.String message)
- Specified by:
onUserPasswordin interfaceUserInteractionListener
-
onUserNewPassword
public java.lang.String onUserNewPassword()
- Specified by:
onUserNewPasswordin interfaceUserInteractionListener
-
onConfirmUserInteractionExternalManagementRequest
public void onConfirmUserInteractionExternalManagementRequest(ConfirmUserInteractionExternalEventResponse response)
-
onGetPasswordUserInteractionExternalManagementRequest
public void onGetPasswordUserInteractionExternalManagementRequest(GetPasswordUserInteractionExternalEventResponse response)
-
-