Skip to content

Commit

Permalink
Union web service, work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
semancik committed Jun 4, 2014
1 parent 0f553a3 commit 0eaf7a2
Show file tree
Hide file tree
Showing 13 changed files with 5,375 additions and 3 deletions.
4 changes: 1 addition & 3 deletions custom/pom.xml
Expand Up @@ -47,8 +47,6 @@
<url>https://fisheye.evolveum.com/browse/midPoint</url>
</scm>
<modules>
<!-- add submodule here:
<module>custom-foo</module>
-->
<module>union-service</module>
</modules>
</project>
161 changes: 161 additions & 0 deletions custom/union-service/pom.xml
@@ -0,0 +1,161 @@
<?xml version="1.0"?>
<!--
~ Copyright (c) 2010-2014 Evolveum
~
~ 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.
-->

<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>
<name>midPoint Customization - Union Service</name>
<groupId>com.evolveum.midpoint.custom</groupId>
<artifactId>union-service</artifactId>
<packaging>jar</packaging>
<parent>
<artifactId>custom</artifactId>
<groupId>com.evolveum.midpoint</groupId>
<version>3.1-SNAPSHOT</version>
</parent>
<scm>
<connection>https://github.com/Evolveum/midpoint.git</connection>
<developerConnection>git@github.com:Evolveum/midpoint.git</developerConnection>
<url>https://fisheye.evolveum.com/browse/midPoint</url>
</scm>
<dependencies>
<dependency>
<groupId>com.evolveum.midpoint.infra</groupId>
<artifactId>prism</artifactId>
<version>3.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-core</artifactId>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-simple</artifactId>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-databinding-aegis</artifactId>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-local</artifactId>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http</artifactId>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-management</artifactId>
</dependency>
<dependency>
<groupId>xml-resolver</groupId>
<artifactId>xml-resolver</artifactId>
</dependency>
<dependency>
<groupId>org.apache.ws.xmlschema</groupId>
<artifactId>xmlschema-core</artifactId>
<version>2.0.3</version>
</dependency>
<dependency>
<groupId>org.jvnet.jaxb2_commons</groupId>
<artifactId>jaxb2-basics-runtime</artifactId>
<version>0.6.3</version>
</dependency>
<!-- Testing dependecies -->
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.evolveum.midpoint.tools</groupId>
<artifactId>test-ng</artifactId>
<version>3.1-SNAPSHOT</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>${cxf.version}</version>
<executions>
<execution>
<id>generate-sources</id>
<phase>generate-sources</phase>
<configuration>
<sourceRoot>${project.build.directory}/generated/cxf</sourceRoot>
<wsdlRoot>${project.directory}/src/main/resources/xml</wsdlRoot>
<wsdlOptions>
<wsdlOption>
<wsdl>src/main/resources/xml/ns/private/unionWrapper.wsdl</wsdl>
<wsdlLocation>classpath:xml/ns/private/unionWrapper.wsdl</wsdlLocation>
<catalog>${basedir}/src/main/resources/META-INF/jax-ws-catalog-compile-time.xml</catalog>
<extraargs>
<extraarg>-impl</extraarg>
<extraarg>-verbose</extraarg>
<extraarg>-validate</extraarg>
<extraarg>-xjc-Xts</extraarg>
<extraarg>-xjc-XhashCode</extraarg>
<extraarg>-xjc-Xequals</extraarg>
<extraarg>
-xjc-Xequals-equalsStrategyClass=com.evolveum.midpoint.util.xml.DomAwareEqualsStrategy
</extraarg>
<extraarg>-nexclude</extraarg>
<extraarg>http://prism.evolveum.com/xml/ns/public/types-3</extraarg>
<extraarg>-nexclude</extraarg>
<extraarg>http://prism.evolveum.com/xml/ns/public/annotation-3</extraarg>
<extraarg>-nexclude</extraarg>
<extraarg>http://prism.evolveum.com/xml/ns/public/query-3</extraarg>
</extraargs>
</wsdlOption>
</wsdlOptions>
</configuration>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.apache.cxf.xjcplugins</groupId>
<artifactId>cxf-xjc-ts</artifactId>
<version>${cxf-xjc.version}</version>
</dependency>
<dependency>
<groupId>org.jvnet.jaxb2_commons</groupId>
<artifactId>jaxb2-basics</artifactId>
<version>0.6.3</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2014 Evolveum
~
~ 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.
-->
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="public">

