Private
constructorPrivate
containerStatic
Private
instanceCreates a new Bookmark instance with the given payload. Generates a UUID for the id, sets the url to the first configured containerUrl + id, and saves the new Bookmark instance.
The data for the new Bookmark.
The saved Bookmark instance .
Retrieves all Bookmark instances from the configured containerUrls and instancesUrls.
Makes a request to each configured containerUrl and instancesUrl to get all Bookmark instances. Combines and flattens the results into a single array.
Returns the array of Bookmark instances.
Updates an existing Bookmark instance identified by its url.
The url of the Bookmark to update.
The data to update the Bookmark with.
The updated Bookmark instance if successful, otherwise undefined.
Static
getGets an instance of the BookmarkFactory class, which provides methods for creating and managing Bookmark instances.
Checks if an instance already exists and returns it. If not, it creates a new instance by:
Optional
args: GetInstanceArgsOptional
defaultContainerUrl: stringThe default container url to use if none exist.
a Promise resolving to the BookmarkFactory instance.
Generated using TypeDoc
BookmarkFactory class that provides factory methods for creating and managing Bookmark instances.