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

PropertyReturnsDescription
afterFileFnStringName of the JS function invoked to implement afterFile, or null if that hook was not configured on the builder.
afterRowFnStringName of the JS function invoked to implement afterRow, or null if that hook was not configured on the builder.
descriptionStringDescription of this action, as set on the builder with description(String).
fieldsList<ExtraField>Configuration fields shown when an admin adds this action to a table uploader, as set on the builder.
idStringUnique 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.
processRowFnStringName of the JS function invoked to implement processRow, or null if that hook was not configured on the builder.
titleStringDisplay title shown to an admin when choosing this action for a table uploader, as set on the builder with title(String).
transformFileFnStringName of the JS function invoked to implement transformFile, or null if that hook was not configured on the builder.
transformRowFnStringName of the JS function invoked to implement transformRow, or null if that hook was not configured on the builder.
validateRowFnStringName 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.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.