summaryrefslogtreecommitdiffstats
path: root/sandbox
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-03-22 14:23:16 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-03-22 14:23:16 +0000
commitdbc0816ae90e3d07f8d039fa491be5e432e8f9d3 (patch)
tree3e737015de9daacbc41c7e1fcdc4cbdc9a332ea8 /sandbox
parente3a642e8c03d0686ae070dc30ca42fa622fb3e89 (diff)
Add missing policy definitions
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@757190 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox')
-rw-r--r--sandbox/travelsample/shared-contributions/payment-java-contribution/pom.xml14
-rw-r--r--sandbox/travelsample/shared-contributions/payment-java-contribution/src/main/resources/definitions.xml33
2 files changed, 47 insertions, 0 deletions
diff --git a/sandbox/travelsample/shared-contributions/payment-java-contribution/pom.xml b/sandbox/travelsample/shared-contributions/payment-java-contribution/pom.xml
index 684cc67294..21826c81c0 100644
--- a/sandbox/travelsample/shared-contributions/payment-java-contribution/pom.xml
+++ b/sandbox/travelsample/shared-contributions/payment-java-contribution/pom.xml
@@ -64,6 +64,20 @@
</dependency>
<dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-policy-security</artifactId>
+ <version>1.5-SNAPSHOT</version>
+ <scope>runtime</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-policy-transaction</artifactId>
+ <version>1.5-SNAPSHOT</version>
+ <scope>runtime</scope>
+ </dependency>
+
+ <dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.5</version>
diff --git a/sandbox/travelsample/shared-contributions/payment-java-contribution/src/main/resources/definitions.xml b/sandbox/travelsample/shared-contributions/payment-java-contribution/src/main/resources/definitions.xml
new file mode 100644
index 0000000000..475d923506
--- /dev/null
+++ b/sandbox/travelsample/shared-contributions/payment-java-contribution/src/main/resources/definitions.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="ASCII"?>
+<!--
+ * 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.
+-->
+<definitions xmlns="http://www.osoa.org/xmlns/sca/1.0"
+ targetNamespace="http://www.osoa.org/xmlns/sca/1.0"
+ xmlns:sca="http://www.osoa.org/xmlns/sca/1.0"
+ xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0">
+
+ <!-- Policy Intents Defined by the SCA Runtime -->
+ <intent name="authorization" constrains="sca:implementation"/>
+
+ <!-- Policy intents -->
+ <policySet name="ps1" provides="sca:authorization" appliesTo="sca:implementation.java"/>
+
+ <policySet name="ps2" provides="sca:managedTransaction.global" appliesTo="sca:implementation.java"/>
+
+</definitions>