Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-server
Commits
dfa0fce6
Commit
dfa0fce6
authored
3 years ago
by
Daniel Hornung
Browse files
Options
Downloads
Patches
Plain Diff
DOC: Plantuml diagrams
parent
a46a795b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!21
Release v0.4.0
,
!15
Document server code structure
Pipeline
#8120
passed
3 years ago
Stage: test
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/doc/conf.py
+1
-0
1 addition, 0 deletions
src/doc/conf.py
src/doc/development/structure.rst
+43
-2
43 additions, 2 deletions
src/doc/development/structure.rst
src/test/docker/Dockerfile
+2
-1
2 additions, 1 deletion
src/test/docker/Dockerfile
with
46 additions
and
3 deletions
src/doc/conf.py
+
1
−
0
View file @
dfa0fce6
...
...
@@ -47,6 +47,7 @@ extensions = [
"
recommonmark
"
,
# For markdown files.
"
sphinx.ext.autosectionlabel
"
,
# Allow reference sections using its title
"
sphinx_rtd_theme
"
,
"
sphinxcontrib.plantuml
"
,
# PlantUML diagrams
]
# Add any paths that contain templates here, relative to this directory.
...
...
This diff is collapsed.
Click to expand it.
src/doc/development/structure.rst
+
43
−
2
View file @
dfa0fce6
...
...
@@ -30,8 +30,12 @@ Transactions are explained in detail in the :ref:`Transactions and Schedules<tra
.. uml::
@startuml
abstract AbstractCaosDBServerResource
class RetrieveEntityResource
abstract AbstractCaosDBServerResource {
{abstract} httpGetInChildClass()
{abstract} httpPostInChildClass()
{abstract} ...InChildClass()
}
abstract RetrieveEntityResource
class EntityResource
AbstractCaosDBServerResource <|-- RetrieveEntityResource
RetrieveEntityResource <|-- EntityResource
...
...
@@ -60,6 +64,43 @@ main packages which handle the backend:
method. These classes may use specific backend implementations (like for example the MySQL
implementations) to interact with the backend database.
.. uml::
@startuml
together {
abstract BackendTransaction {
HashMap impl // stores all implementations
abstract execute()
}
note left of BackendTransaction::impl
Stores the
implementation
for each
interface."
end note
package ...backend.interfaces {
interface GetIDByNameImpl {
abstract execute(String name, String role, String limit)
}
}
}
together {
package ...backend.transaction {
class GetIDByName extends BackendTransaction {
execute()
}
}
package ...backend.implementation.MySQL {
class MySQLGetIDByName implements GetIDByNameImpl {
execute(String name, String role, String limit)
}
}
}
GetIDByName::execute --r-> MySQLGetIDByName
@enduml
.. _transactions:
Transactions and Schedules
...
...
This diff is collapsed.
Click to expand it.
src/test/docker/Dockerfile
+
2
−
1
View file @
dfa0fce6
...
...
@@ -2,10 +2,11 @@ FROM debian:buster
RUN
apt-get update
&&
\
apt-get
install
-y
\
git make mariadb-server maven openjdk-11-jdk-headless
\
plantuml
\
python3-pip screen libpam0g-dev unzip curl shunit2
\
python3-sphinx
\
&&
\
pip3
install
javasphinx recommonmark sphinx-rtd-theme
pip3
install
javasphinx recommonmark sphinx-rtd-theme
sphinxcontrib-plantuml
# Alternative, if javasphinx fails because python3-sphinx is too recent:
# (`_l` not found):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment