AttributeInputCallback

Base implementation of a Callback for collection of a single identity object attribute from a user.

Inheritors

Constructors

Link copied to clipboard
constructor(jsonObject: JSONObject, index: Int)

Properties

Link copied to clipboard
protected open var _id: Int
Link copied to clipboard
protected open var content: String
Link copied to clipboard
Return the list of failed policies for this callback.
Link copied to clipboard
private open var name: String
Link copied to clipboard
private open var policies: String
Return the validation policies that should be applied to the input collected by this callback.
Link copied to clipboard
private open var prompt: String
Link copied to clipboard
private open var required: Boolean
Link copied to clipboard
private open var validateOnly: Boolean
Link copied to clipboard
protected val VALUE: String = "value"

Functions

Link copied to clipboard
open fun get_id(): Int
Get the _id received from server
Link copied to clipboard
open fun getContent(): String
Get the callback content
Link copied to clipboard
protected open fun getContentAsJson(): JSONObject
Link copied to clipboard
open fun getInputValue(): Any
Get the first value for input
open fun getInputValue(index: Int): Any
Get the value for input
Link copied to clipboard
protected open fun getName(jsonObject: JSONObject): String
Link copied to clipboard
Link copied to clipboard
abstract fun getPrompt(): String
Link copied to clipboard
abstract fun getType(): String
Return the type of the Callback, the type name should align with the Callback type returned from AM
Link copied to clipboard
protected open fun setAttribute(name: String, value: Any)
Link copied to clipboard
protected open fun setContent(jsonObject: JSONObject)
Sets the value of the Callback
Link copied to clipboard
open fun setValidateOnly(validateOnly: Boolean)
Link copied to clipboard
protected open fun setValue(value: Any)
Set the first value for input
protected open fun setValue(value: Any, index: Int)
Set the value for the input.