tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lrese...@apache.org
Subject svn commit: r829147 - in /tuscany/sandbox/sca-cloud-tutorial/cloud-api: ./ META-INF/ src/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/org/apache/tuscany/ src/main/java/org/apache/tuscany/sca/ src/main/java/org/ap...
Date Fri, 23 Oct 2009 17:55:25 GMT
Author: lresende
Date: Fri Oct 23 17:55:24 2009
New Revision: 829147

URL: http://svn.apache.org/viewvc?rev=829147&view=rev
Log:
Straw-man cloud api that abstract different cloud infrastructure services and allow applications
to consume these services independently of the cloud environment.

Added:
    tuscany/sandbox/sca-cloud-tutorial/cloud-api/
    tuscany/sandbox/sca-cloud-tutorial/cloud-api/META-INF/
    tuscany/sandbox/sca-cloud-tutorial/cloud-api/META-INF/MANIFEST.MF
    tuscany/sandbox/sca-cloud-tutorial/cloud-api/pom.xml   (with props)
    tuscany/sandbox/sca-cloud-tutorial/cloud-api/src/
    tuscany/sandbox/sca-cloud-tutorial/cloud-api/src/main/
    tuscany/sandbox/sca-cloud-tutorial/cloud-api/src/main/java/
    tuscany/sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/
    tuscany/sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/
    tuscany/sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/tuscany/
    tuscany/sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/tuscany/sca/
    tuscany/sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/tuscany/sca/cloud/
    tuscany/sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/tuscany/sca/cloud/data/
    tuscany/sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/tuscany/sca/cloud/data/DocumentService.java
  (with props)
    tuscany/sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/tuscany/sca/cloud/user/
    tuscany/sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/tuscany/sca/cloud/user/User.java
  (with props)
    tuscany/sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/tuscany/sca/cloud/user/UserService.java
  (with props)

Added: tuscany/sandbox/sca-cloud-tutorial/cloud-api/META-INF/MANIFEST.MF
URL: http://svn.apache.org/viewvc/tuscany/sandbox/sca-cloud-tutorial/cloud-api/META-INF/MANIFEST.MF?rev=829147&view=auto
==============================================================================
--- tuscany/sandbox/sca-cloud-tutorial/cloud-api/META-INF/MANIFEST.MF (added)
+++ tuscany/sandbox/sca-cloud-tutorial/cloud-api/META-INF/MANIFEST.MF Fri Oct 23 17:55:24
2009
@@ -0,0 +1,19 @@
+Manifest-Version: 1.0
+Export-Package: org.apache.tuscany.sca.cloud.user;version="2.0.0",org.
+ apache.tuscany.sca.cloud.data;uses:="org.apache.tuscany.sca.data.coll
+ ection";version="2.0.0"
+Tool: Bnd-0.0.357
+Bundle-Name: Apache Tuscany SCA Cloud API
+Created-By: 1.6.0_15 (Apple Inc.)
+Bundle-Vendor: The Apache Software Foundation
+Bundle-Version: 2.0.0
+Bnd-LastModified: 1256186081729
+Bundle-ManifestVersion: 2
+Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt
+Bundle-Description: Apache Tuscany SCA Cloud API
+Import-Package: org.apache.tuscany.sca.cloud.data;version="2.0",org.ap
+ ache.tuscany.sca.cloud.user;version="2.0",org.apache.tuscany.sca.data
+ .collection;version="2.0"
+Bundle-SymbolicName: org.apache.tuscany.sca.cloud.api
+Bundle-DocURL: http://www.apache.org/
+

