cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: Committing a test resource
Date Thu, 28 Apr 2016 16:02:53 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes 2b5904f6d -> 4db1a9e0d


Committing a test resource


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/4db1a9e0
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/4db1a9e0
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/4db1a9e0

Branch: refs/heads/3.1.x-fixes
Commit: 4db1a9e0dafe99d147727431bc3cb8450501fd95
Parents: 2b5904f
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Thu Apr 28 17:01:17 2016 +0100
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Thu Apr 28 17:02:33 2016 +0100

----------------------------------------------------------------------
 .../oauth2/src/test/resources/META-INF/orm.xml  | 99 ++++++++++++++++++++
 1 file changed, 99 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/4db1a9e0/rt/rs/security/oauth-parent/oauth2/src/test/resources/META-INF/orm.xml
----------------------------------------------------------------------
diff --git a/rt/rs/security/oauth-parent/oauth2/src/test/resources/META-INF/orm.xml b/rt/rs/security/oauth-parent/oauth2/src/test/resources/META-INF/orm.xml
new file mode 100644
index 0000000..0b25439
--- /dev/null
+++ b/rt/rs/security/oauth-parent/oauth2/src/test/resources/META-INF/orm.xml
@@ -0,0 +1,99 @@
+<?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.
+-->
+<entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm_2_0.xsd"
+    version="2.0">
+
+    <mapped-superclass class="org.apache.cxf.rs.security.oauth2.common.AccessToken">
+      <attributes>
+        <id name="tokenKey"/>
+        <element-collection name="parameters">
+            <map-key-column name="propName"/>
+        </element-collection>
+      </attributes>
+    </mapped-superclass>
+    <mapped-superclass class="org.apache.cxf.rs.security.oauth2.common.ServerAccessToken">
+      <attributes>
+        <many-to-one name="subject" fetch="LAZY"/>
+        <many-to-one name="client" fetch="LAZY"/>
+        <many-to-many name="scopes"/>
+        <element-collection name="audiences" target-class="java.lang.String"/>
+        <element-collection name="extraProperties">
+            <map-key-column name="extraPropName"/>
+        </element-collection>
+      </attributes>
+    </mapped-superclass>
+    <mapped-superclass class="org.apache.cxf.rs.security.oauth2.grants.code.AuthorizationCodeGrant">
+      <attributes>
+        <id name="code"/>
+      </attributes>
+    </mapped-superclass>
+    <entity class="org.apache.cxf.rs.security.oauth2.tokens.bearer.BearerAccessToken">
+      <attributes/>
+    </entity>
+    <entity class="org.apache.cxf.rs.security.oauth2.tokens.refresh.RefreshToken">
+      <attributes>
+        <element-collection name="accessTokens" target-class="java.lang.String"/>
+      </attributes>
+    </entity>
+    <entity class="org.apache.cxf.rs.security.oauth2.common.OAuthPermission">
+      <attributes>
+        <id name="permission"/>
+        <element-collection name="httpVerbs" target-class="java.lang.String"/>
+        <element-collection name="uris" target-class="java.lang.String"/>
+      </attributes>
+    </entity>
+    <entity class="org.apache.cxf.rs.security.oauth2.common.Client">
+      <attributes>
+        <id name="clientId"/>
+        <many-to-one name="resourceOwnerSubject" fetch="LAZY"/>
+        <one-to-one name="subject" fetch="LAZY"/>
+        <element-collection name="applicationCertificates" target-class="java.lang.String"/>
+        <element-collection name="redirectUris" target-class="java.lang.String"/>
+        <element-collection name="allowedGrantTypes" target-class="java.lang.String"/>
+        <element-collection name="registeredScopes" target-class="java.lang.String"/>
+        <element-collection name="registeredAudiences" target-class="java.lang.String"/>
+        <element-collection name="properties">
+            <map-key-column name="name"/>
+        </element-collection>
+      </attributes>
+    </entity>
+    <entity class="org.apache.cxf.rs.security.oauth2.common.UserSubject">
+      <attributes>
+        <id name="login"/>
+        <element-collection name="roles" target-class="java.lang.String"/>
+        <element-collection name="properties">
+            <map-key-column name="name"/>
+        </element-collection>
+      </attributes>
+    </entity>
+    <entity class="org.apache.cxf.rs.security.oauth2.grants.code.ServerAuthorizationCodeGrant">
+      <attributes>
+        <many-to-one name="subject" fetch="LAZY"/>
+        <many-to-one name="client" fetch="LAZY"/>
+        <element-collection name="requestedScopes" target-class="java.lang.String"/>
+        <element-collection name="approvedScopes" target-class="java.lang.String"/>
+        <element-collection name="extraProperties">
+            <map-key-column name="extraPropName"/>
+        </element-collection>
+      </attributes>
+    </entity>
+ </entity-mappings>


Mime
View raw message