public class InstallInteraction extends UserDataInteraction implements InteractionConstants
LOC_IN_ERR_FAILED_TO_CREATE_INTER, LOC_IN_ERR_INTERACTION_RUN, LOC_IN_ERR_INVALID_USER_INPUT, LOC_IN_ERR_SILENT_INST_FAILED, LOC_IN_MESS_SUMMARY_DESC_FORMAT, LOC_IN_MSG_OPTION_BACK, LOC_IN_MSG_OPTION_CLR_DEF, LOC_IN_MSG_OPTION_EXIT, LOC_IN_MSG_OPTION_HELP, LOC_IN_WRN_INVALID_USER_INPUT, LOC_VA_WRN_VAL_INSTALL_LOG, LOC_VA_WRN_VAL_MESSAGE, STR_IN_COLON, STR_IN_DESCRIPTION_SUFFIX, STR_IN_EMPTY_STRING, STR_IN_ERROR_SUFFIX, STR_IN_HELP_SUFFIX, STR_IN_INSTALL_INTER_TYPE, STR_IN_MSG_OPTION_BACK, STR_IN_MSG_OPTION_CLR_DEF, STR_IN_MSG_OPTION_EXIT, STR_IN_MSG_OPTION_HELP, STR_IN_PROMPT_SUFFIX, STR_IN_SUMMARY_DESCRIPTION_SUFFIX, STR_IN_WARNING_SUFFIX
Constructor and Description |
---|
InstallInteraction(InteractionInfo info) |
Modifier and Type | Method and Description |
---|---|
String |
getDefaultValue(IStateAccess state) |
ArrayList |
getDisplayMessages()
Method that needs to be implemented by the sub-classes to return
the Localized Messages that need to be displayed as part of the
interaction.
|
LocalizedMessage |
getHelp() |
LocalizedMessage |
getPromptMessage(IStateAccess state)
Method that needs to be implemented by the sub-classes to return the
prompt message that needs to be displayed for the user to input data.
|
String |
getPromptValue(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.
|
BaseOptions |
getUserOptions(IStateAccess state)
Method that needs to be implemented by the sub-classes to return
the ResponseOption's and return the appropriate BaseOptions. * viz.,
SingleLineOptions & MutliLineOptions.
|
InteractionResult |
interact(IStateAccess state)
Method that interacts with user in interactive mode.
|
InteractionResult |
processData(String userInput,
IStateAccess state)
An abstract method to be implemented by child class to process user data
for interactive input
|
InteractionResult |
processOption(UserOptionItem option,
IStateAccess state)
abstract method to be implemented by child class to process user options
for interactive input
|
void |
setIsFirstFlag(boolean isFirst) |
clearValueInState, confirmOnExitStatus, getDefaultValueFinderInfo, getDescription, getError, getInteractionInfo, getKey, getMessage, getNormalizedValue, getPromptSuffix, getSummaryDesc, getSummaryDescription, getWarning, interactSilent, isFirst, isPersistent, preProcessSilentInput, preProcessUserInput, processDefaultValFromAllSources, processDefaultValFromStateOnly, processValidators, setInteractionInfo
displayMessages, displayOptionsHelp, displayPromptMessage
public InstallInteraction(InteractionInfo info) throws InstallException
InstallException
public InteractionResult interact(IStateAccess state) throws InstallException
UserDataInteraction
interact
in class UserDataInteraction
state
- IStateAccessInstallException
public InteractionResult processData(String userInput, IStateAccess state) throws InstallException
UserDataInteraction
processData
in class UserDataInteraction
state
- IStateAccess stateInstallException
public InteractionResult processOption(UserOptionItem option, IStateAccess state) throws InstallException
UserDataInteraction
processOption
in class UserDataInteraction
state
- IStateAccess stateInstallException
public ArrayList getDisplayMessages()
BaseInteraction
getDisplayMessages
in class BaseInteraction
public LocalizedMessage getHelp()
getHelp
in class UserDataInteraction
public BaseOptions getUserOptions(IStateAccess state) throws InstallException
BaseInteraction
getUserOptions
in class BaseInteraction
state
- IStateAccessInstallException
- if an error occurred while getting the user
optionspublic LocalizedMessage getPromptMessage(IStateAccess state)
BaseInteraction
getPromptMessage
in class BaseInteraction
state
- IStateAccesspublic String getPromptValue(IStateAccess state) throws InstallException
BaseInteraction
getPromptValue
in class BaseInteraction
state
- IStateAccessInstallException
- TODOpublic void setIsFirstFlag(boolean isFirst)
setIsFirstFlag
in class UserDataInteraction
public String getDefaultValue(IStateAccess state) throws InstallException
InstallException
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.