Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

As per the vocabulary, the Registry is designed as a storage place for apps outside of ui-dashboard to register resources. These will then become available to dashboard for the purposes of dynamic interactions between different frontend apps.

...

Returns a Javascript Map with String keys of the resources available and values of a type RegistryResource.

getRegistryCount()

...

A RegistryResource is a class containing information about a particular resource of the registry. It has fields that are technically publically available, but they should only be accessed through the requisite getters and setters.

Once https://github.com/tc39/proposal-private-methods#private-methods-and-fields or equivalent become available and supported, these fields should be made private. This class contains the following methods with which to interact with it:
 

Warning

The templating parts below are not yet implemented and are likely to change as the project iterates forwards.

...

getLink/setLink are implemented, but their shape is not yet finalised in generality. It is HIGHLY recommended that these are not utilised, and any early implementors confine their use to get/set for ViewResource and ViewResources.


getLinkMap()

This function will return an Map with keys that are Strings referring to a kind of link, eg "viewResource", and values that are either Strings or functions.

setLink(linkName, link)

This function sets a string field "viewAll"OR function entry on the above Map, which should reflect a basic URL path for a "view all" page for the resource. In the case of agreements it would be "/erm/agreements/"

...