public interface UserInteractionService
| Modifier and Type | Method and Description |
|---|---|
boolean |
confirmAction(String desc,
String messageToUser,
boolean defaultConfirmation)
Requests yes/no confirmation for an action given its description.
|
boolean confirmAction(String desc, String messageToUser, boolean defaultConfirmation) throws IOException
desc - a short description of the action to confirm for logging purposes.messageToUser - the message that should be shown to the user for requesting confirmation.defaultConfirmation - false, if default confirmation answer should be No, true otherwise.IOException - on any I/O related exception like no Console associated to the JVM.Copyright © 2022 MuleSoft, Inc.. All rights reserved.