Table-upload action handler whose lifecycle hooks are implemented in JavaScript rather than Java. Built through JsTableActionHandlerBuilder (exposed to app code as controllerMappings.newTableActionHandlerBuilder()), this lets a Kademi app or library register a fully custom table-upload action without writing any Java. Each configured hook is a JS function name, invoked via ControllerMappingList.executeJs when the corresponding TableActionHandler method runs; a hook left unconfigured falls back to the interface's default (no-op) behaviour.
Implements: TableActionHandler
Properties
| Property | Returns | Description |
|---|---|---|
| afterFileFn | String | Name of the JS function invoked to implement afterFile, or null if that hook was not configured on the builder. |
| afterRowFn | String | Name of the JS function invoked to implement afterRow, or null if that hook was not configured on the builder. |
| description | String | Description of this action, as set on the builder with description(String). |
| fields | List<ExtraField> | Configuration fields shown when an admin adds this action to a table uploader, as set on the builder. |
| id | String | Unique identifier for this action, as set on the builder with id(String). Used to reference the handler when configuring a table uploader's post-processing actions. |
| processRowFn | String | Name of the JS function invoked to implement processRow, or null if that hook was not configured on the builder. |
| title | String | Display title shown to an admin when choosing this action for a table uploader, as set on the builder with title(String). |
| transformFileFn | String | Name of the JS function invoked to implement transformFile, or null if that hook was not configured on the builder. |
| transformRowFn | String | Name of the JS function invoked to implement transformRow, or null if that hook was not configured on the builder. |
| validateRowFn | String | Name of the JS function invoked to implement validateRow, or null if that hook was not configured on the builder. |
Methods
getId() · getTitle() · getDescription() · getFields() · getAfterFileFn() · getAfterRowFn() · getTransformFileFn() · getProcessRowFn() · getTransformRowFn() · getValidateRowFn()
getId()
Returns: String
Unique identifier for this action, as set on the builder with id(String). Used to reference the handler when configuring a table uploader's post-processing actions.
getTitle()
Returns: String
Display title shown to an admin when choosing this action for a table uploader, as set on the builder with title(String).
getDescription()
Returns: String
Description of this action, as set on the builder with description(String).
getFields()
Returns: List<ExtraField>
Configuration fields shown when an admin adds this action to a table uploader, as set on the builder.
getAfterFileFn()
Returns: String
Name of the JS function invoked to implement afterFile, or null if that hook was not configured on the builder.
getAfterRowFn()
Returns: String
Name of the JS function invoked to implement afterRow, or null if that hook was not configured on the builder.
getTransformFileFn()
Returns: String
Name of the JS function invoked to implement transformFile, or null if that hook was not configured on the builder.
getProcessRowFn()
Returns: String
Name of the JS function invoked to implement processRow, or null if that hook was not configured on the builder.
getTransformRowFn()
Returns: String
Name of the JS function invoked to implement transformRow, or null if that hook was not configured on the builder.
getValidateRowFn()
Returns: String
Name of the JS function invoked to implement validateRow, or null if that hook was not configured on the builder.