Ajax

App.searchV2. Ajax

Ajax instance

Constructor

new Ajax()

See:

Methods

addNodeToStructureBean(args, arg0, arg1, arg2, arg3, arg4) → {Promise}

Adds a node to the server-side DefaultStructureBean for the given tableBindkey.

Parameters:
Name Type Description
args Array

Array containing [tableBindkey, parentNodeId, relationshipId, objectId, direction].

arg0 string

The bind key of the table.

arg1 string

The ID of the parent node.

arg2 string

The relationship ID used to link the new node.

arg3 string

The ID of the object to be added as a node.

arg4 string

The direction of the relationship (e.g., 'to' or 'from').

Returns:
Type
Promise

addObjectToSearchBasedTable(args, arg0, arg1) → {Promise}

Adds an object to the server-side SearchTableBean for the given tableBindkey.

Parameters:
Name Type Description
args Array

Array containing [objectId, tableBindkey].

arg0 string

The ID of the object to be added.

arg1 string

The bind key of the table.

Returns:
Type
Promise

autocomplete(query, handlerSettings) → {*}

Parameters:
Name Type Description
query
handlerSettings
Returns:
Type
*

deleteSearch(searchConfigId, searchId) → {*}

Deletes a saved user search

Parameters:
Name Type Description
searchConfigId string

Id of search config

searchId string

Id of search to be deleted

Returns:
Type
*

expand(node, handlerSettings) → {*}

Parameters:
Name Type Description
node

Node which should be expanded

handlerSettings

Tree Handler settings

Returns:
Type
*

federatedSearch(search) → {*}

Parameters:
Name Type Description
search
Returns:
Type
*

getAutocompleteToken() → {CancelToken|*}

Returns:
Type
CancelToken | *

getConfig(configRef) → {*}

Parameters:
Name Type Description
configRef
Returns:
Type
*

getConfigQuery(configRef) → {string}

Parameters:
Name Type Description
configRef
Returns:
Type
string

getExpandToken() → {CancelToken|*}

Returns:
Type
CancelToken | *

getSearchToken() → {CancelToken|*}

Returns:
Type
CancelToken | *

objectsToData(…args) → {*}

Parameters:
Name Type Attributes Description
args <repeatable>
Returns:
Type
*

removeObjectFromSearchBasedTable(args, arg0, arg1) → {Promise}

Removes an object from the server-side SearchTableBean for the given tableBindkey.

Parameters:
Name Type Description
args Array

Array containing [objectId, tableBindkey].

arg0 string

The ID of the object to be removed.

arg1 string

The bind key of the table.

Returns:
Type
Promise

resetRefineCriteria()

Reset refine criteria of federated search

saveSearch(searchConfigId, search) → {*}

Saves user search by calling saveSearch ajax service

Parameters:
Name Type Description
searchConfigId string

Search config against which search will be saved

search Object

User search to be saved

Returns:
Type
*

saveSearchAsDatasetService(data) → {Object}

Calls saveSearchAsDatasetService ajax service

Parameters:
Name Type Description
data Object

payload to be sent over to ajax call

Returns:
  • Promise object of ajax call
Type
Object

saveSearchService(method, data) → {Object}

Calls saveSearch ajax service

Parameters:
Name Type Description
method string

Name of ajax service method

data Object

payload to be sent over to ajax call

Returns:
  • Promise object of ajax call
Type
Object
Parameters:
Name Type Default Description
queryData
serviceMethod search
Returns:
Type
*

searchAndLoadTable(queryData) → {*}

Parameters:
Name Type Description
queryData
Returns:
Type
*