Module: util/object-find-links

Methods

(static) findLinkedHashesInObject(obj) → {LinkedObjectsHashList}

Parameters:
Name Type Description
obj OneObjectTypes | OneIdObjectTypes

A ONE object

Given a ONE object find all ONE Reference objects pointing to versioned or unversioned ONE objects, to ID objects (all versions of a versioned object), or to CLOB/BLOB files. The object is traversed using the order of the array of rules of the Recipe, i.e. it is deterministic and independent of things like insertion order of the properties, which is usually used when iterating over a Javascript object.

Source:
Returns:

An object pointing to arrays of SHA-256 hashes for all references, ID references, and all CLOB and BLOB links found in the object

Type: LinkedObjectsHashList

(static) findLinkedHashesAndItempropsInObject(obj) → {LinkedObjectsHashList}

Parameters:
Name Type Description
obj OneObjectTypes | OneIdObjectTypes

A ONE object

Given a ONE object find all ONE Reference objects pointing to versioned or unversioned ONE objects, to ID objects (all versions of a versioned object), or to CLOB/BLOB files. The object is traversed using the order of the array of rules of the Recipe, i.e. it is deterministic and independent of things like insertion order of the properties, which is usually used when iterating over a Javascript object.

Source:
Returns:

An object pointing to arrays of SHA-256 hashes for all references, ID references, and all CLOB and BLOB links found in the object

Type: LinkedObjectsHashList