You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by bu...@apache.org on 2019/06/20 11:26:36 UTC

[cxf-fediz] 01/02: fediz-oidc: remove unused persistence configuration

This is an automated email from the ASF dual-hosted git repository.

buhhunyx pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cxf-fediz.git

commit 5e669508576b39de9a570f42e50dc735b38aa809
Author: Alexey Markevich <bu...@gmail.com>
AuthorDate: Mon Jun 17 15:07:29 2019 +0300

    fediz-oidc: remove unused persistence configuration
---
 services/oidc/pom.xml                              | 17 ---------
 .../src/main/resources/META-INF/persistence.xml    | 35 -----------------
 .../src/main/webapp/WEB-INF/entity-manager.xml     | 44 ----------------------
 3 files changed, 96 deletions(-)

diff --git a/services/oidc/pom.xml b/services/oidc/pom.xml
index 166089b..c121887 100644
--- a/services/oidc/pom.xml
+++ b/services/oidc/pom.xml
@@ -104,23 +104,6 @@
             <artifactId>commons-text</artifactId>
             <version>${commons.text.version}</version>
         </dependency>
-        <!--
-        <dependency>
-            <groupId>org.apache.geronimo.specs</groupId>
-            <artifactId>geronimo-jpa_2.0_spec</artifactId>
-            <version>1.1</version>
-        </dependency>
-        <dependency>
-            <groupId>org.springframework</groupId>
-            <artifactId>spring-orm</artifactId>
-            <version>${spring.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.openjpa</groupId>
-            <artifactId>openjpa</artifactId>
-            <version>${openjpa.version}</version>
-        </dependency>
-        -->
     </dependencies>
     <build>
         <plugins>
diff --git a/services/oidc/src/main/resources/META-INF/persistence.xml b/services/oidc/src/main/resources/META-INF/persistence.xml
deleted file mode 100644
index a4ca5b2..0000000
--- a/services/oidc/src/main/resources/META-INF/persistence.xml
+++ /dev/null
@@ -1,35 +0,0 @@
-<persistence xmlns="http://java.sun.com/xml/ns/persistence"
-             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-             xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
-             version="2.0">
-   <persistence-unit name="oidcOpenJPA" transaction-type="RESOURCE_LOCAL">
-     <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
-     <class>org.apache.cxf.rs.security.oidc.idp.OidcUserSubject</class>
-     <class>org.apache.cxf.rs.security.oauth2.common.Client</class>
-     <class>org.apache.cxf.rs.security.oauth2.common.UserSubject</class>
-     <class>org.apache.cxf.rs.security.oauth2.grants.code.ServerAuthorizationCodeGrant</class>
-     <class>org.apache.cxf.rs.security.oauth2.grants.code.AuthorizationCodeGrant</class>
-     <class>org.apache.cxf.rs.security.oauth2.grants.code.AuthorizationCodeGrant_</class>
-     <class>org.apache.cxf.rs.security.oauth2.tokens.bearer.BearerAccessToken</class>
-     <class>org.apache.cxf.rs.security.oauth2.common.ServerAccessToken</class>
-     <class>org.apache.cxf.rs.security.oauth2.common.AccessToken</class>
-     <class>org.apache.cxf.rs.security.oauth2.common.Permission</class>
-     <class>org.apache.cxf.rs.security.oauth2.common.OAuthPermission</class>
-     <class>org.apache.cxf.rs.security.oauth2.tokens.refresh.RefreshToken</class>
-     <exclude-unlisted-classes>true</exclude-unlisted-classes>
-     <properties>
-        <property name="openjpa.ConnectionURL" value="jdbc:hsqldb:target/db/oidc/myDB;shutdown=true"/>
-        <property name="openjpa.ConnectionDriverName" value="org.hsqldb.jdbcDriver"/>
-        <property name="openjpa.jdbc.DBDictionary" value="hsql" />
-        <property name="openjpa.ConnectionUserName" value="sa"/>
-        <property name="openjpa.ConnectionPassword" value=""/>
-        <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema"/>
-        <property name="openjpa.MetaDataRepository" value="Preload=true"/>
-        <!--
-        <property name="openjpa.Log" value="SQL=TRACE"/>
-<property name="openjpa.ConnectionFactoryProperties"
-    value="PrettyPrint=true, PrettyPrintLineLength=72"/>
-        --> 
-     </properties>
-    </persistence-unit>
-</persistence>
\ No newline at end of file
diff --git a/services/oidc/src/main/webapp/WEB-INF/entity-manager.xml b/services/oidc/src/main/webapp/WEB-INF/entity-manager.xml
deleted file mode 100644
index 9ddda02..0000000
--- a/services/oidc/src/main/webapp/WEB-INF/entity-manager.xml
+++ /dev/null
@@ -1,44 +0,0 @@
-<?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.
--->
-<beans xmlns="http://www.springframework.org/schema/beans"
-    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-    xmlns:p="http://www.springframework.org/schema/p"
-    xsi:schemaLocation="
-        http://www.springframework.org/schema/beans
-        http://www.springframework.org/schema/beans/spring-beans-4.3.xsd
-        ">
-    <bean id="openJpaVendorAdapter" class="org.springframework.orm.jpa.vendor.OpenJpaVendorAdapter"/>
-    <bean id="dataSource"
-	       class="org.springframework.jdbc.datasource.DriverManagerDataSource"
-	       p:driverClassName="org.hsqldb.jdbcDriver" 
-	       p:url="jdbc:hsqldb:target/db/oidc/myDB;shutdown=true"
-	       p:username="sa"
-	       p:password=""/>
-    <bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
-         <property name="dataSource" ref="dataSource" />
-         <property name="jpaVendorAdapter" ref="openJpaVendorAdapter" />
-         <property name="loadTimeWeaver">
-            <bean class="org.springframework.instrument.classloading.ReflectiveLoadTimeWeaver"/>
-         </property>
-    </bean>
-    <bean id="entityManager" factory-bean="entityManagerFactory" factory-method="createEntityManager"/>
-          
-</beans>
-