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, setNamepublic 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()
ExtendedCallbackisOptional in interface ExtendedCallbacktrue if the callback is optional, false if it is mandatorypublic boolean needsInformation()
ExtendedCallbackneedsInformation in interface ExtendedCallbacktrue if the callback is requesting information, false if it is only providing informationCopyright © 2017 JBoss by Red Hat. All rights reserved.