Skip to content

Commit

Permalink
Merge pull request #26 from mozzy11/develop
Browse files Browse the repository at this point in the history
update build configurations and permisions
  • Loading branch information
CalebSLane authored Mar 27, 2024
2 parents d1e8b82 + a073e2d commit 9e607e1
Show file tree
Hide file tree
Showing 36 changed files with 135 additions and 103 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: openelisglobal-plugins CI Build
on:
push:
branches: [develop]
pull_request:
branches: [develop]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Checkout openelisglobal-plugins
uses: actions/checkout@v2
with:
repository: ${{github.repository}}

- name: Build openelisglobal-plugins
run: mvn clean install


12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,15 @@ openelisglobal-plugins
======================

Repository for plugins for openelisglobal

[![Build Status](https://github.com/openelisglobal/openelisglobal-plugins/actions/workflows/ci.yml/badge.svg)](https://github.com/openelisglobal/openelisglobal-plugins/actions/workflows/ci.yml)

For Building The Plugins

1. Got to the [Parent pom file](./pom.xml)
1. set the right absolute `SystemPath path` to the `openelisglobal` dependence located under the [lib](./lib/) folder
1. Run the Maven Build

```mvn clen install```
1. Find the built plugin jars under the `plugins` directory

11 changes: 5 additions & 6 deletions analyzers/CobasC111/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@
</properties>

<build>
<sourceDirectory>src/main/java</sourceDirectory>
<sourceDirectory>src</sourceDirectory>
<resources>
<resource>
<directory>src/main/filtered-resources</directory>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
<directory>src</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
</resources>
<plugins>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class CobasC111Permission extends PermissionPlugin{
protected boolean insertPermission(){
PluginPermissionService service = new PluginPermissionService();
SystemModule module = service.getOrCreateSystemModule( "AnalyzerResults", "CobasC111Analyzer", "Results->Analyzer->CobasC111Analyzer" );
Role role = service.getSystemRole( "Results entry" );
Role role = service.getSystemRole( "Results" );
return service.bindRoleToModule( role, module );
}
}
11 changes: 5 additions & 6 deletions analyzers/CobasIntegra400/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,13 @@


<build>
<sourceDirectory>src/main/java</sourceDirectory>
<sourceDirectory>src</sourceDirectory>
<resources>
<resource>
<directory>src/main/filtered-resources</directory>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
<directory>src</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
</resources>
<plugins>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public class CobasIntegra400Permission extends PermissionPlugin{
protected boolean insertPermission(){
PluginPermissionService service = new PluginPermissionService();
SystemModule module = service.getOrCreateSystemModule( "AnalyzerResults", "CobasIntegra400", "Results->Analyzer->CobasIntegra400" );
Role role = service.getSystemRole( "Results Admin" );
//Role role = service.getSystemRole( "Results entry" );
Role role = service.getSystemRole( "Results" );
//Role role = service.getSystemRole( "Results" );
return service.bindRoleToModule( role, module );
}
}
11 changes: 5 additions & 6 deletions analyzers/CobasTaqMan48DBS/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,13 @@


<build>
<sourceDirectory>src/main/java</sourceDirectory>
<sourceDirectory>src</sourceDirectory>
<resources>
<resource>
<directory>src/main/filtered-resources</directory>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
<directory>src</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
</resources>
<plugins>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class TaqMan48DBSPermission extends PermissionPlugin{
protected boolean insertPermission(){
PluginPermissionService service = new PluginPermissionService();
SystemModule module = service.getOrCreateSystemModule( "AnalyzerResults", "TaqMan48DBSAnalyzer", "Results->Analyzer->TaqMan48DBSAnalyzer" );
Role role = service.getSystemRole( "Results entry" );
Role role = service.getSystemRole( "Results" );
return service.bindRoleToModule( role, module );
}
}
11 changes: 5 additions & 6 deletions analyzers/FacsCalibur/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,13 @@


<build>
<sourceDirectory>src/main/java</sourceDirectory>
<sourceDirectory>src</sourceDirectory>
<resources>
<resource>
<directory>src/main/filtered-resources</directory>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
<directory>src</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
</resources>
<plugins>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class FacsCaliburPermission extends PermissionPlugin{
protected boolean insertPermission(){
PluginPermissionService service = new PluginPermissionService();
SystemModule module = service.getOrCreateSystemModule( "AnalyzerResults", "FacsCalibur", "Results->Analyzer->FacsCalibur" );
Role role = service.getSystemRole( "Results entry" );
Role role = service.getSystemRole( "Results" );
return service.bindRoleToModule( role, module );
}
}
11 changes: 5 additions & 6 deletions analyzers/FacsCantoII/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,13 @@


<build>
<sourceDirectory>src/main/java</sourceDirectory>
<sourceDirectory>src</sourceDirectory>
<resources>
<resource>
<directory>src/main/filtered-resources</directory>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
<directory>src</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
</resources>
<plugins>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public class FacsCantoIIPermission extends PermissionPlugin{
protected boolean insertPermission(){
PluginPermissionService service = new PluginPermissionService();
SystemModule module = service.getOrCreateSystemModule( "AnalyzerResults", "FacsCantoII", "Results->Analyzer->FacsCantoII" );
Role role = service.getSystemRole( "Results Admin" );
//Role role = service.getSystemRole( "Results Entry" );
Role role = service.getSystemRole( "Results" );
//Role role = service.getSystemRole( "Results" );
return service.bindRoleToModule( role, module );
}
}
11 changes: 5 additions & 6 deletions analyzers/FacsPresto/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,13 @@


<build>
<sourceDirectory>src/main/java</sourceDirectory>
<sourceDirectory>src</sourceDirectory>
<resources>
<resource>
<directory>src/main/filtered-resources</directory>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
<directory>src</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
</resources>
<plugins>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class FacsPrestoPermission extends PermissionPlugin{
protected boolean insertPermission(){
PluginPermissionService service = new PluginPermissionService();
SystemModule module = service.getOrCreateSystemModule( "AnalyzerResults", "FacsPrestoAnalyzer", "Results->Analyzer->FacsPrestoAnalyzer" );
Role role = service.getSystemRole( "Results entry" );
Role role = service.getSystemRole( "Results" );
return service.bindRoleToModule( role, module );
}
}
11 changes: 5 additions & 6 deletions analyzers/Fully/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,13 @@


<build>
<sourceDirectory>src/main/java</sourceDirectory>
<sourceDirectory>src</sourceDirectory>
<resources>
<resource>
<directory>src/main/filtered-resources</directory>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
<directory>src</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
</resources>
<plugins>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class FullyPermission extends PermissionPlugin{
protected boolean insertPermission(){
PluginPermissionService service = new PluginPermissionService();
SystemModule module = service.getOrCreateSystemModule( "AnalyzerResults", "FullyAnalyzer", "Results->Analyzer->FullyAnalyzer" );
Role role = service.getSystemRole( "Results entry" );
Role role = service.getSystemRole( "Results" );
return service.bindRoleToModule( role, module );
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ protected boolean insertPermission(){
IPluginPermissionService service = SpringContext.getBean(IPluginPermissionService.class);
SystemModule module = service.getOrCreateSystemModule("AnalyzerResults", "GeneXpertAnalyzer",
"Results->Analyzer->GeneXpertAnalyzer");
Role role = service.getSystemRole( "Results entry" );
Role role = service.getSystemRole( "Results" );
return service.bindRoleToModule( role, module );
}
}
11 changes: 5 additions & 6 deletions analyzers/GeneXpertFile/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@
</properties>

<build>
<sourceDirectory>src/main/java</sourceDirectory>
<sourceDirectory>src</sourceDirectory>
<resources>
<resource>
<directory>src/main/filtered-resources</directory>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
<directory>src</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
</resources>
<plugins>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ protected boolean insertPermission(){
PluginPermissionService service = new PluginPermissionService();
SystemModule module = service.getOrCreateSystemModule("AnalyzerResults", "GeneXpertAnalyzer",
"Results->Analyzer->GeneXpertAnalyzer");
Role role = service.getSystemRole( "Results entry" );
Role role = service.getSystemRole( "Results" );
return service.bindRoleToModule( role, module );
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ protected boolean insertPermission(){
IPluginPermissionService service = SpringContext.getBean(IPluginPermissionService.class);
SystemModule module = service.getOrCreateSystemModule("AnalyzerResults", "MindrayAnalyzer",
"Results->Analyzer->MindrayAnalyzer");
Role role = service.getSystemRole( "Results entry" );
Role role = service.getSystemRole( "Results" );
return service.bindRoleToModule( role, module );
}
}
11 changes: 5 additions & 6 deletions analyzers/QuantStudio3/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@
</properties>

<build>
<sourceDirectory>src/main/java</sourceDirectory>
<sourceDirectory>src</sourceDirectory>
<resources>
<resource>
<directory>src/main/filtered-resources</directory>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
<directory>src</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
</resources>
<plugins>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ protected boolean insertPermission(){
IPluginPermissionService service = SpringContext.getBean(IPluginPermissionService.class);
SystemModule module = service.getOrCreateSystemModule("AnalyzerResults", "QuantStudio3Analyzer",
"Results->Analyzer->QuantStudio3Analyzer");
Role role = service.getSystemRole( "Results entry" );
Role role = service.getSystemRole( "Results" );
SystemModuleUrl moduleUrl = service.getOrCreateSystemModuleUrl(module, "/importAnalyzer");
return service.bindRoleToModule( role, module, moduleUrl );
}
Expand Down
11 changes: 5 additions & 6 deletions analyzers/SysmeXT/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,13 @@


<build>
<sourceDirectory>src/main/java</sourceDirectory>
<sourceDirectory>src</sourceDirectory>
<resources>
<resource>
<directory>src/main/filtered-resources</directory>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
<directory>src</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
</resources>
<plugins>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class SysmeXTPermission extends PermissionPlugin{
protected boolean insertPermission(){
PluginPermissionService service = new PluginPermissionService();
SystemModule module = service.getOrCreateSystemModule( "AnalyzerResults", "SysmeXT", "Results->Analyzer->SysmeXT" );
Role role = service.getSystemRole( "Results entry" );
Role role = service.getSystemRole( "Results" );
return service.bindRoleToModule( role, module );
}
}
11 changes: 5 additions & 6 deletions analyzers/Sysmex2000i/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,13 @@


<build>
<sourceDirectory>src/main/java</sourceDirectory>
<sourceDirectory>src</sourceDirectory>
<resources>
<resource>
<directory>src/main/filtered-resources</directory>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
<directory>src</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
</resources>
<plugins>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class SysmexPermission extends PermissionPlugin{
protected boolean insertPermission(){
PluginPermissionService service = new PluginPermissionService();
SystemModule module = service.getOrCreateSystemModule( "AnalyzerResults", "SysmexAnalyzer", "Results->Analyzer->SysmexAnalyzer" );
Role role = service.getSystemRole( "Results entry" );
Role role = service.getSystemRole( "Results" );
return service.bindRoleToModule( role, module );
}
}
Loading

0 comments on commit 9e607e1

Please sign in to comment.