Class UserResponseInteraction
- java.lang.Object
-
- com.sun.identity.install.tools.configurator.BaseInteraction
-
- com.sun.identity.install.tools.configurator.UserResponseInteraction
-
- Direct Known Subclasses:
DisplaySummaryHandler,TaskInteraction
public abstract class UserResponseInteraction extends BaseInteraction
-
-
Constructor Summary
Constructors Constructor Description UserResponseInteraction()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected InteractionResultStatusconfirmOnExitStatus(InteractionResultStatus status, IStateAccess state)voiddisplayMessages()StringgetPromptValue(IStateAccess state)Method that needs to be implemented by the sub-classes to return a prompt value (default value) that needs to be displayed for the user to input data.protected abstract MapgetResultStatusMap()Method that needs to be implemented by the sub-classes to intialize the result status Map.InteractionResultStatusinteract(IStateAccess state)-
Methods inherited from class com.sun.identity.install.tools.configurator.BaseInteraction
displayOptionsHelp, displayPromptMessage, getDisplayMessages, getPromptMessage, getUserOptions
-
-
-
-
Method Detail
-
getResultStatusMap
protected abstract Map getResultStatusMap()
Method that needs to be implemented by the sub-classes to intialize the result status Map. The map should be constructed with key = display item of a UserOption with value of InteractionResultStatus object that corresponds to that UserOption.- Returns:
- a Map constructed with
.
-
interact
public InteractionResultStatus interact(IStateAccess state) throws InstallException
- Throws:
InstallException
-
displayMessages
public void displayMessages()
- Overrides:
displayMessagesin classBaseInteraction
-
confirmOnExitStatus
protected InteractionResultStatus confirmOnExitStatus(InteractionResultStatus status, IStateAccess state) throws InstallException
- Throws:
InstallException
-
getPromptValue
public String getPromptValue(IStateAccess state) throws InstallException
Description copied from class:BaseInteractionMethod that needs to be implemented by the sub-classes to return a prompt value (default value) that needs to be displayed for the user to input data. If the prompt value other than null is returned then the prompt message will be some thing as in Example shown below: Enter the Server Port [8080]:- Specified by:
getPromptValuein classBaseInteraction- Parameters:
state- IStateAccess- Returns:
- a String containing the default value or null if no value is present.
- Throws:
InstallException- TODO
-
-