Module: executives/systems/systems

The systems implementation

This is the implementation of system management operations.

Members

(inner) systems

The in-memory dictionary of system descriptors

Methods

(static) deleteAllSystems()

Delete all systems from the in-memory systems dictionary

Returns:

[Array] The list of systems (an empty array).

(static) findAllSystems()

Find all systems in the in-memory systems dictionary

Returns:

[Array] The list of systems found.

(static) findSystemById(id)

Find a system by its unique ID

Parameters:
Name Type Description
id String

The unique ID of the system to find

Returns:

[Object] The system object found, or null if not found.

(static) upsertSystem(system)

Find a system by its ID and update, or create if it does not found.

Parameters:
Name Type Description
system String

The system object to update, including it id property.

Returns:

[Object] The updated or created system object.