Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CARDS-1336: Serialize survey responses to EPIC-friendly json format #1198

Draft
wants to merge 10 commits into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions distribution/docker_entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ then
fi

[[ "${CARDS_PROJECT}" == 'cards4proms' || "${CARDS_PROJECT}" == 'cards4prems' ]] && SMTPS_ENABLED="true"
[[ "${CARDS_PROJECT}" == 'cards4proms' || "${CARDS_PROJECT}" == 'cards4prems' ]] && EPIC_INTEGRATION_ENABLED="true"

if [ ! -z $DEV ]
then
Expand Down Expand Up @@ -187,6 +188,11 @@ then
SMTPS_VARIABLES="$SMTPS_VARIABLES -V emailnotifications.smtps.port=465"
fi

if [[ "$EPIC_INTEGRATION_ENABLED" == "true" ]]
then
featureFlagString="$featureFlagString -f mvn:io.uhndata.cards/cards-epic-integration/${PROJECT_VERSION}/slingosgifeature"
fi

#Load all the SSL certs under SSL_CONFIG/cards_certs into Java's trusted CA keystore
for CERT_FILE in $(find /load_certs -type f -name "*.pem" -o -name "*.crt")
do
Expand Down
84 changes: 84 additions & 0 deletions modules/epic-integration/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>io.uhndata.cards</groupId>
<artifactId>cards-modules</artifactId>
<version>0.9-SNAPSHOT</version>
</parent>

<artifactId>cards-epic-integration</artifactId>
<packaging>bundle</packaging>
<name>CARDS - Epic Integration</name>

<build>
<plugins>
<plugin>
<groupId>org.apache.sling</groupId>
<artifactId>slingfeature-maven-plugin</artifactId>
</plugin>

<!-- This is an OSGi bundle -->
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.api</artifactId>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.service.component</artifactId>
</dependency>
<dependency>
<groupId>javax.json</groupId>
<artifactId>javax.json-api</artifactId>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.service.component.annotations</artifactId>
</dependency>
<dependency>
<groupId>javax.jcr</groupId>
<artifactId>jcr</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>cards-utils</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
</dependencies>
</project>
38 changes: 38 additions & 0 deletions modules/epic-integration/src/main/features/feature.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.

{
"bundles":[
{
"id":"${project.groupId}:cards-epic-integration:${project.version}",
"start-order":"25"
}
],
"configurations":{
"org.apache.sling.jcr.repoinit.RepositoryInitializer~epic":{
"service.ranking:Integer":300,
"scripts": [
"create service user epic-integration \n set ACL on /Questionnaires,/Forms,/Subjects,/SubjectTypes \n allow jcr:read for epic-integration \n end"
]
},
"org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl.amended~epic":{
"user.mapping":[
"io.uhndata.cards.epic-integration:ToEpicFormProcessor=[epic-integration]"
]
}
}
}
Loading