diff --git a/.github/workflows/develop-build.yml b/.github/workflows/develop-build.yml
new file mode 100644
index 0000000..78664d9
--- /dev/null
+++ b/.github/workflows/develop-build.yml
@@ -0,0 +1,47 @@
+name: Publish Development Build
+
+permissions:
+ contents: write
+
+on:
+ push:
+ branches:
+ - 'develop'
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Check out source code
+ uses: actions/checkout@v4
+ - name: Set up JDK 17
+ uses: actions/setup-java@v1
+ with:
+ java-version: 17
+ - name: Set up Maven cache
+ uses: actions/cache@v1
+ with:
+ path: ~/.m2/repository
+ key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+ restore-keys: |
+ ${{ runner.os }}-maven-
+ - name: Build with Maven
+ run: mvn clean verify -U -P snapshot-build
+ - name: Get current date
+ id: date
+ run: echo "::set-output name=date::$(date +'%Y-%m-%d %H:%M:%S %Z')"
+ - name: Create tag name from date
+ id: tagdate
+ run: echo "::set-output name=tagdate::$(date +'%Y-%m-%d_%H-%M-%S_%Z')"
+ - name: Release
+ id: create_release
+ uses: softprops/action-gh-release@v2
+ with:
+ name: ${{ steps.date.outputs.date }}
+ tag_name: ${{ steps.tagdate.outputs.tagdate }}
+ generate_release_notes: true
+ draft: false
+ prerelease: true
+ files: |
+ **/target/*.jar
+ install/*
diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml
new file mode 100644
index 0000000..e3a9552
--- /dev/null
+++ b/.github/workflows/release-build.yml
@@ -0,0 +1,40 @@
+name: Publish Release Build
+
+permissions:
+ contents: write
+
+on:
+ push:
+ tags:
+ - 'v*'
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Check out source code
+ uses: actions/checkout@v4
+ - name: Set up JDK 17
+ uses: actions/setup-java@v1
+ with:
+ java-version: 17
+ - name: Set up Maven cache
+ uses: actions/cache@v1
+ with:
+ path: ~/.m2/repository
+ key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+ restore-keys: |
+ ${{ runner.os }}-maven-
+ - name: Build with Maven
+ run: mvn clean verify -U -P release-build
+ - name: Release
+ id: create_release
+ uses: softprops/action-gh-release@v2
+ with:
+ name: Release ${{ github.ref_name }}
+ generate_release_notes: true
+ draft: false
+ prerelease: false
+ files: |
+ **/target/*.jar
+ install/*
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
deleted file mode 100644
index 82c3ec1..0000000
--- a/.github/workflows/release.yml
+++ /dev/null
@@ -1,72 +0,0 @@
-name: Build and upload to release
-
-on:
- push:
- branch:
- - 'master'
-
-jobs:
- build:
- runs-on: ubuntu-latest
- steps:
- - name: Check out source code
- uses: actions/checkout@v2
- - name: Set up JDK 11
- uses: actions/setup-java@v1
- with:
- java-version: 11
- - name: Set up Maven cache
- uses: actions/cache@v1
- with:
- path: ~/.m2/repository
- key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
- restore-keys: |
- ${{ runner.os }}-maven-
- - name: Build with Maven
- run: mvn package --file plugin/pom.xml -DskipTests
- - name: Get current date
- id: date
- run: echo "::set-output name=date::$(date +'%Y-%m-%d %H:%M:%S %Z')"
- - name: Create tag name from date
- id: tagdate
- run: echo "::set-output name=tagdate::$(date +'%Y-%m-%d_%H-%M-%S_%Z')"
- - name: Create Release
- id: create_release
- uses: actions/create-release@v1
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- with:
- tag_name: ${{ steps.tagdate.outputs.tagdate }}
- release_name: ${{ steps.date.outputs.date }}
- draft: false
- prerelease: false
- - name: Upload main asset
- id: upload-main-asset
- uses: actions/upload-release-asset@v1
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- with:
- upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
- asset_path: plugin/module-main/target/plugin_intranda_dashboard_extended.jar
- asset_name: plugin_intranda_dashboard_extended.jar
- asset_content_type: application/jar
- - name: Upload GUI asset
- id: upload-gui-asset
- uses: actions/upload-release-asset@v1
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- with:
- upload_url: ${{ steps.create_release.outputs.upload_url }}
- asset_path: plugin/module-gui/target/plugin_intranda_dashboard_extended-GUI.jar
- asset_name: plugin_intranda_dashboard_extended-GUI.jar
- asset_content_type: application/jar
- - name: Upload Config asset
- id: upload-config-asset
- uses: actions/upload-release-asset@v1
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- with:
- upload_url: ${{ steps.create_release.outputs.upload_url }}
- asset_path: plugin/plugin_intranda_dashboard_extended.xml
- asset_name: plugin_intranda_dashboard_extended.xml
- asset_content_type: text/xml
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..9f88813
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,20 @@
+
+# Junk files
+*~
+.DS_Store
+
+# Build
+target/
+bin/
+build/
+node_modules/
+
+# Eclipse
+.project
+.classpath
+.settings/
+
+# IntelliJ IDEA
+.idea
+*.iml
+
diff --git a/Jenkinsfile b/Jenkinsfile
index 44df4ed..13cb478 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -1,9 +1,13 @@
+
pipeline {
agent {
docker {
- image 'maven:3-jdk-11'
- args '-v $HOME/.m2:/var/maven/.m2:z -u 1000 -ti -e _JAVA_OPTIONS=-Duser.home=/var/maven -e MAVEN_CONFIG=/var/maven/.m2'
+ /* using a custom build image with a defined home directory for UID 1000 among other things */
+ image 'nexus.intranda.com:4443/maven:3.9.3-eclipse-temurin-17'
+ registryUrl 'https://nexus.intranda.com:4443'
+ registryCredentialsId 'jenkins-docker'
+ args '-v $HOME/.m2:/var/maven/.m2:z -v $HOME/.config:/var/maven/.config -v $HOME/.sonar:/var/maven/.sonar -u 1000 -ti -e _JAVA_OPTIONS=-Duser.home=/var/maven -e MAVEN_CONFIG=/var/maven/.m2'
}
}
@@ -11,26 +15,119 @@ pipeline {
buildDiscarder logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '15', daysToKeepStr: '90', numToKeepStr: '')
}
-
-
stages {
stage('prepare') {
steps {
- sh 'git clean -fdx'
+ sh 'git reset --hard HEAD && git clean -fdx'
}
}
-
- stage('build') {
+ stage('build-snapshot') {
+ when {
+ not {
+ anyOf {
+ branch 'master'
+ branch 'release_*'
+ allOf {
+ branch 'PR-*'
+ expression { env.CHANGE_BRANCH.startsWith("release_") }
+ }
+ }
+ }
+ }
+ steps {
+ sh 'mvn clean verify -U -P snapshot-build'
+ }
+ }
+ stage('build-release') {
+ when {
+ anyOf {
+ branch 'master'
+ branch 'release_*'
+ allOf {
+ branch 'PR-*'
+ expression { env.CHANGE_BRANCH.startsWith("release_") }
+ }
+ }
+ }
+ steps {
+ sh 'mvn clean verify -U -P release-build'
+ }
+ }
+ stage('sonarcloud') {
+ when {
+ anyOf {
+ branch 'master'
+ branch 'release_*'
+ branch 'sonar_*'
+ allOf {
+ branch 'PR-*'
+ expression { env.CHANGE_BRANCH.startsWith("release_") }
+ }
+ }
+ }
steps {
- sh 'mvn -f plugin/pom.xml package'
- recordIssues enabledForFailure: true, aggregatingResults: true, tools: [java(), javaDoc()]
+ withCredentials([string(credentialsId: 'jenkins-sonarcloud', variable: 'TOKEN')]) {
+ sh 'mvn verify sonar:sonar -Dsonar.token=$TOKEN -U'
+ }
+ }
+ }
+ stage('deploy-libs') {
+ when {
+ anyOf {
+ branch 'master'
+ branch 'develop'
+ }
+ }
+ steps {
+ script {
+ if (fileExists('module-lib/pom.xml')) {
+ sh 'mvn -N deploy'
+ sh 'mvn -f module-lib/pom.xml deploy'
+ }
+ }
+ }
+ }
+ stage('tag release') {
+ when { branch 'master' }
+ steps {
+ withCredentials([gitUsernamePassword(credentialsId: '93f7e7d3-8f74-4744-a785-518fc4d55314',
+ gitToolName: 'git-tool')]) {
+ sh '''#!/bin/bash -xe
+ projectversion=$(mvn org.apache.maven.plugins:maven-help-plugin:3.4.0:evaluate -Dexpression=project.version -q -DforceStdout)
+ if [ $? != 0 ]
+ then
+ exit 1
+ elif [[ "${projectversion}" =~ "SNAPSHOT" ]]
+ then
+ echo "This is a SNAPSHOT version"
+ exit 1
+ fi
+ echo "${projectversion}"
+ git tag -a "v${projectversion}" -m "releasing v${projectversion}" && git push origin v"${projectversion}"
+ '''
+ }
}
}
}
-
+
post {
+ always {
+ junit allowEmptyResults: true, testResults: "**/target/surefire-reports/*.xml"
+ step([
+ $class : 'JacocoPublisher',
+ execPattern : '**/target/jacoco.exec',
+ classPattern : '**/target/classes/',
+ sourcePattern : '**/src/main/java',
+ exclusionPattern : '**/*Test.class'
+ ])
+ recordIssues (
+ enabledForFailure: true, aggregatingResults: false,
+ tools: [checkStyle(pattern: 'target/checkstyle-result.xml', reportEncoding: 'UTF-8')]
+ )
+ dependencyCheckPublisher pattern: 'target/dependency-check-report.xml'
+ }
success {
- archiveArtifacts artifacts: '**/target/*.jar, */plugin_*.xml, plugin_*.xml', fingerprint: true, onlyIfSuccessful: true
+ archiveArtifacts artifacts: '**/target/*.jar, install/*', fingerprint: true, onlyIfSuccessful: true
}
changed {
emailext(
@@ -42,5 +139,3 @@ pipeline {
}
}
}
-
-/* vim: set ts=2 sw=2 tw=120 et :*/
\ No newline at end of file
diff --git a/plugin/build.xml b/build.xml
similarity index 100%
rename from plugin/build.xml
rename to build.xml
diff --git a/plugin/frontend-dev/package-lock.json b/frontend-dev/package-lock.json
similarity index 100%
rename from plugin/frontend-dev/package-lock.json
rename to frontend-dev/package-lock.json
diff --git a/plugin/frontend-dev/riotjs/README.md b/frontend-dev/riotjs/README.md
similarity index 100%
rename from plugin/frontend-dev/riotjs/README.md
rename to frontend-dev/riotjs/README.md
diff --git a/plugin/frontend-dev/riotjs/main.js b/frontend-dev/riotjs/main.js
similarity index 100%
rename from plugin/frontend-dev/riotjs/main.js
rename to frontend-dev/riotjs/main.js
diff --git a/plugin/frontend-dev/riotjs/package-lock.json b/frontend-dev/riotjs/package-lock.json
similarity index 100%
rename from plugin/frontend-dev/riotjs/package-lock.json
rename to frontend-dev/riotjs/package-lock.json
diff --git a/plugin/frontend-dev/riotjs/package.json b/frontend-dev/riotjs/package.json
similarity index 100%
rename from plugin/frontend-dev/riotjs/package.json
rename to frontend-dev/riotjs/package.json
diff --git a/plugin/frontend-dev/riotjs/tags/itmview.tag b/frontend-dev/riotjs/tags/itmview.tag
similarity index 100%
rename from plugin/frontend-dev/riotjs/tags/itmview.tag
rename to frontend-dev/riotjs/tags/itmview.tag
diff --git a/plugin/frontend-dev/riotjs/tags/nagios.tag b/frontend-dev/riotjs/tags/nagios.tag
similarity index 100%
rename from plugin/frontend-dev/riotjs/tags/nagios.tag
rename to frontend-dev/riotjs/tags/nagios.tag
diff --git a/plugin/frontend-dev/riotjs/tags/raw.tag b/frontend-dev/riotjs/tags/raw.tag
similarity index 100%
rename from plugin/frontend-dev/riotjs/tags/raw.tag
rename to frontend-dev/riotjs/tags/raw.tag
diff --git a/plugin/frontend-dev/riotjs/tags/rssfeed.tag b/frontend-dev/riotjs/tags/rssfeed.tag
similarity index 100%
rename from plugin/frontend-dev/riotjs/tags/rssfeed.tag
rename to frontend-dev/riotjs/tags/rssfeed.tag
diff --git a/plugin/frontend-dev/riotjs/webpack.config.js b/frontend-dev/riotjs/webpack.config.js
similarity index 100%
rename from plugin/frontend-dev/riotjs/webpack.config.js
rename to frontend-dev/riotjs/webpack.config.js
diff --git a/plugin/frontend-dev/riotjs/yarn.lock b/frontend-dev/riotjs/yarn.lock
similarity index 100%
rename from plugin/frontend-dev/riotjs/yarn.lock
rename to frontend-dev/riotjs/yarn.lock
diff --git a/plugin/frontend-dev/svelte-tags/README.md b/frontend-dev/svelte-tags/README.md
similarity index 100%
rename from plugin/frontend-dev/svelte-tags/README.md
rename to frontend-dev/svelte-tags/README.md
diff --git a/plugin/frontend-dev/svelte-tags/package-lock.json b/frontend-dev/svelte-tags/package-lock.json
similarity index 100%
rename from plugin/frontend-dev/svelte-tags/package-lock.json
rename to frontend-dev/svelte-tags/package-lock.json
diff --git a/plugin/frontend-dev/svelte-tags/package.json b/frontend-dev/svelte-tags/package.json
similarity index 100%
rename from plugin/frontend-dev/svelte-tags/package.json
rename to frontend-dev/svelte-tags/package.json
diff --git a/plugin/frontend-dev/svelte-tags/public/favicon.png b/frontend-dev/svelte-tags/public/favicon.png
similarity index 100%
rename from plugin/frontend-dev/svelte-tags/public/favicon.png
rename to frontend-dev/svelte-tags/public/favicon.png
diff --git a/plugin/frontend-dev/svelte-tags/public/global.css b/frontend-dev/svelte-tags/public/global.css
similarity index 100%
rename from plugin/frontend-dev/svelte-tags/public/global.css
rename to frontend-dev/svelte-tags/public/global.css
diff --git a/plugin/frontend-dev/svelte-tags/public/index.html b/frontend-dev/svelte-tags/public/index.html
similarity index 100%
rename from plugin/frontend-dev/svelte-tags/public/index.html
rename to frontend-dev/svelte-tags/public/index.html
diff --git a/plugin/frontend-dev/svelte-tags/rollup.config.js b/frontend-dev/svelte-tags/rollup.config.js
similarity index 100%
rename from plugin/frontend-dev/svelte-tags/rollup.config.js
rename to frontend-dev/svelte-tags/rollup.config.js
diff --git a/plugin/frontend-dev/svelte-tags/src/Nagios.svelte b/frontend-dev/svelte-tags/src/Nagios.svelte
similarity index 100%
rename from plugin/frontend-dev/svelte-tags/src/Nagios.svelte
rename to frontend-dev/svelte-tags/src/Nagios.svelte
diff --git a/plugin/frontend-dev/svelte-tags/src/main.js b/frontend-dev/svelte-tags/src/main.js
similarity index 100%
rename from plugin/frontend-dev/svelte-tags/src/main.js
rename to frontend-dev/svelte-tags/src/main.js
diff --git a/plugin/frontend-dev/svelte-tags/yarn.lock b/frontend-dev/svelte-tags/yarn.lock
similarity index 100%
rename from plugin/frontend-dev/svelte-tags/yarn.lock
rename to frontend-dev/svelte-tags/yarn.lock
diff --git a/plugin/plugin_intranda_dashboard_extended.xml b/install/plugin_intranda_dashboard_extended.xml
similarity index 100%
rename from plugin/plugin_intranda_dashboard_extended.xml
rename to install/plugin_intranda_dashboard_extended.xml
diff --git a/module-base/pom.xml b/module-base/pom.xml
new file mode 100644
index 0000000..d247b5a
--- /dev/null
+++ b/module-base/pom.xml
@@ -0,0 +1,10 @@
+
+ 4.0.0
+
+ io.goobi.workflow.plugin
+ plugin-dashboard-extended
+ 24.04.2
+
+ plugin-dashboard-extended-base
+ jar
+
\ No newline at end of file
diff --git a/plugin/src/de/intranda/digiverso/model/batches/SimpleBatch.java b/module-base/src/main/java/de/intranda/digiverso/model/batches/SimpleBatch.java
similarity index 100%
rename from plugin/src/de/intranda/digiverso/model/batches/SimpleBatch.java
rename to module-base/src/main/java/de/intranda/digiverso/model/batches/SimpleBatch.java
diff --git a/plugin/src/de/intranda/digiverso/model/helper/DashboardHelperBatches.java b/module-base/src/main/java/de/intranda/digiverso/model/helper/DashboardHelperBatches.java
similarity index 100%
rename from plugin/src/de/intranda/digiverso/model/helper/DashboardHelperBatches.java
rename to module-base/src/main/java/de/intranda/digiverso/model/helper/DashboardHelperBatches.java
diff --git a/plugin/src/de/intranda/digiverso/model/helper/DashboardHelperItm.java b/module-base/src/main/java/de/intranda/digiverso/model/helper/DashboardHelperItm.java
similarity index 100%
rename from plugin/src/de/intranda/digiverso/model/helper/DashboardHelperItm.java
rename to module-base/src/main/java/de/intranda/digiverso/model/helper/DashboardHelperItm.java
diff --git a/plugin/src/de/intranda/digiverso/model/helper/DashboardHelperNagios.java b/module-base/src/main/java/de/intranda/digiverso/model/helper/DashboardHelperNagios.java
similarity index 100%
rename from plugin/src/de/intranda/digiverso/model/helper/DashboardHelperNagios.java
rename to module-base/src/main/java/de/intranda/digiverso/model/helper/DashboardHelperNagios.java
diff --git a/plugin/src/de/intranda/digiverso/model/helper/DashboardHelperProcesses.java b/module-base/src/main/java/de/intranda/digiverso/model/helper/DashboardHelperProcesses.java
similarity index 100%
rename from plugin/src/de/intranda/digiverso/model/helper/DashboardHelperProcesses.java
rename to module-base/src/main/java/de/intranda/digiverso/model/helper/DashboardHelperProcesses.java
diff --git a/plugin/src/de/intranda/digiverso/model/helper/DashboardHelperRss.java b/module-base/src/main/java/de/intranda/digiverso/model/helper/DashboardHelperRss.java
similarity index 100%
rename from plugin/src/de/intranda/digiverso/model/helper/DashboardHelperRss.java
rename to module-base/src/main/java/de/intranda/digiverso/model/helper/DashboardHelperRss.java
diff --git a/plugin/src/de/intranda/digiverso/model/helper/DashboardHelperTasks.java b/module-base/src/main/java/de/intranda/digiverso/model/helper/DashboardHelperTasks.java
similarity index 100%
rename from plugin/src/de/intranda/digiverso/model/helper/DashboardHelperTasks.java
rename to module-base/src/main/java/de/intranda/digiverso/model/helper/DashboardHelperTasks.java
diff --git a/plugin/src/de/intranda/digiverso/model/itm/AbstractJob.java b/module-base/src/main/java/de/intranda/digiverso/model/itm/AbstractJob.java
similarity index 100%
rename from plugin/src/de/intranda/digiverso/model/itm/AbstractJob.java
rename to module-base/src/main/java/de/intranda/digiverso/model/itm/AbstractJob.java
diff --git a/plugin/src/de/intranda/digiverso/model/itm/DashQueuesObj.java b/module-base/src/main/java/de/intranda/digiverso/model/itm/DashQueuesObj.java
similarity index 100%
rename from plugin/src/de/intranda/digiverso/model/itm/DashQueuesObj.java
rename to module-base/src/main/java/de/intranda/digiverso/model/itm/DashQueuesObj.java
diff --git a/plugin/src/de/intranda/digiverso/model/itm/IJob.java b/module-base/src/main/java/de/intranda/digiverso/model/itm/IJob.java
similarity index 100%
rename from plugin/src/de/intranda/digiverso/model/itm/IJob.java
rename to module-base/src/main/java/de/intranda/digiverso/model/itm/IJob.java
diff --git a/plugin/src/de/intranda/digiverso/model/itm/JobImpl.java b/module-base/src/main/java/de/intranda/digiverso/model/itm/JobImpl.java
similarity index 100%
rename from plugin/src/de/intranda/digiverso/model/itm/JobImpl.java
rename to module-base/src/main/java/de/intranda/digiverso/model/itm/JobImpl.java
diff --git a/plugin/src/de/intranda/digiverso/model/itm/StringIntObj.java b/module-base/src/main/java/de/intranda/digiverso/model/itm/StringIntObj.java
similarity index 100%
rename from plugin/src/de/intranda/digiverso/model/itm/StringIntObj.java
rename to module-base/src/main/java/de/intranda/digiverso/model/itm/StringIntObj.java
diff --git a/plugin/src/de/intranda/digiverso/model/nagios/Host.java b/module-base/src/main/java/de/intranda/digiverso/model/nagios/Host.java
similarity index 100%
rename from plugin/src/de/intranda/digiverso/model/nagios/Host.java
rename to module-base/src/main/java/de/intranda/digiverso/model/nagios/Host.java
diff --git a/plugin/src/de/intranda/digiverso/model/nagios/IcingaStatus.java b/module-base/src/main/java/de/intranda/digiverso/model/nagios/IcingaStatus.java
similarity index 100%
rename from plugin/src/de/intranda/digiverso/model/nagios/IcingaStatus.java
rename to module-base/src/main/java/de/intranda/digiverso/model/nagios/IcingaStatus.java
diff --git a/plugin/src/de/intranda/digiverso/model/nagios/Nagios.java b/module-base/src/main/java/de/intranda/digiverso/model/nagios/Nagios.java
similarity index 100%
rename from plugin/src/de/intranda/digiverso/model/nagios/Nagios.java
rename to module-base/src/main/java/de/intranda/digiverso/model/nagios/Nagios.java
diff --git a/plugin/src/de/intranda/digiverso/model/nagios/ServiceStatu.java b/module-base/src/main/java/de/intranda/digiverso/model/nagios/ServiceStatu.java
similarity index 100%
rename from plugin/src/de/intranda/digiverso/model/nagios/ServiceStatu.java
rename to module-base/src/main/java/de/intranda/digiverso/model/nagios/ServiceStatu.java
diff --git a/plugin/src/de/intranda/digiverso/model/nagios/Status.java b/module-base/src/main/java/de/intranda/digiverso/model/nagios/Status.java
similarity index 100%
rename from plugin/src/de/intranda/digiverso/model/nagios/Status.java
rename to module-base/src/main/java/de/intranda/digiverso/model/nagios/Status.java
diff --git a/plugin/src/de/intranda/digiverso/model/queue/MessageQueueStatus.java b/module-base/src/main/java/de/intranda/digiverso/model/queue/MessageQueueStatus.java
similarity index 100%
rename from plugin/src/de/intranda/digiverso/model/queue/MessageQueueStatus.java
rename to module-base/src/main/java/de/intranda/digiverso/model/queue/MessageQueueStatus.java
diff --git a/plugin/src/de/intranda/digiverso/model/queue/TicketType.java b/module-base/src/main/java/de/intranda/digiverso/model/queue/TicketType.java
similarity index 100%
rename from plugin/src/de/intranda/digiverso/model/queue/TicketType.java
rename to module-base/src/main/java/de/intranda/digiverso/model/queue/TicketType.java
diff --git a/plugin/src/de/intranda/digiverso/model/rss/RssEntry.java b/module-base/src/main/java/de/intranda/digiverso/model/rss/RssEntry.java
similarity index 100%
rename from plugin/src/de/intranda/digiverso/model/rss/RssEntry.java
rename to module-base/src/main/java/de/intranda/digiverso/model/rss/RssEntry.java
diff --git a/plugin/src/de/intranda/digiverso/model/tasks/TaskChangeType.java b/module-base/src/main/java/de/intranda/digiverso/model/tasks/TaskChangeType.java
similarity index 100%
rename from plugin/src/de/intranda/digiverso/model/tasks/TaskChangeType.java
rename to module-base/src/main/java/de/intranda/digiverso/model/tasks/TaskChangeType.java
diff --git a/plugin/src/de/intranda/digiverso/model/tasks/TaskHistory.java b/module-base/src/main/java/de/intranda/digiverso/model/tasks/TaskHistory.java
similarity index 100%
rename from plugin/src/de/intranda/digiverso/model/tasks/TaskHistory.java
rename to module-base/src/main/java/de/intranda/digiverso/model/tasks/TaskHistory.java
diff --git a/plugin/src/de/intranda/goobi/PluginInfo.java b/module-base/src/main/java/de/intranda/goobi/PluginInfo.java
similarity index 100%
rename from plugin/src/de/intranda/goobi/PluginInfo.java
rename to module-base/src/main/java/de/intranda/goobi/PluginInfo.java
diff --git a/plugin/src/de/intranda/goobi/plugins/ExtendedDashboard.java b/module-base/src/main/java/de/intranda/goobi/plugins/ExtendedDashboard.java
similarity index 93%
rename from plugin/src/de/intranda/goobi/plugins/ExtendedDashboard.java
rename to module-base/src/main/java/de/intranda/goobi/plugins/ExtendedDashboard.java
index 91754a0..b797d24 100644
--- a/plugin/src/de/intranda/goobi/plugins/ExtendedDashboard.java
+++ b/module-base/src/main/java/de/intranda/goobi/plugins/ExtendedDashboard.java
@@ -6,8 +6,6 @@
import java.util.List;
import java.util.Locale;
-import javax.faces.event.ActionEvent;
-
import org.apache.commons.configuration.XMLConfiguration;
import org.apache.commons.lang.StringUtils;
import org.goobi.beans.User;
@@ -287,33 +285,33 @@ private String sortList() {
form.getUiStatus().put("sorting", sortOrder);
}
String answer = "prozesse.titel";
- if (sortOrder.equals("titelAsc")) {
+ if ("titelAsc".equals(sortOrder)) {
answer = "prozesse.titel";
- } else if (sortOrder.equals("titelDesc")) {
+ } else if ("titelDesc".equals(sortOrder)) {
answer = "prozesse.titel desc";
- } else if (sortOrder.equals("batchAsc")) {
+ } else if ("batchAsc".equals(sortOrder)) {
answer = "batchID";
- } else if (sortOrder.equals("batchDesc")) {
+ } else if ("batchDesc".equals(sortOrder)) {
answer = "batchID desc";
- } else if (sortOrder.equals("projektAsc")) {
+ } else if ("projektAsc".equals(sortOrder)) {
answer = "projekte.Titel";
- } else if (sortOrder.equals("projektDesc")) {
+ } else if ("projektDesc".equals(sortOrder)) {
answer = "projekte.Titel desc";
- } else if (sortOrder.equals("vorgangsdatumAsc")) {
+ } else if ("vorgangsdatumAsc".equals(sortOrder)) {
answer = "erstellungsdatum";
- } else if (sortOrder.equals("vorgangsdatumDesc")) {
+ } else if ("vorgangsdatumDesc".equals(sortOrder)) {
answer = "erstellungsdatum desc";
- } else if (sortOrder.equals("fortschrittAsc")) {
+ } else if ("fortschrittAsc".equals(sortOrder)) {
answer = "sortHelperStatus";
- } else if (sortOrder.equals("fortschrittDesc")) {
+ } else if ("fortschrittDesc".equals(sortOrder)) {
answer = "sortHelperStatus desc";
- } else if (sortOrder.equals("idAsc")) {
+ } else if ("idAsc".equals(sortOrder)) {
answer = "prozesse.ProzesseID";
- } else if (sortOrder.equals("idDesc")) {
+ } else if ("idDesc".equals(sortOrder)) {
answer = "prozesse.ProzesseID desc";
- } else if (sortOrder.equals("institutionAsc")) {
+ } else if ("institutionAsc".equals(sortOrder)) {
answer = "institution.shortName";
- } else if (sortOrder.equals("institutionDesc")) {
+ } else if ("institutionDesc".equals(sortOrder)) {
answer = "institution.shortName desc";
}
@@ -360,8 +358,4 @@ private DateFormat getDateFormat(int formatType) {
}
return dateFormat;
}
-
- public void updateDashboard(ActionEvent event) {
- tasksHelper = null;
- }
}
diff --git a/module-gui/pom.xml b/module-gui/pom.xml
new file mode 100644
index 0000000..139e4bb
--- /dev/null
+++ b/module-gui/pom.xml
@@ -0,0 +1,18 @@
+
+ 4.0.0
+
+ io.goobi.workflow.plugin
+ plugin-dashboard-extended
+ 24.04.2
+
+ plugin-dashboard-extended-gui
+ jar
+
+
+
+ META-INF/resources
+ src/main/webapp/resources
+
+
+
+
\ No newline at end of file
diff --git a/module-gui/src/main/webapp/META-INF/faces-config.xml b/module-gui/src/main/webapp/META-INF/faces-config.xml
new file mode 100644
index 0000000..0448938
--- /dev/null
+++ b/module-gui/src/main/webapp/META-INF/faces-config.xml
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+ org.goobi.production.messages.MyRessourceBundle
+ msgs
+
+
+
diff --git a/plugin/GUI/META-INF/resources/uii/plugin_dashboard_extended.xhtml b/module-gui/src/main/webapp/resources/uii/plugin_dashboard_extended.xhtml
similarity index 100%
rename from plugin/GUI/META-INF/resources/uii/plugin_dashboard_extended.xhtml
rename to module-gui/src/main/webapp/resources/uii/plugin_dashboard_extended.xhtml
diff --git a/plugin/GUI/META-INF/resources/uii/plugin_dashboard_extended_svelte.js b/module-gui/src/main/webapp/resources/uii/plugin_dashboard_extended_svelte.js
similarity index 100%
rename from plugin/GUI/META-INF/resources/uii/plugin_dashboard_extended_svelte.js
rename to module-gui/src/main/webapp/resources/uii/plugin_dashboard_extended_svelte.js
diff --git a/plugin/GUI/META-INF/resources/uii/plugin_dashboard_extended_tags.js b/module-gui/src/main/webapp/resources/uii/plugin_dashboard_extended_tags.js
similarity index 100%
rename from plugin/GUI/META-INF/resources/uii/plugin_dashboard_extended_tags.js
rename to module-gui/src/main/webapp/resources/uii/plugin_dashboard_extended_tags.js
diff --git a/plugin/GUI/META-INF/resources/uii/plugin_dashboard_include_assignedSteps.xhtml b/module-gui/src/main/webapp/resources/uii/plugin_dashboard_include_assignedSteps.xhtml
similarity index 100%
rename from plugin/GUI/META-INF/resources/uii/plugin_dashboard_include_assignedSteps.xhtml
rename to module-gui/src/main/webapp/resources/uii/plugin_dashboard_include_assignedSteps.xhtml
diff --git a/plugin/GUI/META-INF/resources/uii/plugin_dashboard_include_batches.xhtml b/module-gui/src/main/webapp/resources/uii/plugin_dashboard_include_batches.xhtml
similarity index 100%
rename from plugin/GUI/META-INF/resources/uii/plugin_dashboard_include_batches.xhtml
rename to module-gui/src/main/webapp/resources/uii/plugin_dashboard_include_batches.xhtml
diff --git a/plugin/GUI/META-INF/resources/uii/plugin_dashboard_include_htmlBox.xhtml b/module-gui/src/main/webapp/resources/uii/plugin_dashboard_include_htmlBox.xhtml
similarity index 100%
rename from plugin/GUI/META-INF/resources/uii/plugin_dashboard_include_htmlBox.xhtml
rename to module-gui/src/main/webapp/resources/uii/plugin_dashboard_include_htmlBox.xhtml
diff --git a/plugin/GUI/META-INF/resources/uii/plugin_dashboard_include_itm.xhtml b/module-gui/src/main/webapp/resources/uii/plugin_dashboard_include_itm.xhtml
similarity index 100%
rename from plugin/GUI/META-INF/resources/uii/plugin_dashboard_include_itm.xhtml
rename to module-gui/src/main/webapp/resources/uii/plugin_dashboard_include_itm.xhtml
diff --git a/plugin/GUI/META-INF/resources/uii/plugin_dashboard_include_nagios.xhtml b/module-gui/src/main/webapp/resources/uii/plugin_dashboard_include_nagios.xhtml
similarity index 100%
rename from plugin/GUI/META-INF/resources/uii/plugin_dashboard_include_nagios.xhtml
rename to module-gui/src/main/webapp/resources/uii/plugin_dashboard_include_nagios.xhtml
diff --git a/plugin/GUI/META-INF/resources/uii/plugin_dashboard_include_processSearch.xhtml b/module-gui/src/main/webapp/resources/uii/plugin_dashboard_include_processSearch.xhtml
similarity index 100%
rename from plugin/GUI/META-INF/resources/uii/plugin_dashboard_include_processSearch.xhtml
rename to module-gui/src/main/webapp/resources/uii/plugin_dashboard_include_processSearch.xhtml
diff --git a/plugin/GUI/META-INF/resources/uii/plugin_dashboard_include_processTemplates.xhtml b/module-gui/src/main/webapp/resources/uii/plugin_dashboard_include_processTemplates.xhtml
similarity index 100%
rename from plugin/GUI/META-INF/resources/uii/plugin_dashboard_include_processTemplates.xhtml
rename to module-gui/src/main/webapp/resources/uii/plugin_dashboard_include_processTemplates.xhtml
diff --git a/plugin/GUI/META-INF/resources/uii/plugin_dashboard_include_queue.xhtml b/module-gui/src/main/webapp/resources/uii/plugin_dashboard_include_queue.xhtml
similarity index 100%
rename from plugin/GUI/META-INF/resources/uii/plugin_dashboard_include_queue.xhtml
rename to module-gui/src/main/webapp/resources/uii/plugin_dashboard_include_queue.xhtml
diff --git a/plugin/GUI/META-INF/resources/uii/plugin_dashboard_include_rss.xhtml b/module-gui/src/main/webapp/resources/uii/plugin_dashboard_include_rss.xhtml
similarity index 100%
rename from plugin/GUI/META-INF/resources/uii/plugin_dashboard_include_rss.xhtml
rename to module-gui/src/main/webapp/resources/uii/plugin_dashboard_include_rss.xhtml
diff --git a/plugin/GUI/META-INF/resources/uii/plugin_dashboard_include_statisticsProcesses.xhtml b/module-gui/src/main/webapp/resources/uii/plugin_dashboard_include_statisticsProcesses.xhtml
similarity index 100%
rename from plugin/GUI/META-INF/resources/uii/plugin_dashboard_include_statisticsProcesses.xhtml
rename to module-gui/src/main/webapp/resources/uii/plugin_dashboard_include_statisticsProcesses.xhtml
diff --git a/plugin/GUI/META-INF/resources/uii/plugin_dashboard_include_taskHistory.xhtml b/module-gui/src/main/webapp/resources/uii/plugin_dashboard_include_taskHistory.xhtml
similarity index 100%
rename from plugin/GUI/META-INF/resources/uii/plugin_dashboard_include_taskHistory.xhtml
rename to module-gui/src/main/webapp/resources/uii/plugin_dashboard_include_taskHistory.xhtml
diff --git a/plugin/GUI/META-INF/resources/uii/plugin_dashboard_include_tasksLastChanges.xhtml b/module-gui/src/main/webapp/resources/uii/plugin_dashboard_include_tasksLastChanges.xhtml
similarity index 100%
rename from plugin/GUI/META-INF/resources/uii/plugin_dashboard_include_tasksLastChanges.xhtml
rename to module-gui/src/main/webapp/resources/uii/plugin_dashboard_include_tasksLastChanges.xhtml
diff --git a/plugin/.classpath b/plugin/.classpath
deleted file mode 100644
index e0ecaff..0000000
--- a/plugin/.classpath
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugin/.gitignore b/plugin/.gitignore
deleted file mode 100644
index 09e3bc9..0000000
--- a/plugin/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-/bin/
-/target/
diff --git a/plugin/.project b/plugin/.project
deleted file mode 100644
index a3afde5..0000000
--- a/plugin/.project
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
- goobi-plugin-dashboard-extended
-
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- org.eclipse.m2e.core.maven2Builder
-
-
-
-
-
- org.eclipse.m2e.core.maven2Nature
- org.eclipse.jdt.core.javanature
-
-
diff --git a/plugin/.settings/org.eclipse.core.resources.prefs b/plugin/.settings/org.eclipse.core.resources.prefs
deleted file mode 100644
index 99f26c0..0000000
--- a/plugin/.settings/org.eclipse.core.resources.prefs
+++ /dev/null
@@ -1,2 +0,0 @@
-eclipse.preferences.version=1
-encoding/=UTF-8
diff --git a/plugin/.settings/org.eclipse.jdt.core.prefs b/plugin/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index b8947ec..0000000
--- a/plugin/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,6 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
-org.eclipse.jdt.core.compiler.compliance=1.8
-org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
-org.eclipse.jdt.core.compiler.release=disabled
-org.eclipse.jdt.core.compiler.source=1.8
diff --git a/plugin/.settings/org.eclipse.m2e.core.prefs b/plugin/.settings/org.eclipse.m2e.core.prefs
deleted file mode 100644
index f897a7f..0000000
--- a/plugin/.settings/org.eclipse.m2e.core.prefs
+++ /dev/null
@@ -1,4 +0,0 @@
-activeProfiles=
-eclipse.preferences.version=1
-resolveWorkspaceProjects=true
-version=1
diff --git a/plugin/frontend-dev/.gitignore b/plugin/frontend-dev/.gitignore
deleted file mode 100644
index 3c3629e..0000000
--- a/plugin/frontend-dev/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-node_modules
diff --git a/plugin/frontend-dev/svelte-tags/.gitignore b/plugin/frontend-dev/svelte-tags/.gitignore
deleted file mode 100644
index dc214b2..0000000
--- a/plugin/frontend-dev/svelte-tags/.gitignore
+++ /dev/null
@@ -1,3 +0,0 @@
-.DS_Store
-node_modules
-public/build
diff --git a/plugin/module-gui/.gitignore b/plugin/module-gui/.gitignore
deleted file mode 100644
index b83d222..0000000
--- a/plugin/module-gui/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/target/
diff --git a/plugin/module-gui/pom.xml b/plugin/module-gui/pom.xml
deleted file mode 100644
index 42b6b0a..0000000
--- a/plugin/module-gui/pom.xml
+++ /dev/null
@@ -1,72 +0,0 @@
-
- 4.0.0
- de.intranda.goobi.plugins.dashboard
- extended-gui
- 24.02.2
-
- plugin_intranda_dashboard_extended-GUI
- /opt/digiverso/goobi/plugins/GUI/
-
-
- de.intranda.goobi.plugins.dashboard
- extended
- 24.02.2
-
-
- ${jar.name}
-
-
- ${project.basedir}/../GUI
-
- **/*.java
-
-
-
-
-
- org.codehaus.mojo
- buildnumber-maven-plugin
- 1.4
-
-
- validate
-
- create
-
-
-
-
- 10
- false
-
-
-
- org.apache.maven.plugins
- maven-jar-plugin
- 3.1.0
-
-
-
- ${maven.build.timestamp}
-
-
-
- Versions
-
- ${project.version}
- ${buildNumber}
- ${scmBranch}
- ${goobi.version}
-
-
-
-
-
-
-
-
-
- scm:git:ssh://git@gitea.intranda.com:goobi-workflow/goobi-plugin-dashboard-example.git
- scm:git:ssh://git@gitea.intranda.com:goobi-workflow/goobi-plugin-dashboard-example.git
-
-
diff --git a/plugin/module-main/.gitignore b/plugin/module-main/.gitignore
deleted file mode 100644
index b83d222..0000000
--- a/plugin/module-main/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/target/
diff --git a/plugin/module-main/pom.xml b/plugin/module-main/pom.xml
deleted file mode 100644
index 4c60c10..0000000
--- a/plugin/module-main/pom.xml
+++ /dev/null
@@ -1,90 +0,0 @@
-
- 4.0.0
- de.intranda.goobi.plugins.dashboard
- extended-main
- 24.02.2
-
- plugin_intranda_dashboard_extended
- /opt/digiverso/goobi/plugins/dashboard/
-
-
- de.intranda.goobi.plugins.dashboard
- extended
- 24.02.2
-
-
- ${jar.name}
- ${project.basedir}/../src
- ${project.basedir}/../test/src
-
-
- ../src
-
- **/*.java
-
-
-
-
-
- maven-compiler-plugin
- 3.7.0
-
- 1.8
- 1.8
-
-
-
- org.apache.maven.plugins
- maven-surefire-plugin
- 2.12.4
-
- true
-
-
-
- org.codehaus.mojo
- buildnumber-maven-plugin
- 1.4
-
-
- validate
-
- create
-
-
-
-
- 10
- false
-
-
-
- org.apache.maven.plugins
- maven-jar-plugin
- 3.1.0
-
-
-
- ${maven.build.timestamp}
-
-
-
- Versions
-
- ${project.version}
- ${buildNumber}
- ${scmBranch}
- ${goobi.version}
-
-
-
-
-
-
-
-
-
- scm:git:ssh://git@gitea.intranda.com:goobi-workflow/goobi-plugin-dashboard-example.git
- scm:git:ssh://git@gitea.intranda.com:goobi-workflow/goobi-plugin-dashboard-example.git
-
-
diff --git a/plugin/pom.xml b/plugin/pom.xml
deleted file mode 100644
index 8d9ae2c..0000000
--- a/plugin/pom.xml
+++ /dev/null
@@ -1,46 +0,0 @@
-
- 4.0.0
- de.intranda.goobi.plugins.dashboard
- extended
- 24.02.2
- pom
-
- 24.02.2
- UTF-8
-
-
- module-gui
- module-main
-
-
-
- intranda-releases
- https://nexus.intranda.com/repository/maven-releases
-
-
-
-
- intranda-public
- https://nexus.intranda.com/repository/maven-public
-
-
-
-
- de.intranda.goobi.workflow
- goobi-core-jar
- ${goobi.version}
-
-
- org.projectlombok
- lombok
- 1.18.22
- provided
-
-
- junit
- junit
- [4.13.1,)
- test
-
-
-
diff --git a/plugin/src/rebel.xml b/plugin/src/rebel.xml
deleted file mode 100644
index a09c5fc..0000000
--- a/plugin/src/rebel.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..a109ca3
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,30 @@
+
+ 4.0.0
+
+ io.goobi.workflow
+ workflow-base
+ 24.04.2
+
+
+ io.goobi.workflow.plugin
+ plugin-dashboard-extended
+ pom
+
+ module-base
+ module-gui
+
+
+
+ intranda-public
+ https://nexus.intranda.com/repository/maven-public
+
+
+
+
+ io.goobi.workflow
+ workflow-core
+ ${project.version}
+ classes
+
+
+
\ No newline at end of file
diff --git a/plugin/src/de/intranda/goobi/plugins.txt b/src/de/intranda/goobi/plugins.txt
similarity index 100%
rename from plugin/src/de/intranda/goobi/plugins.txt
rename to src/de/intranda/goobi/plugins.txt