Wiki source code of Advanced Bookmarks

Last modified by superadmin on 2026/11/23 22:53

Show last authors
1 [[Advanced Bookmarks>>doc:extensions:Extension.Advanced Bookmarks.WebHome]] exposes the bookmarks of the current wiki to wiki scripts and to JavaScript, through the same component, so both go through the same rights checks.
2
3 {{plantuml}}
4 @startuml
5
6 rectangle "Star, Panel and bookmarks page\n(JavaScript)" as js
7 rectangle "Wiki scripts" as scripts
8 rectangle "AdvancedBookmarks.Code.Service\n(HTTP service page)" as http
9 rectangle "$services.advancedbookmarks\n(script services)" as services
10 rectangle "Bookmark manager\n(rights, validation, versions)" as manager
11 database "Solr core\nadvancedbookmarks" as solr
12 js --> http : JSON
13 http --> services
14 scripts --> services
15 services --> manager
16 manager --> solr
17 @enduml
18 {{/plantuml}}
19
20 * [[Advanced Bookmarks Script Services>>doc:documentation.extensions.dev.advanced-bookmarks.script-services.WebHome]]: ##$services.advancedbookmarks## and its ##admin## part.
21 * [[Advanced Bookmarks HTTP Service>>doc:documentation.extensions.dev.advanced-bookmarks.http-service.WebHome]]: the same operations over HTTP, for JavaScript.
22 * [[Bookmark Export File Format>>doc:documentation.extensions.dev.advanced-bookmarks.export-file-format.WebHome]]: the files of the user and wiki exports.
23
24 The bookmarks of a user are one Solr document per wiki, holding the folders and bookmarks as JSON, with a version. Each write passes the version read by the caller: a write based on an outdated version is refused with ##conflict##, and the caller reads the bookmarks again.

Get Connected