public interface AccountExtension
Modifier and Type | Interface and Description |
---|---|
static class |
AccountExtension.StandardFields
Standard account edit dialog fields
|
Modifier and Type | Method and Description |
---|---|
java.util.function.Consumer<java.util.Map<InputDialog.Field,java.lang.Object>> |
buildUserFindDialog(InputDialog dialog,
IFindAccountScreen findAccount)
Builds the Find User Account dialog and returns the dialog action handler.
|
void |
createFields(boolean edit,
InputDialog inputDialog,
java.util.Map<AccountExtension.StandardFields,InputDialog.Field> standardFields,
InputDialog.Item[] defaultItems,
java.util.function.Consumer<java.util.List<InputDialog.Item>> doneHandler)
Called by the account edit logic to allow the extension to create its own fields to be
present in the account edit dialog.
|
java.io.Serializable |
getExtData()
Returns the object representing the extended account data being edited in the input dialog.
|
void |
onDialogBuilt(InputDialog inputDialog,
java.util.function.Consumer<java.lang.Boolean> doneHandler)
Called by the account editing logic to signal to the extension implementation that the
input dialog has been built.
|
void createFields(boolean edit, InputDialog inputDialog, java.util.Map<AccountExtension.StandardFields,InputDialog.Field> standardFields, InputDialog.Item[] defaultItems, java.util.function.Consumer<java.util.List<InputDialog.Item>> doneHandler)
edit
- If true
the account edit dialog edits an existing account object,
false
a new account object is being edited.inputDialog
- Reference to the input dialog object.standardFields
- The map of standard fields present in the input dialog.defaultItems
- All input dialog items built by the core account editing logic.doneHandler
- The callback the extension must call with the new set of input dialog items.void onDialogBuilt(InputDialog inputDialog, java.util.function.Consumer<java.lang.Boolean> doneHandler)
inputDialog
- Reference to the input dialog object.doneHandler
- Callback signaling success (true
) or failure (false
).java.io.Serializable getExtData()
Serializable
reference.java.util.function.Consumer<java.util.Map<InputDialog.Field,java.lang.Object>> buildUserFindDialog(InputDialog dialog, IFindAccountScreen findAccount)
dialog
- The template dialog to create the Find User Account dialogfindAccount
- The implementation of the find user account use case