Skip to content

arlas-wui-toolkit / Exports / ArlasConfigurationUpdaterService

Class: ArlasConfigurationUpdaterService

Table of contents

Constructors

Methods

Constructors

constructor

new ArlasConfigurationUpdaterService()

Defined in

projects/arlas-toolkit/src/lib/services/configuration-updater/configurationUpdater.service.ts:26

Methods

addCollectionIfMissing

addCollectionIfMissing(data): any

Add the default collection as the contributor's collection if not present

Parameters

Name Type Description
data any configuration object

Returns

any

configuration object

Defined in

projects/arlas-toolkit/src/lib/services/configuration-updater/configurationUpdater.service.ts:204


getContributorsToRemove

getContributorsToRemove(data, availableFieldsPerCollection): Set<string>

Parses the configuration and returns a list of contributors that should be removed from the config.

Parameters

Name Type Description
data any configuration object
availableFieldsPerCollection Map<string, Set<string>> list of fields available for exploration for each collection.

Returns

Set<string>

configuration object

Defined in

projects/arlas-toolkit/src/lib/services/configuration-updater/configurationUpdater.service.ts:35


removeContributors

removeContributors(data, contributorsToRemove): any

Removes contributors that have non-available fields

Parameters

Name Type Description
data any configuration objects
contributorsToRemove Set<string> list of contributors identifiers to remove from the configuration

Returns

any

configuration object

Defined in

projects/arlas-toolkit/src/lib/services/configuration-updater/configurationUpdater.service.ts:149


removeTimelines

removeTimelines(data, contributorsToRemove): any

Removes timelines that are associated with removed timeline contributors

Parameters

Name Type
data any
contributorsToRemove Set<string>

Returns

any

configuration object

Defined in

projects/arlas-toolkit/src/lib/services/configuration-updater/configurationUpdater.service.ts:179


removeWidgets

removeWidgets(data, contributorsToRemove): any

Removes widgets that are associated with removed contributors

Parameters

Name Type
data any
contributorsToRemove Set<string>

Returns

any

configuration object

Defined in

projects/arlas-toolkit/src/lib/services/configuration-updater/configurationUpdater.service.ts:163


updateChipSearchContributors

updateChipSearchContributors(data, availableFieldsPerCollection): any

Removes the properties -from SearchContributor- that define fields not available for exploration

Parameters

Name Type Description
data any configuration object
availableFieldsPerCollection Map<string, Set<string>> List of available fields for exploration for each collection.

Returns

any

configuration object

Defined in

projects/arlas-toolkit/src/lib/services/configuration-updater/configurationUpdater.service.ts:462


updateContributors

updateContributors(data, availableFieldsPerCollection): any

Removes the properties -from all contributors- including fields that are not available for exploration

Parameters

Name Type Description
data any configuration object
availableFieldsPerCollection Map<string, Set<string>> List of available fields for exploration

Returns

any

configuration object

Defined in

projects/arlas-toolkit/src/lib/services/configuration-updater/configurationUpdater.service.ts:221


updateHistogramContributors

updateHistogramContributors(data, availableFieldsPerCollection): any

Removes the properties -from ResultListContributor- that define fields not available for exploration

Parameters

Name Type Description
data any configuration object
availableFieldsPerCollection Map<string, Set<string>> List of available fields for exploration for each collection.

Returns

any

configuration object

Defined in

projects/arlas-toolkit/src/lib/services/configuration-updater/configurationUpdater.service.ts:365


updateMapComponent

updateMapComponent(data, availableFieldsPerCollection): any

Removes the properties -from map component - including fields that are not available for exploration

Parameters

Name Type Description
data any configuration object
availableFieldsPerCollection Map<string, Set<string>> List of available fields for exploration for each collection.

Returns

any

configuration object

Defined in

projects/arlas-toolkit/src/lib/services/configuration-updater/configurationUpdater.service.ts:235


updateMapContributors

updateMapContributors(data, availableFieldsPerCollection): any

Removes the properties -from MapConributor- that define fields not available for exploration

Parameters

Name Type Description
data any configuration object
availableFieldsPerCollection Map<string, Set<string>> List of available fields for exploration for each collection.

Returns

any

configuration object

Defined in

projects/arlas-toolkit/src/lib/services/configuration-updater/configurationUpdater.service.ts:392


updateResultListContributors

updateResultListContributors(data, availableFieldsPerCollection): any

Removes the properties -from ResultListContributor- that define fields not available for exploration

Parameters

Name Type Description
data any configuration object
availableFieldsPerCollection Map<string, Set<string>> List of available fields for exploration for each collection.

Returns

any

configuration object

Defined in

projects/arlas-toolkit/src/lib/services/configuration-updater/configurationUpdater.service.ts:273