<public publicId="http://www.union.sk/2014/03/mo/api/car" uri="../xml/ns/custom/union-mo-api-car.xsd" />
<system systemId="http://www.union.sk/2014/03/mo/api/car" uri="../xml/ns/custom/union-mo-api-car.xsd" />

<public publicId="http://www.union.sk/2014/03/mo/api/common" uri="../xml/ns/custom/union-mo-api-common.xsd" />
<system systemId="http://www.union.sk/2014/03/mo/api/common" uri="../xml/ns/custom/union-mo-api-common.xsd" />

<public publicId="http://www.union.sk/2014/03/mo/api/integration" uri="../xml/ns/custom/union-mo-api-service.xsd" />
<system systemId="http://www.union.sk/2014/03/mo/api/integration" uri="../xml/ns/custom/union-mo-api-service.xsd" />

<public publicId="http://www.union.sk/2014/03/mo/api/policy" uri="../xml/ns/custom/union-mo-api-policy.xsd" />
<system systemId="http://www.union.sk/2014/03/mo/api/policy" uri="../xml/ns/custom/union-mo-api-policy.xsd" />

</catalog>
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
~ Copyright (c) 2014 Evolveum
~
~ 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.
-->
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="public">

<public publicId="http://midpoint.evolveum.com/xml/ns/custom/union-1" uri="../xml/ns/public/custom/union-1.wsdl" />
<system systemId="http://midpoint.evolveum.com/xml/ns/custom/union-1" uri="../xml/ns/public/custom/union-1.wsdl" />

<nextCatalog catalog="catalog-compile-time.xml"/>
</catalog>
@@ -0,0 +1,73 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
~ Copyright (c) 2014 Evolveum
~
~ 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.
-->

<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xmlns:jaxrs="http://cxf.apache.org/jaxrs"
xmlns:util="http://www.springframework.org/schema/util"
xmlns:ssec="http://cxf.apache.org/spring-security"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util-3.0.xsd
http://cxf.apache.org/jaxws
http://cxf.apache.org/schemas/jaxws.xsd
http://cxf.apache.org/jaxrs
http://cxf.apache.org/schemas/jaxrs.xsd
http://cxf.apache.org/spring-security
http://cxf-spring-security.googlecode.com/svn/trunk/cxf-spring-security/src/main/resources/schemas/spring-security.xsd"
default-lazy-init="false"
default-autowire="byName">

<!-- enabling annotation driven configuration -->
<context:annotation-config/>
<context:component-scan base-package="com.evolveum.midpoint.custom.union.service"/>
<context:spring-configured/>

<import resource="classpath:META-INF/cxf/cxf.xml"/>
<import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>

<jaxws:endpoint id="unionWS"
address="/union-1"
wsdlLocation="classpath:xml/ns/public/custom/union-1.wsdl"
serviceName="union:unionWebService"
endpointName="union:unionPort"
xmlns:union="http://midpoint.evolveum.com/xml/ns/custom/union-1">
<jaxws:implementor>
<bean parent="unionWebServiceRaw"/>
</jaxws:implementor>
<jaxws:inInterceptors>
<ref bean="authenticationInterceptor"/>
<ref bean="springAuthenticationInjector"/>
<ref bean="springAuthenticationJanitor"/>

<!--
<ref bean="authorizationInterceptor"/>
-->
</jaxws:inInterceptors>
<jaxws:outInterceptors>

</jaxws:outInterceptors>

</jaxws:endpoint>

</beans>

0 comments on commit 0eaf7a2

Please sign in to comment.