# Module: chiefConstant

Contains all of the functions for high level management of the constants data system, such as initialization, loading, setup, parsing, processing and data integration.

Author:
  - Seth Hollingsead
Copyright:
  - Copyright © 2022-… by Seth Hollingsead. All rights reserved
Source:
  - controllers/chiefConstant.js, line 1

### Requires

- module:loggers
- @haystacks/constants
- path

### Methods

#### (inner) addConstantsValidationData(arrayValidationData, contextName) → {boolean}

Calls the dataBroker to add constants validation data to the constants validation data structure.

##### Parameters:

Name | Type | Description
--- | --- | ---
`arrayValidationData` | array.<array.<string, object>> | An array of arrays that contains all of the constants library validation names and data objects.
`contextName` | string | The name of the type of data that is being added. Ex: Framework, Application, Plugin:PluginOne, Plugin:D-CAF

Author:
  - Seth Hollingsead
Source:
  - controllers/chiefConstant.js, line 57

##### Returns:

True or False to indicate if the data was added successfully or not.

Type
  boolean

#### (inner) generateFrameworkConstantsValidationData() → {object}

Generates all of the framework constants validation data and returns all that data as a single JSON object.

Author:
  - Seth Hollingsead
Source:
  - controllers/chiefConstant.js, line 40

##### Returns:

A JSON object that contains all of the framework constants validation data.

Type
  object

#### (inner) initializeConstantsValidationData() → {void}

Calls the dataBroker to initialize the constants verification data structure.

Author:
  - Seth Hollingsead
Source:
  - controllers/chiefConstant.js, line 26

##### Returns:

Type
  void