Skip to content

Commit

Permalink
#429: Spring Boot starter for CH:PPQ
Browse files Browse the repository at this point in the history
  • Loading branch information
unixoid committed Aug 31, 2023
1 parent 31324ac commit 4aa06eb
Show file tree
Hide file tree
Showing 8 changed files with 155 additions and 1 deletion.
60 changes: 60 additions & 0 deletions boot/ipf-xacml20-spring-boot-starter/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>org.openehealth.ipf.boot</groupId>
<artifactId>ipf-spring-boot</artifactId>
<version>4.8-SNAPSHOT</version>
</parent>

<artifactId>ipf-xacml20-spring-boot-starter</artifactId>
<name>ipf-xacml20-spring-boot-starter</name>
<description>Spring Boot support for XACML 2.0 based components</description>

<dependencies>
<!-- Camel Spring Boot Support -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-cache</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-spring-boot-starter-jaxws</artifactId>
</dependency>

<!-- IPF Support -->

<dependency>
<groupId>org.openehealth.ipf.boot</groupId>
<artifactId>ipf-atna-spring-boot-starter</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.openehealth.ipf.boot</groupId>
<artifactId>ipf-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.openehealth.ipf.commons</groupId>
<artifactId>ipf-commons-ihe-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.openehealth.ipf.platform-camel</groupId>
<artifactId>ipf-platform-camel-ihe-xacml20</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* Copyright 2023 the original author or authors.
*
* Licensed 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.
*/
package org.openehealth.ipf.boot.xacml20;

import org.openehealth.ipf.boot.atna.IpfAtnaAutoConfiguration;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@AutoConfigureAfter(IpfAtnaAutoConfiguration.class)
@EnableConfigurationProperties(IpfXacml20ConfigurationProperties.class)
public class IpfXacml20AutoConfiguration {

private final IpfXacml20ConfigurationProperties properties;

public IpfXacml20AutoConfiguration(IpfXacml20ConfigurationProperties properties) {
this.properties = properties;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* Copyright 2023 the original author or authors.
*
* Licensed 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.
*/
package org.openehealth.ipf.boot.xacml20;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
*
*/
@ConfigurationProperties(prefix = "ipf.xacml20")
public class IpfXacml20ConfigurationProperties {

}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.springframework.boot.autoconfigure.EnableAutoConfiguration=org.openehealth.ipf.boot.xacml20.IpfXacml20AutoConfiguration
1 change: 1 addition & 0 deletions boot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<module>ipf-fhir-stu3-spring-boot-starter</module>
<module>ipf-atna-spring-boot-starter</module>
<module>ipf-hpd-spring-boot-starter</module>
<module>ipf-xacml20-spring-boot-starter</module>
</modules>


Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright 2023 the original author or authors.
*
* Licensed 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.
*/
package org.openehealth.ipf.commons.ihe.xds.core.validate;

import static org.apache.commons.lang3.Validate.notNull;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright 2023 the original author or authors.
*
* Licensed 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.
*/
package org.openehealth.ipf.commons.ihe.xds.core.validate;

import static org.junit.jupiter.api.Assertions.assertThrows;
Expand Down
5 changes: 4 additions & 1 deletion src/site/changes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@
</properties>
<body>
<release version="4.x.x" description="IPF 4.x.x" date="tbd">
<action issue="429" dev="unixoid" type="add">
Add Spring Boot starter for CH:PPQ
</action>
<action issue="428" dev="thopap" type="add">
Add basic mimetype validation to XDS Documententry.mimetype attribute
Add basic mimetype validation to XDS DocumentEntry.mimetype attribute
</action>
<action issue="427" dev="thopap" type="update">
Dependency updates (Groovy, HAPI-FHIR, Spring Boot, etc.)
Expand Down

0 comments on commit 4aa06eb

Please sign in to comment.