public class ExclusiveNameCallback extends NameCallback implements ExtendedCallback
NameCallback
which allows exclusive access to the backing identity to be requested.Constructor and Description |
---|
ExclusiveNameCallback(String prompt,
boolean needsExclusiveAccess,
boolean optional)
Construct a new instance.
|
ExclusiveNameCallback(String prompt,
String defaultName,
boolean needsExclusiveAccess,
boolean optional)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasExclusiveAccess()
Determine if exclusive access to the backing identity was granted.
|
boolean |
isOptional()
Determine if this callback is optional.
|
boolean |
needsExclusiveAccess()
Determine if exclusive access to the backing identity is required.
|
boolean |
needsInformation()
Determine if this callback is requesting information.
|
void |
setExclusiveAccess(boolean exclusiveAccess)
Set whether exclusive access to the backing identity was granted.
|
getDefaultName, getName, getPrompt, setName
public ExclusiveNameCallback(String prompt, boolean needsExclusiveAccess, boolean optional)
prompt
- the text prompt (must not be null
)needsExclusiveAccess
- true
if exclusive access to the backing identity is requiredoptional
- true
if the support for the callback is optionalpublic ExclusiveNameCallback(String prompt, String defaultName, boolean needsExclusiveAccess, boolean optional)
prompt
- the text prompt (must not be null
)defaultName
- the name to be used as the default name displayed with the promptneedsExclusiveAccess
- true
if exclusive access to the backing identity is requiredoptional
- true
if the support for the callback is optionalpublic boolean needsExclusiveAccess()
true
if exclusive access to the backing identity is required, false
otherwisepublic boolean hasExclusiveAccess()
true
if exclusive access to the backing identity was granted, false
otherwisepublic void setExclusiveAccess(boolean exclusiveAccess)
exclusiveAccess
- true
if exclusive access to the backing identity was granted, false
otherwisepublic boolean isOptional()
ExtendedCallback
isOptional
in interface ExtendedCallback
true
if the callback is optional, false
if it is mandatorypublic boolean needsInformation()
ExtendedCallback
needsInformation
in interface ExtendedCallback
true
if the callback is requesting information, false
if it is only providing informationCopyright © 2020 JBoss by Red Hat. All rights reserved.