Added: tuscany/sandbox/sca-cloud-tutorial/cloud-api/pom.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/sca-cloud-tutorial/cloud-api/pom.xml?rev=829147&view=auto
==============================================================================
--- tuscany/sandbox/sca-cloud-tutorial/cloud-api/pom.xml (added)
+++ tuscany/sandbox/sca-cloud-tutorial/cloud-api/pom.xml Fri Oct 23 17:55:24 2009
@@ -0,0 +1,53 @@
+<?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.    
+-->
+<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/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>tuscany-modules</artifactId>
+        <version>2.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+    <artifactId>tuscany-cloud-api</artifactId>
+    <name>Apache Tuscany SCA Cloud API</name>
+
+	<dependencies>
+		<dependency>
+			<groupId>org.apache.tuscany.sca</groupId>
+			<artifactId>tuscany-sca-api</artifactId>
+			<version>2.0-SNAPSHOT</version>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.tuscany.sca</groupId>
+			<artifactId>tuscany-data-api</artifactId>
+			<version>2.0-SNAPSHOT</version>
+		</dependency>		
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>4.5</version>
+            <scope>test</scope>
+        </dependency>
+	</dependencies>
+
+</project>
+

Propchange: tuscany/sandbox/sca-cloud-tutorial/cloud-api/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tuscany/sandbox/sca-cloud-tutorial/cloud-api/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: tuscany/sandbox/sca-cloud-tutorial/cloud-api/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: tuscany/sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/tuscany/sca/cloud/data/DocumentService.java
URL: http://svn.apache.org/viewvc/tuscany/sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/tuscany/sca/cloud/data/DocumentService.java?rev=829147&view=auto
==============================================================================
--- tuscany/sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/tuscany/sca/cloud/data/DocumentService.java
(added)
+++ tuscany/sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/tuscany/sca/cloud/data/DocumentService.java
Fri Oct 23 17:55:24 2009
@@ -0,0 +1,33 @@
+/*
+ * 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.    
+ */
+
+package org.apache.tuscany.sca.cloud.data;
+
+import org.apache.tuscany.sca.data.collection.Collection;
+import org.apache.tuscany.sca.data.collection.NotFoundException;
+
+public interface DocumentService<K, D> extends Collection <K, D>{
+
+    /**
+     * Delete multiple items.
+     * 
+     * @param key
+     */
+    void delete(K... keys) throws NotFoundException;
+}

Propchange: tuscany/sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/tuscany/sca/cloud/data/DocumentService.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tuscany/sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/tuscany/sca/cloud/data/DocumentService.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: tuscany/sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/tuscany/sca/cloud/user/User.java
URL: http://svn.apache.org/viewvc/tuscany/sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/tuscany/sca/cloud/user/User.java?rev=829147&view=auto
==============================================================================
--- tuscany/sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/tuscany/sca/cloud/user/User.java
(added)
+++ tuscany/sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/tuscany/sca/cloud/user/User.java
Fri Oct 23 17:55:24 2009
@@ -0,0 +1,30 @@
+/*
+ * 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.    
+ */
+
+package org.apache.tuscany.sca.cloud.user;
+
+public interface User {
+    public static enum ROLES { UNDEFINED, USER, ADMIN};
+    
+    String getUserId();
+    
+    String getEmail();
+    
+    String getNickname();    
+}

Propchange: tuscany/sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/tuscany/sca/cloud/user/User.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tuscany/sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/tuscany/sca/cloud/user/User.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: tuscany/sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/tuscany/sca/cloud/user/UserService.java
URL: http://svn.apache.org/viewvc/tuscany/sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/tuscany/sca/cloud/user/UserService.java?rev=829147&view=auto
==============================================================================
--- tuscany/sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/tuscany/sca/cloud/user/UserService.java
(added)
+++ tuscany/sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/tuscany/sca/cloud/user/UserService.java
Fri Oct 23 17:55:24 2009
@@ -0,0 +1,38 @@
+/*
+ * 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.    
+ */
+
+package org.apache.tuscany.sca.cloud.user;
+
+
+public interface UserService {
+    
+    public String createLoginURL(String destinationURL, String authDomain);
+
+    public String createLoginURL(String destinationURL);
+
+    public String createLogoutURL(String destinationURL, String authDomain);
+
+    public String createLogoutURL(String destinationURL);
+
+    public User getCurrentUser();
+
+    public boolean isUserAdmin();
+
+    public boolean isUserLoggedIn();
+}

Propchange: tuscany/sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/tuscany/sca/cloud/user/UserService.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tuscany/sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/tuscany/sca/cloud/user/UserService.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date



Mime
View raw message