-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6809 from hmislk/Issue#407
Issue#407 Closes #407
- Loading branch information
Showing
23 changed files
with
150 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
26 | ||
14 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
src/main/java/com/divudi/ws/lims/MiddlewareController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package com.divudi.ws.lims; | ||
|
||
import com.divudi.bean.common.ConfigOptionApplicationController; | ||
import javax.inject.Inject; | ||
import javax.json.Json; | ||
import javax.json.JsonObject; | ||
import javax.ws.rs.GET; | ||
import javax.ws.rs.Path; | ||
import javax.ws.rs.Produces; | ||
import javax.ws.rs.core.MediaType; | ||
import javax.ws.rs.core.Response; | ||
|
||
@Path("/middleware") | ||
public class MiddlewareController { | ||
|
||
@Inject | ||
ConfigOptionApplicationController configOptionApplicationController; | ||
|
||
@GET | ||
@Produces(MediaType.TEXT_PLAIN) | ||
public Response checkService() { | ||
return Response.ok("Middleware service is working").build(); | ||
} | ||
|
||
@GET | ||
@Path("/test") | ||
@Produces(MediaType.TEXT_PLAIN) | ||
public Response checkServiceTest() { | ||
return Response.ok("Middleware service is working").build(); | ||
} | ||
|
||
@GET | ||
@Path("/pullSampleData") | ||
@Produces(MediaType.APPLICATION_JSON) | ||
public Response pullSampleData() { | ||
String jsonInput = configOptionApplicationController.getLongTextValueByKey("Test Json"); | ||
|
||
// Check if the retrieved JSON string is not null or empty | ||
if (jsonInput == null || jsonInput.trim().isEmpty()) { | ||
return Response.status(Response.Status.NO_CONTENT).build(); | ||
} | ||
|
||
// Return the retrieved JSON string | ||
return Response.ok(jsonInput).build(); | ||
} | ||
|
||
// Add your additional middleware-related methods here | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<persistence version="2.2" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_2.xsd"> | ||
|
||
<persistence-unit name="hmisPU" transaction-type="JTA"> | ||
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> | ||
<jta-data-source>jdbc/arogya</jta-data-source> | ||
<jta-data-source>jdbc/ruhunuDemo</jta-data-source> | ||
<exclude-unlisted-classes>false</exclude-unlisted-classes> | ||
<properties> | ||
<property name="eclipselink.logging.level.sql" value="SEVERE"/> | ||
<property name="eclipselink.logging.parameters" value="false"/> | ||
</properties> | ||
</persistence-unit> | ||
<persistence-unit name="hmisAuditPU" transaction-type="JTA"> | ||
<jta-data-source>jdbc/arogyaAudit</jta-data-source> | ||
<jta-data-source>jdbc/ruhunuDemoAudit</jta-data-source> | ||
<class>com.divudi.entity.AuditEvent</class> | ||
<exclude-unlisted-classes>true</exclude-unlisted-classes> | ||
<properties> | ||
<property name="eclipselink.logging.level.sql" value="SEVERE"/> | ||
<property name="eclipselink.logging.parameters" value="false"/> | ||
</properties> | ||
</persistence-unit> | ||
</persistence> | ||
</persistence> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
3.0.0.20240807.26 | ||
3.0.0.20240807.14 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
src/main/webapp/collecting_centre/courier/handoverSamplesToLab.xhtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.