Class ApiKeysControl extends BaseControl

This class is the ApiKeys control of the ApiKeysDialog

Source : file dialogs/apiKeysDialog/ApiKeysControl.js at line 36

Constructor

new ApiKeysControl ( )

The constructor

Source : file dialogs/apiKeysDialog/ApiKeysControl.js at line 56

Public getters and setters

readonly get apiKeys : Array of ApiKey

Get an array with the ApiKeys in the control

Source : file dialogs/apiKeysDialog/ApiKeysControl.js at line 161

readonly get apiKeysJSON : String

Get a JSON string with the ApiKeys in the control

Source : file dialogs/apiKeysDialog/ApiKeysControl.js at line 174

Public methods

addApiKeys ( apiKeys )

Add an array of ApiKeys to the control.

Source : file dialogs/apiKeysDialog/ApiKeysControl.js at line 110

Parameters

Name Type Description
apiKeys Array of ApiKey

An array with the ApiKeys to add

deleteApiKey ( rowObjId )

Delete a row with an ApiKey in the control

Source : file dialogs/apiKeysDialog/ApiKeysControl.js at line 137

Parameters

Name Type Description
rowObjId Number

The objId of the row to delete

destructor ( )

The destructor. Remove event listener and clean the map

Source : file dialogs/apiKeysDialog/ApiKeysControl.js at line 66

haveEmptyOrDuplicateValues ( )

Verify that the control don't have empty provider name or provider key Verify that the control don't have duplicate provider name

Source : file dialogs/apiKeysDialog/ApiKeysControl.js at line 81

Returns

An object with rhe validation results
Type : Object

newApiKey ( )

Add a new ApiKey to the control.

Source : file dialogs/apiKeysDialog/ApiKeysControl.js at line 125

refreshApiKeys ( )

Remove all elements from the #apiKeysControl and add the existing ApiKeys

Source : file dialogs/apiKeysDialog/ApiKeysControl.js at line 147

Private properties

#apiKeysControlRowsMap : Map

A map to store the rows of the ApiKeyControl object

Source : file dialogs/apiKeysDialog/ApiKeysControl.js at line 43

#deleteApiKeyButtonClickEL : DeleteApiKeyButtonClickEL

The DeleteApiKeyButtonClickEL for the delete buttons

Source : file dialogs/apiKeysDialog/ApiKeysControl.js at line 50