From b85cc12a996022a40e1a3cec0caf6cd432a49f1e Mon Sep 17 00:00:00 2001 From: lresende Date: Sun, 1 Aug 2010 04:53:59 +0000 Subject: This was moved to Apache Nuvem - http://svn.apache.org/repos/asf/incubator/nuvem/ and the original version copied from Tuscany is now at http://svn.apache.org/repos/asf/incubator/nuvem/contrib/nuvem-initial-contribution/ git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@981151 13f79535-47bb-0310-9956-ffa450edef68 --- .../cloud-api/META-INF/MANIFEST.MF | 19 -- sandbox/sca-cloud-tutorial/cloud-api/pom.xml | 53 ---- .../tuscany/sca/cloud/data/DocumentService.java | 33 --- .../org/apache/tuscany/sca/cloud/user/User.java | 48 ---- .../apache/tuscany/sca/cloud/user/UserContext.java | 52 ---- .../apache/tuscany/sca/cloud/user/UserService.java | 40 --- .../cloud-appengine-sdk/build-appengine.xml | 93 ------- .../sca-cloud-tutorial/cloud-appengine-sdk/pom.xml | 84 ------ .../cloud-google/META-INF/MANIFEST.MF | 18 -- sandbox/sca-cloud-tutorial/cloud-google/pom.xml | 90 ------ .../data/impl/DatastoreDocumentServiceImpl.java | 92 ------- .../data/impl/MemcacheDocumentServiceImpl.java | 90 ------ .../sca/cloud/user/impl/GoogleUserService.java | 87 ------ .../tuscany/sca/cloud/data/impl/Customer.java | 51 ---- .../impl/DatastoreDocumentServiceTestCase.java | 27 -- .../sca/cloud/data/impl/datastore.composite | 29 -- sandbox/sca-cloud-tutorial/pom.xml | 60 ---- .../store-appengine-webapp/build-dojo.xml | 92 ------- .../store-appengine-webapp/pom.xml | 216 --------------- .../store-appengine-webapp/src/Workaround.java | 22 -- .../war/META-INF/sca-contribution.xml | 26 -- .../war/WEB-INF/appengine-web.xml | 29 -- .../war/WEB-INF/logging.properties | 37 --- .../store-appengine-webapp/war/WEB-INF/web.xml | 42 --- .../store-appengine-webapp/war/log4j.properties | 28 -- .../store-appengine-webapp/war/store.composite | 60 ---- .../store-appengine-webapp/war/store.css | 22 -- .../store-appengine-webapp/war/store.html | 194 ------------- .../store-assets/META-INF/MANIFEST.MF | 18 -- sandbox/sca-cloud-tutorial/store-assets/pom.xml | 55 ---- .../store-assets/src/main/java/services/Cart.java | 28 -- .../src/main/java/services/Catalog.java | 27 -- .../main/java/services/CatalogAggregatorImpl.java | 66 ----- .../src/main/java/services/CurrencyConverter.java | 31 --- .../main/java/services/CurrencyConverterImpl.java | 43 --- .../src/main/java/services/FruitsCatalogImpl.java | 36 --- .../store-assets/src/main/java/services/Item.java | 73 ----- .../src/main/java/services/ShoppingCart.java | 27 -- .../src/main/java/services/ShoppingCartImpl.java | 109 -------- .../main/java/services/ShoppingCartManager.java | 114 -------- .../store-assets/src/main/java/services/Total.java | 29 -- .../main/java/services/VegetablesCatalogImpl.java | 52 ---- .../main/resources/META-INF/sca-contribution.xml | 25 -- .../store-catalog-appengine-webapp/pom.xml | 146 ---------- .../src/Workaround.java | 22 -- .../war/META-INF/sca-contribution.xml | 24 -- .../war/WEB-INF/appengine-web.xml | 11 - .../war/WEB-INF/logging.properties | 29 -- .../war/WEB-INF/web.xml | 24 -- .../war/catalog.composite | 42 --- .../store-catalog-appengine-webapp/war/index.html | 33 --- .../store-catalog-ibmcloud-webapp/README | 28 -- .../store-catalog-ibmcloud-webapp/pom.xml | 113 -------- .../src/main/resources/catalog.composite | 43 --- .../webapp/META-INF/sca-contribution-generated.xml | 23 -- .../src/main/webapp/WEB-INF/geronimo-web.xml | 50 ---- .../src/main/webapp/WEB-INF/web.xml | 36 --- .../src/main/webapp/index.html | 14 - .../store-catalog-ibmcloud-webapp/store.png | Bin 15670 -> 0 bytes .../store-catalog-ibmcloud-webapp/store.svg | 304 --------------------- .../store-merger-appengine-webapp/build-dojo.xml | 92 ------- .../store-merger-appengine-webapp/pom.xml | 216 --------------- .../src/Workaround.java | 22 -- .../war/META-INF/sca-contribution.xml | 26 -- .../war/WEB-INF/appengine-web.xml | 29 -- .../war/WEB-INF/logging.properties | 37 --- .../war/WEB-INF/web.xml | 42 --- .../war/log4j.properties | 28 -- .../war/store.composite | 68 ----- .../store-merger-appengine-webapp/war/store.css | 22 -- .../store-merger-appengine-webapp/war/store.html | 194 ------------- 71 files changed, 4185 deletions(-) delete mode 100644 sandbox/sca-cloud-tutorial/cloud-api/META-INF/MANIFEST.MF delete mode 100644 sandbox/sca-cloud-tutorial/cloud-api/pom.xml delete mode 100644 sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/tuscany/sca/cloud/data/DocumentService.java delete mode 100644 sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/tuscany/sca/cloud/user/User.java delete mode 100644 sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/tuscany/sca/cloud/user/UserContext.java delete mode 100644 sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/tuscany/sca/cloud/user/UserService.java delete mode 100644 sandbox/sca-cloud-tutorial/cloud-appengine-sdk/build-appengine.xml delete mode 100644 sandbox/sca-cloud-tutorial/cloud-appengine-sdk/pom.xml delete mode 100644 sandbox/sca-cloud-tutorial/cloud-google/META-INF/MANIFEST.MF delete mode 100644 sandbox/sca-cloud-tutorial/cloud-google/pom.xml delete mode 100644 sandbox/sca-cloud-tutorial/cloud-google/src/main/java/org/apache/tuscany/sca/cloud/data/impl/DatastoreDocumentServiceImpl.java delete mode 100644 sandbox/sca-cloud-tutorial/cloud-google/src/main/java/org/apache/tuscany/sca/cloud/data/impl/MemcacheDocumentServiceImpl.java delete mode 100644 sandbox/sca-cloud-tutorial/cloud-google/src/main/java/org/apache/tuscany/sca/cloud/user/impl/GoogleUserService.java delete mode 100644 sandbox/sca-cloud-tutorial/cloud-google/src/test/java/org/apache/tuscany/sca/cloud/data/impl/Customer.java delete mode 100644 sandbox/sca-cloud-tutorial/cloud-google/src/test/java/org/apache/tuscany/sca/cloud/data/impl/DatastoreDocumentServiceTestCase.java delete mode 100644 sandbox/sca-cloud-tutorial/cloud-google/src/test/resources/org/apache/tuscany/sca/cloud/data/impl/datastore.composite delete mode 100644 sandbox/sca-cloud-tutorial/pom.xml delete mode 100644 sandbox/sca-cloud-tutorial/store-appengine-webapp/build-dojo.xml delete mode 100644 sandbox/sca-cloud-tutorial/store-appengine-webapp/pom.xml delete mode 100644 sandbox/sca-cloud-tutorial/store-appengine-webapp/src/Workaround.java delete mode 100644 sandbox/sca-cloud-tutorial/store-appengine-webapp/war/META-INF/sca-contribution.xml delete mode 100644 sandbox/sca-cloud-tutorial/store-appengine-webapp/war/WEB-INF/appengine-web.xml delete mode 100644 sandbox/sca-cloud-tutorial/store-appengine-webapp/war/WEB-INF/logging.properties delete mode 100644 sandbox/sca-cloud-tutorial/store-appengine-webapp/war/WEB-INF/web.xml delete mode 100644 sandbox/sca-cloud-tutorial/store-appengine-webapp/war/log4j.properties delete mode 100644 sandbox/sca-cloud-tutorial/store-appengine-webapp/war/store.composite delete mode 100644 sandbox/sca-cloud-tutorial/store-appengine-webapp/war/store.css delete mode 100644 sandbox/sca-cloud-tutorial/store-appengine-webapp/war/store.html delete mode 100644 sandbox/sca-cloud-tutorial/store-assets/META-INF/MANIFEST.MF delete mode 100644 sandbox/sca-cloud-tutorial/store-assets/pom.xml delete mode 100644 sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/Cart.java delete mode 100644 sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/Catalog.java delete mode 100644 sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/CatalogAggregatorImpl.java delete mode 100644 sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/CurrencyConverter.java delete mode 100644 sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/CurrencyConverterImpl.java delete mode 100644 sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/FruitsCatalogImpl.java delete mode 100644 sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/Item.java delete mode 100644 sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/ShoppingCart.java delete mode 100644 sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/ShoppingCartImpl.java delete mode 100644 sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/ShoppingCartManager.java delete mode 100644 sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/Total.java delete mode 100644 sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/VegetablesCatalogImpl.java delete mode 100644 sandbox/sca-cloud-tutorial/store-assets/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sandbox/sca-cloud-tutorial/store-catalog-appengine-webapp/pom.xml delete mode 100644 sandbox/sca-cloud-tutorial/store-catalog-appengine-webapp/src/Workaround.java delete mode 100644 sandbox/sca-cloud-tutorial/store-catalog-appengine-webapp/war/META-INF/sca-contribution.xml delete mode 100644 sandbox/sca-cloud-tutorial/store-catalog-appengine-webapp/war/WEB-INF/appengine-web.xml delete mode 100644 sandbox/sca-cloud-tutorial/store-catalog-appengine-webapp/war/WEB-INF/logging.properties delete mode 100644 sandbox/sca-cloud-tutorial/store-catalog-appengine-webapp/war/WEB-INF/web.xml delete mode 100644 sandbox/sca-cloud-tutorial/store-catalog-appengine-webapp/war/catalog.composite delete mode 100644 sandbox/sca-cloud-tutorial/store-catalog-appengine-webapp/war/index.html delete mode 100644 sandbox/sca-cloud-tutorial/store-catalog-ibmcloud-webapp/README delete mode 100644 sandbox/sca-cloud-tutorial/store-catalog-ibmcloud-webapp/pom.xml delete mode 100644 sandbox/sca-cloud-tutorial/store-catalog-ibmcloud-webapp/src/main/resources/catalog.composite delete mode 100644 sandbox/sca-cloud-tutorial/store-catalog-ibmcloud-webapp/src/main/webapp/META-INF/sca-contribution-generated.xml delete mode 100644 sandbox/sca-cloud-tutorial/store-catalog-ibmcloud-webapp/src/main/webapp/WEB-INF/geronimo-web.xml delete mode 100644 sandbox/sca-cloud-tutorial/store-catalog-ibmcloud-webapp/src/main/webapp/WEB-INF/web.xml delete mode 100644 sandbox/sca-cloud-tutorial/store-catalog-ibmcloud-webapp/src/main/webapp/index.html delete mode 100644 sandbox/sca-cloud-tutorial/store-catalog-ibmcloud-webapp/store.png delete mode 100644 sandbox/sca-cloud-tutorial/store-catalog-ibmcloud-webapp/store.svg delete mode 100644 sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/build-dojo.xml delete mode 100644 sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/pom.xml delete mode 100644 sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/src/Workaround.java delete mode 100644 sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/war/META-INF/sca-contribution.xml delete mode 100644 sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/war/WEB-INF/appengine-web.xml delete mode 100644 sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/war/WEB-INF/logging.properties delete mode 100644 sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/war/WEB-INF/web.xml delete mode 100644 sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/war/log4j.properties delete mode 100644 sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/war/store.composite delete mode 100644 sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/war/store.css delete mode 100644 sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/war/store.html diff --git a/sandbox/sca-cloud-tutorial/cloud-api/META-INF/MANIFEST.MF b/sandbox/sca-cloud-tutorial/cloud-api/META-INF/MANIFEST.MF deleted file mode 100644 index ec737dc192..0000000000 --- a/sandbox/sca-cloud-tutorial/cloud-api/META-INF/MANIFEST.MF +++ /dev/null @@ -1,19 +0,0 @@ -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.0",org.ap - ache.tuscany.sca.cloud.user;version="2.0.0",org.apache.tuscany.sca.data - .collection;version="2.0.0" -Bundle-SymbolicName: org.apache.tuscany.sca.cloud.api -Bundle-DocURL: http://www.apache.org/ - diff --git a/sandbox/sca-cloud-tutorial/cloud-api/pom.xml b/sandbox/sca-cloud-tutorial/cloud-api/pom.xml deleted file mode 100644 index 6bf4087e6d..0000000000 --- a/sandbox/sca-cloud-tutorial/cloud-api/pom.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-modules - 2.0-SNAPSHOT - ../pom.xml - - tuscany-cloud-api - Apache Tuscany SCA Cloud API - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-SNAPSHOT - - - org.apache.tuscany.sca - tuscany-data-api - 2.0-SNAPSHOT - - - junit - junit - 4.5 - test - - - - - diff --git a/sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/tuscany/sca/cloud/data/DocumentService.java b/sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/tuscany/sca/cloud/data/DocumentService.java deleted file mode 100644 index f496c8f280..0000000000 --- a/sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/tuscany/sca/cloud/data/DocumentService.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * 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 extends Collection { - - /** - * Delete multiple items. - * - * @param key - */ - void delete(K... keys) throws NotFoundException; -} diff --git a/sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/tuscany/sca/cloud/user/User.java b/sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/tuscany/sca/cloud/user/User.java deleted file mode 100644 index 1a5c21a760..0000000000 --- a/sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/tuscany/sca/cloud/user/User.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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 class User { - public static enum ROLES { UNDEFINED, USER, ADMIN}; - - protected String userId; - protected String nickName; - protected String email; - - public User(String userId, String nickName, String email) { - this.userId = userId; - this.nickName = nickName; - this.email = email; - } - - public String getUserId() { - return this.userId; - } - - public String getNickname() { - return this.nickName; - } - - public String getEmail() { - return this.email; - } - - -} diff --git a/sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/tuscany/sca/cloud/user/UserContext.java b/sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/tuscany/sca/cloud/user/UserContext.java deleted file mode 100644 index 87d8e3c0a2..0000000000 --- a/sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/tuscany/sca/cloud/user/UserContext.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * 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 class UserContext extends User { - protected String loginUrl; - protected String logoutUrl; - protected boolean isUserLoggedIn; - - public UserContext(String userId, String nickName, String email, boolean isUserLoggedIn, String loginUrl, String logoutUrl) { - super(userId, nickName, email); - this.isUserLoggedIn = isUserLoggedIn; - this.loginUrl = loginUrl; - this.logoutUrl = logoutUrl; - } - - public UserContext(User user, boolean isUserLoggedIn, String loginUrl, String logoutUrl) { - super(user.getUserId(), user.getNickname(), user.getEmail()); - this.isUserLoggedIn = isUserLoggedIn; - this.loginUrl = loginUrl; - this.logoutUrl = logoutUrl; - } - - public boolean isUserLoggedIn() { - return this.isUserLoggedIn; - } - - public String getLoginUrl() { - return this.loginUrl; - } - - public String getLogoutUrl() { - return this.logoutUrl; - } -} diff --git a/sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/tuscany/sca/cloud/user/UserService.java b/sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/tuscany/sca/cloud/user/UserService.java deleted file mode 100644 index 2f37a8dc6e..0000000000 --- a/sandbox/sca-cloud-tutorial/cloud-api/src/main/java/org/apache/tuscany/sca/cloud/user/UserService.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * 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; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface UserService { - - public User getCurrentUser(); - - public boolean isUserAdmin(); - - public boolean isUserLoggedIn(); - - public UserContext getUserContext(String destinationURL, String authDomain); - - public String createLoginURL(String destinationURL, String authDomain); - - public String createLogoutURL(String destinationURL, String authDomain); - - -} diff --git a/sandbox/sca-cloud-tutorial/cloud-appengine-sdk/build-appengine.xml b/sandbox/sca-cloud-tutorial/cloud-appengine-sdk/build-appengine.xml deleted file mode 100644 index ddf6c203a5..0000000000 --- a/sandbox/sca-cloud-tutorial/cloud-appengine-sdk/build-appengine.xml +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sandbox/sca-cloud-tutorial/cloud-appengine-sdk/pom.xml b/sandbox/sca-cloud-tutorial/cloud-appengine-sdk/pom.xml deleted file mode 100644 index b0a516f5e7..0000000000 --- a/sandbox/sca-cloud-tutorial/cloud-appengine-sdk/pom.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-modules - 2.0-SNAPSHOT - ../pom.xml - - tuscany-cloud-appengine-sdk - pom - Apache Tuscany SCA Cloud API Google AppEngine SDK - - - - - org.apache.maven.plugins - maven-antrun-plugin - - - - ant - ant-trax - 1.6.5 - - - - - install-appengine - validate - - run - - - - - - - - - - - clean-appengine-files - clean - - run - - - - - - - - - - - - - - - - - - diff --git a/sandbox/sca-cloud-tutorial/cloud-google/META-INF/MANIFEST.MF b/sandbox/sca-cloud-tutorial/cloud-google/META-INF/MANIFEST.MF deleted file mode 100644 index 6e6063580b..0000000000 --- a/sandbox/sca-cloud-tutorial/cloud-google/META-INF/MANIFEST.MF +++ /dev/null @@ -1,18 +0,0 @@ -Manifest-Version: 1.0 -Export-Package: org.apache.tuscany.sca.cloud.data.impl, - org.apache.tuscany.sca.cloud.user.impl -Tool: Bnd-0.0.357 -Bundle-Name: Apache Tuscany SCA Cloud API - Google Implementation -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.0",org.ap - ache.tuscany.sca.cloud.user;version="2.0.0",org.apache.tuscany.sca.data - .collection;version="2.0.0" -Bundle-SymbolicName: org.apache.tuscany.sca.cloud.google -Bundle-DocURL: http://www.apache.org/ - diff --git a/sandbox/sca-cloud-tutorial/cloud-google/pom.xml b/sandbox/sca-cloud-tutorial/cloud-google/pom.xml deleted file mode 100644 index f36557661a..0000000000 --- a/sandbox/sca-cloud-tutorial/cloud-google/pom.xml +++ /dev/null @@ -1,90 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-modules - 2.0-SNAPSHOT - ../pom.xml - - tuscany-cloud-google - Apache Tuscany SCA Cloud API Google AppEngine Implementation - - - - org.apache.tuscany.sca - tuscany-cloud-api - 2.0-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-cloud-appengine-sdk - 2.0-SNAPSHOT - pom - - - - com.google.appengine - appengine-api - 1.2.6 - provided - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-SNAPSHOT - test - - - - junit - junit - 4.5 - test - - - - - - - org.apache.maven.plugins - maven-eclipse-plugin - - - com.google.appengine:appengine-tools - com.google.appengine:appengine-api - com.google.appengine:appengine-local-runtime-shared - - - org.eclipse.jdt.launching.JRE_CONTAINER - com.google.appengine.eclipse.core.GAE_CONTAINER - - - - - - - - diff --git a/sandbox/sca-cloud-tutorial/cloud-google/src/main/java/org/apache/tuscany/sca/cloud/data/impl/DatastoreDocumentServiceImpl.java b/sandbox/sca-cloud-tutorial/cloud-google/src/main/java/org/apache/tuscany/sca/cloud/data/impl/DatastoreDocumentServiceImpl.java deleted file mode 100644 index 05a11f0338..0000000000 --- a/sandbox/sca-cloud-tutorial/cloud-google/src/main/java/org/apache/tuscany/sca/cloud/data/impl/DatastoreDocumentServiceImpl.java +++ /dev/null @@ -1,92 +0,0 @@ -/* - * 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.impl; - -import java.util.UUID; - -import org.apache.tuscany.sca.cloud.data.DocumentService; -import org.apache.tuscany.sca.data.collection.Entry; -import org.apache.tuscany.sca.data.collection.NotFoundException; -import org.oasisopen.sca.annotation.Init; - -import com.google.appengine.api.datastore.DatastoreService; -import com.google.appengine.api.datastore.DatastoreServiceFactory; -import com.google.appengine.api.datastore.Entity; -import com.google.appengine.api.datastore.EntityNotFoundException; -import com.google.appengine.api.datastore.Key; -import com.google.appengine.api.datastore.KeyFactory; - -public class DatastoreDocumentServiceImpl implements DocumentService { - private DatastoreService googleDataStoreService; - - @Init - public void init() { - googleDataStoreService = DatastoreServiceFactory.getDatastoreService(); - } - - public Entry[] getAll() { - throw new UnsupportedOperationException(); - } - - public Entity get(Key key) throws NotFoundException { - Entity entity = null; - - try { - entity = googleDataStoreService.get(key); - } catch(EntityNotFoundException nf) { - throw new NotFoundException(nf); - } - - return entity; - } - - - public Key post(Key key, Entity entity) { - - if( key == null ) { - key = KeyFactory.createKey("key", UUID.randomUUID().toString()); - } - - return googleDataStoreService.put(entity); - } - - public void put(Key key, Entity entity) throws NotFoundException { - if( get(key) == null) { - throw new NotFoundException("Could not find entity with key '" + key.toString() +"'"); - } - - googleDataStoreService.put(entity); - } - - public void delete(Key key) throws NotFoundException { - googleDataStoreService.delete(key); - - } - - public void delete(Key... keys) throws NotFoundException { - googleDataStoreService.delete(keys); - - } - - public Entry[] query(String query) { - throw new UnsupportedOperationException(); - } - -} diff --git a/sandbox/sca-cloud-tutorial/cloud-google/src/main/java/org/apache/tuscany/sca/cloud/data/impl/MemcacheDocumentServiceImpl.java b/sandbox/sca-cloud-tutorial/cloud-google/src/main/java/org/apache/tuscany/sca/cloud/data/impl/MemcacheDocumentServiceImpl.java deleted file mode 100644 index 890747f4aa..0000000000 --- a/sandbox/sca-cloud-tutorial/cloud-google/src/main/java/org/apache/tuscany/sca/cloud/data/impl/MemcacheDocumentServiceImpl.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.impl; - -import java.util.UUID; - -import org.apache.tuscany.sca.cloud.data.DocumentService; -import org.apache.tuscany.sca.data.collection.Entry; -import org.apache.tuscany.sca.data.collection.NotFoundException; -import org.oasisopen.sca.annotation.Init; -import org.oasisopen.sca.annotation.Property; - -import com.google.appengine.api.memcache.Expiration; -import com.google.appengine.api.memcache.MemcacheService; -import com.google.appengine.api.memcache.MemcacheServiceFactory; - -public class MemcacheDocumentServiceImpl implements DocumentService { - private MemcacheService googleMemecacheService; - - @Property(required=false) - protected Expiration defaultExpiration = Expiration.byDeltaSeconds(3600); // 1hr - - @Init - public void init() { - googleMemecacheService = MemcacheServiceFactory.getMemcacheService(); - } - - public Entry[] getAll() { - throw new UnsupportedOperationException(); - } - - public Object get(Object key) throws NotFoundException { - Object entity = null; - - entity = googleMemecacheService.get(key); - - if(entity == null) { - throw new NotFoundException("Could not find object with key '" + key.toString() + "'"); - } - - return entity; - } - - public Object post(Object key, Object entity) { - if( key == null ) { - key = UUID.randomUUID().toString(); - } - - googleMemecacheService.put(key, entity, defaultExpiration); - - return entity; - } - - public void put(Object key, Object entity) throws NotFoundException { - if( get(key) == null) { - throw new NotFoundException("Could not find entity with key '" + key.toString() +"'"); - } - - googleMemecacheService.put(key, entity, defaultExpiration); - } - - public void delete(Object key) throws NotFoundException { - googleMemecacheService.delete(key); - } - - public void delete(Object... keys) throws NotFoundException { - googleMemecacheService.delete(keys); - } - - public Entry[] query(String query) { - throw new UnsupportedOperationException(); - } -} diff --git a/sandbox/sca-cloud-tutorial/cloud-google/src/main/java/org/apache/tuscany/sca/cloud/user/impl/GoogleUserService.java b/sandbox/sca-cloud-tutorial/cloud-google/src/main/java/org/apache/tuscany/sca/cloud/user/impl/GoogleUserService.java deleted file mode 100644 index bb449b22d3..0000000000 --- a/sandbox/sca-cloud-tutorial/cloud-google/src/main/java/org/apache/tuscany/sca/cloud/user/impl/GoogleUserService.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * 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.impl; - -import org.apache.tuscany.sca.cloud.user.User; -import org.apache.tuscany.sca.cloud.user.UserContext; -import org.apache.tuscany.sca.cloud.user.UserService; -import org.oasisopen.sca.annotation.Init; -import org.oasisopen.sca.annotation.Scope; -import org.oasisopen.sca.annotation.Service; - -import com.google.appengine.api.users.UserServiceFactory; - -@Service(UserService.class) -@Scope("COMPOSITE") -public class GoogleUserService implements UserService { - private com.google.appengine.api.users.UserService googleUerService; - - @Init - public void init() { - googleUerService = UserServiceFactory.getUserService(); - } - - - public User getCurrentUser() { - return fromGoogleUser(googleUerService.getCurrentUser()); - } - - public boolean isUserAdmin() { - //FIXME handle via roles from tuscany user api - throw new UnsupportedOperationException("Not supported yet"); - } - - public boolean isUserLoggedIn() { - return googleUerService.isUserLoggedIn(); - } - - public UserContext getUserContext(String destinationURL, String authDomain) { - return new UserContext (getCurrentUser(), - isUserLoggedIn(), - createLoginURL(destinationURL, authDomain), - createLogoutURL(destinationURL, authDomain)); - } - - public String createLoginURL(String destinationURL, String authDomain) { - if(authDomain != null && authDomain.length() > 0) { - return googleUerService.createLoginURL(destinationURL, authDomain); - } else { - return googleUerService.createLoginURL(destinationURL); - } - } - - public String createLogoutURL(String destinationURL, String authDomain) { - if(authDomain != null && authDomain.length() > 0) { - return googleUerService.createLogoutURL(destinationURL, authDomain); - } else { - return googleUerService.createLogoutURL(destinationURL); - } - } - - private static User fromGoogleUser(com.google.appengine.api.users.User googleUser) { - if(googleUser != null) { - return new User(googleUser.getUserId(), googleUser.getNickname(), googleUser.getEmail()); - } - - return new User(null, null, null); - } - - -} diff --git a/sandbox/sca-cloud-tutorial/cloud-google/src/test/java/org/apache/tuscany/sca/cloud/data/impl/Customer.java b/sandbox/sca-cloud-tutorial/cloud-google/src/test/java/org/apache/tuscany/sca/cloud/data/impl/Customer.java deleted file mode 100644 index 3958be61ef..0000000000 --- a/sandbox/sca-cloud-tutorial/cloud-google/src/test/java/org/apache/tuscany/sca/cloud/data/impl/Customer.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * 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.impl; - -import java.io.Serializable; - - -public class Customer implements Serializable { - - private static final long serialVersionUID = 3465788478651204747L; - - private String id; - private String name; - private String creditCard; - - public String getId() { - return id; - } - public void setId(String id) { - this.id = id; - } - public String getName() { - return name; - } - public void setName(String name) { - this.name = name; - } - public String getCreditCard() { - return creditCard; - } - public void setCreditCard(String creditCard) { - this.creditCard = creditCard; - } -} diff --git a/sandbox/sca-cloud-tutorial/cloud-google/src/test/java/org/apache/tuscany/sca/cloud/data/impl/DatastoreDocumentServiceTestCase.java b/sandbox/sca-cloud-tutorial/cloud-google/src/test/java/org/apache/tuscany/sca/cloud/data/impl/DatastoreDocumentServiceTestCase.java deleted file mode 100644 index 55c851b99b..0000000000 --- a/sandbox/sca-cloud-tutorial/cloud-google/src/test/java/org/apache/tuscany/sca/cloud/data/impl/DatastoreDocumentServiceTestCase.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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.impl; - -import org.junit.Ignore; - -@Ignore("Nothing to do here") -public class DatastoreDocumentServiceTestCase { - -} diff --git a/sandbox/sca-cloud-tutorial/cloud-google/src/test/resources/org/apache/tuscany/sca/cloud/data/impl/datastore.composite b/sandbox/sca-cloud-tutorial/cloud-google/src/test/resources/org/apache/tuscany/sca/cloud/data/impl/datastore.composite deleted file mode 100644 index 7397540d9a..0000000000 --- a/sandbox/sca-cloud-tutorial/cloud-google/src/test/resources/org/apache/tuscany/sca/cloud/data/impl/datastore.composite +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - diff --git a/sandbox/sca-cloud-tutorial/pom.xml b/sandbox/sca-cloud-tutorial/pom.xml deleted file mode 100644 index 271a198ebb..0000000000 --- a/sandbox/sca-cloud-tutorial/pom.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 2.0-SNAPSHOT - ../pom.xml - - tuscany-cloud - pom - Apache Tuscany SCA Cloud Tutorial - - - - default - - true - - - cloud-api - cloud-appengine-sdk - cloud-google - store-assets - store-appengine-webapp - store-merger-appengine-webapp - store-catalog-appengine-webapp - store-catalog-ibmcloud-webapp - - - - - eclipse - - cloud-api - store-assets - store-catalog-ibmcloud-webapp - - - - \ No newline at end of file diff --git a/sandbox/sca-cloud-tutorial/store-appengine-webapp/build-dojo.xml b/sandbox/sca-cloud-tutorial/store-appengine-webapp/build-dojo.xml deleted file mode 100644 index 4708b1bcea..0000000000 --- a/sandbox/sca-cloud-tutorial/store-appengine-webapp/build-dojo.xml +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sandbox/sca-cloud-tutorial/store-appengine-webapp/pom.xml b/sandbox/sca-cloud-tutorial/store-appengine-webapp/pom.xml deleted file mode 100644 index bb3ad0a80e..0000000000 --- a/sandbox/sca-cloud-tutorial/store-appengine-webapp/pom.xml +++ /dev/null @@ -1,216 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 2.0-SNAPSHOT - ../pom.xml - - store-appengine-webapp - war - Apache Tuscany Store - - - - org.apache.tuscany.sca - store-assets - 2.0-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-cloud-api - 2.0-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-cloud-google - 2.0-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jsonrpc-runtime - 2.0-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-host-webapp - 2.0-SNAPSHOT - runtime - - - org.apache.tuscany.sca - tuscany-databinding-jaxb - - - org.apache.tuscany.sca - tuscany-interface-java-jaxws - - - - - - javax.servlet - servlet-api - 2.5 - provided - - - - - ${artifactId} - src - war/WEB-INF/classes - - - org.apache.maven.plugins - maven-eclipse-plugin - - - **/* - - - - org.eclipse.jdt.core.javanature - com.google.appengine.eclipse.core.gaeNature - com.google.gdt.eclipse.core.webAppNature - - - org.eclipse.jdt.core.javabuilder - com.google.appengine.eclipse.core.enhancerbuilder - com.google.appengine.eclipse.core.projectValidator - com.google.gdt.eclipse.core.webAppProjectValidator - - - org.eclipse.jdt.launching.JRE_CONTAINER - com.google.appengine.eclipse.core.GAE_CONTAINER - - - - - - org.apache.maven.plugins - maven-antrun-plugin - - - - ant - ant-trax - 1.6.5 - - - - - install-dojo - validate - - run - - - - - - - - - - - copy-dojo-files - generate-resources - - run - - - - - - - - - - - - clean-dojo-files - clean - - run - - - - - - - - - - - - - - - org.apache.maven.plugins - maven-dependency-plugin - 2.1 - - - copy-dependencies - process-sources - - copy-dependencies - - - war/WEB-INF/lib - true - - - - - - - org.apache.maven.plugins - maven-war-plugin - 2.1-beta-1 - - war - - - - - - diff --git a/sandbox/sca-cloud-tutorial/store-appengine-webapp/src/Workaround.java b/sandbox/sca-cloud-tutorial/store-appengine-webapp/src/Workaround.java deleted file mode 100644 index 2f345ecedd..0000000000 --- a/sandbox/sca-cloud-tutorial/store-appengine-webapp/src/Workaround.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * 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. - */ - -public class Workaround { - -} diff --git a/sandbox/sca-cloud-tutorial/store-appengine-webapp/war/META-INF/sca-contribution.xml b/sandbox/sca-cloud-tutorial/store-appengine-webapp/war/META-INF/sca-contribution.xml deleted file mode 100644 index 87db06d8dd..0000000000 --- a/sandbox/sca-cloud-tutorial/store-appengine-webapp/war/META-INF/sca-contribution.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/sandbox/sca-cloud-tutorial/store-appengine-webapp/war/WEB-INF/appengine-web.xml b/sandbox/sca-cloud-tutorial/store-appengine-webapp/war/WEB-INF/appengine-web.xml deleted file mode 100644 index bfec5c4e26..0000000000 --- a/sandbox/sca-cloud-tutorial/store-appengine-webapp/war/WEB-INF/appengine-web.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - tuscany-store - 5 - - - - - - - \ No newline at end of file diff --git a/sandbox/sca-cloud-tutorial/store-appengine-webapp/war/WEB-INF/logging.properties b/sandbox/sca-cloud-tutorial/store-appengine-webapp/war/WEB-INF/logging.properties deleted file mode 100644 index bd3b8308fc..0000000000 --- a/sandbox/sca-cloud-tutorial/store-appengine-webapp/war/WEB-INF/logging.properties +++ /dev/null @@ -1,37 +0,0 @@ -# -# -# 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. -# -# -# A default java.util.logging configuration. -# (All App Engine logging is through java.util.logging by default). -# -# To use this configuration, copy it into your application's WEB-INF -# folder and add the following to your appengine-web.xml: -# -# -# -# -# - -# Set the default logging level for all loggers to WARNING -.level = WARNING - -#tuscany debug messages -org.apache.tuscany.level = WARNING - diff --git a/sandbox/sca-cloud-tutorial/store-appengine-webapp/war/WEB-INF/web.xml b/sandbox/sca-cloud-tutorial/store-appengine-webapp/war/WEB-INF/web.xml deleted file mode 100644 index 31fc39a160..0000000000 --- a/sandbox/sca-cloud-tutorial/store-appengine-webapp/war/WEB-INF/web.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - tuscany - org.apache.tuscany.sca.host.webapp.TuscanyServletFilter - - - - tuscany - /* - - - - - store.html - - - diff --git a/sandbox/sca-cloud-tutorial/store-appengine-webapp/war/log4j.properties b/sandbox/sca-cloud-tutorial/store-appengine-webapp/war/log4j.properties deleted file mode 100644 index 036b48afd7..0000000000 --- a/sandbox/sca-cloud-tutorial/store-appengine-webapp/war/log4j.properties +++ /dev/null @@ -1,28 +0,0 @@ -# -# -# 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. -# -# - -# Configure the console as our one appender -log4j.appender.A1=org.apache.log4j.ConsoleAppender -log4j.appender.A1.layout=org.apache.log4j.PatternLayout -log4j.appender.A1.layout.ConversionPattern=%d{HH:mm:ss,SSS} %-5p [%c] - %m%n - -#tuscany debug messages -log4j.category.org.apache.tuscany=ALL,A1 diff --git a/sandbox/sca-cloud-tutorial/store-appengine-webapp/war/store.composite b/sandbox/sca-cloud-tutorial/store-appengine-webapp/war/store.composite deleted file mode 100644 index 23505dcd5b..0000000000 --- a/sandbox/sca-cloud-tutorial/store-appengine-webapp/war/store.composite +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - USD - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sandbox/sca-cloud-tutorial/store-appengine-webapp/war/store.css b/sandbox/sca-cloud-tutorial/store-appengine-webapp/war/store.css deleted file mode 100644 index 0b1d541bea..0000000000 --- a/sandbox/sca-cloud-tutorial/store-appengine-webapp/war/store.css +++ /dev/null @@ -1,22 +0,0 @@ - \ No newline at end of file diff --git a/sandbox/sca-cloud-tutorial/store-appengine-webapp/war/store.html b/sandbox/sca-cloud-tutorial/store-appengine-webapp/war/store.html deleted file mode 100644 index aadb4ebd4f..0000000000 --- a/sandbox/sca-cloud-tutorial/store-appengine-webapp/war/store.html +++ /dev/null @@ -1,194 +0,0 @@ - - - - -Online Store - Powered by Apache Tuscany - - - - - - - - - - - - -
-
- -

Store

- - - -
-

Catalog

-
-
-
- -
- - -
- -

Your Shopping Cart

-
-
-
-
-
- - -
-
- - - \ No newline at end of file diff --git a/sandbox/sca-cloud-tutorial/store-assets/META-INF/MANIFEST.MF b/sandbox/sca-cloud-tutorial/store-assets/META-INF/MANIFEST.MF deleted file mode 100644 index a03e301420..0000000000 --- a/sandbox/sca-cloud-tutorial/store-assets/META-INF/MANIFEST.MF +++ /dev/null @@ -1,18 +0,0 @@ -Manifest-Version: 1.0 -Export-Package: services -Tool: Bnd-0.0.357 -Bundle-Name: Apache Tuscany SCA Cloud Store Tutorial Assets -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.0", - org.apache.tuscany.sca.cloud.user;version="2.0.0", - org.apache.tuscany.sca.data.collection;version="2.0.0", - services -Bundle-SymbolicName: org.apache.tuscany.sca.store.assets -Bundle-DocURL: http://www.apache.org/ - diff --git a/sandbox/sca-cloud-tutorial/store-assets/pom.xml b/sandbox/sca-cloud-tutorial/store-assets/pom.xml deleted file mode 100644 index 7fb5fed85c..0000000000 --- a/sandbox/sca-cloud-tutorial/store-assets/pom.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 2.0-SNAPSHOT - ../pom.xml - - store-assets - 2.0-SNAPSHOT - Apache Tuscany SCA Cloud store common assets - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-cloud-api - 2.0-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-cloud-google - 2.0-SNAPSHOT - - - - diff --git a/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/Cart.java b/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/Cart.java deleted file mode 100644 index 3fb5439bc3..0000000000 --- a/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/Cart.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 services; - -import org.apache.tuscany.sca.data.collection.Collection; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface Cart extends Collection { - -} diff --git a/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/Catalog.java b/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/Catalog.java deleted file mode 100644 index b8630370ad..0000000000 --- a/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/Catalog.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 services; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface Catalog { - Item[] get(); -} diff --git a/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/CatalogAggregatorImpl.java b/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/CatalogAggregatorImpl.java deleted file mode 100644 index 1d4b8fedfa..0000000000 --- a/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/CatalogAggregatorImpl.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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 services; - -import org.oasisopen.sca.annotation.Property; -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Scope; -import org.oasisopen.sca.annotation.Service; - -@Service(Catalog.class) -@Scope("COMPOSITE") -public class CatalogAggregatorImpl implements Catalog { - - @Property - public String currencyCode = "USD"; - - @Reference - public CurrencyConverter currencyConverter; - - @Reference - public Catalog fruitsCatalog; - - @Reference - public Catalog vegetablesCatalog; - - public Item[] get() { - String currencySymbol = currencyConverter.getCurrencySymbol(currencyCode); - - Item[] fruits = fruitsCatalog.get(); - Item[] vegetables = vegetablesCatalog.get(); - - Item[] catalog = new Item[fruits.length + vegetables.length]; - int i =0; - for (Item item: fruits) { - double price = item.getPrice(); - price = currencyConverter.getConversion("USD", currencyCode, price); - catalog[i++] = new Item(item.getName(), currencyCode, currencySymbol, price); - } - - for (Item item: vegetables) { - double price = item.getPrice(); - price = currencyConverter.getConversion("USD", currencyCode, price); - catalog[i++] = new Item(item.getName(), currencyCode, currencySymbol, price); - } - - return catalog; - } - -} diff --git a/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/CurrencyConverter.java b/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/CurrencyConverter.java deleted file mode 100644 index 59435d9099..0000000000 --- a/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/CurrencyConverter.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * 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 services; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface CurrencyConverter { - public double getConversion(String fromCurrenycCode, - String toCurrencyCode, - double amount); - - public String getCurrencySymbol(String currencyCode); -} diff --git a/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/CurrencyConverterImpl.java b/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/CurrencyConverterImpl.java deleted file mode 100644 index d185a2fe83..0000000000 --- a/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/CurrencyConverterImpl.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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 services; - -import org.oasisopen.sca.annotation.Service; - -@Service(CurrencyConverter.class) -public class CurrencyConverterImpl implements CurrencyConverter { - public double getConversion(String fromCurrencyCode, - String toCurrencyCode, - double amount) { - if (toCurrencyCode.equals("USD")) - return amount; - else if (toCurrencyCode.equals("EUR")) - return ((double)Math.round(amount * 0.7256 * 100)) /100; - return 0; - } - - public String getCurrencySymbol(String currencyCode) { - if (currencyCode.equals("USD")) - return "$"; - else if (currencyCode.equals("EUR")) - return "E"; //"€"; - return "?"; - } -} diff --git a/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/FruitsCatalogImpl.java b/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/FruitsCatalogImpl.java deleted file mode 100644 index c480991ef7..0000000000 --- a/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/FruitsCatalogImpl.java +++ /dev/null @@ -1,36 +0,0 @@ -package services; - -import java.util.ArrayList; -import java.util.List; - -import org.oasisopen.sca.annotation.Init; -import org.oasisopen.sca.annotation.Property; -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Scope; -import org.oasisopen.sca.annotation.Service; - -@Service(Catalog.class) -@Scope("COMPOSITE") -public class FruitsCatalogImpl implements Catalog { - @Property - public String currencyCode = "USD"; - - @Reference - public CurrencyConverter currencyConverter; - - private List catalog = new ArrayList(); - - @Init - public void init() { - String currencySymbol = currencyConverter.getCurrencySymbol(currencyCode); - catalog.add(new Item("Apple", currencyCode, currencySymbol, currencyConverter.getConversion("USD", currencyCode, 2.99))); - catalog.add(new Item("Orange", currencyCode, currencySymbol, currencyConverter.getConversion("USD", currencyCode, 3.55))); - catalog.add(new Item("Pear", currencyCode, currencySymbol, currencyConverter.getConversion("USD", currencyCode, 1.55))); - } - - public Item[] get() { - Item[] catalogArray = new Item[catalog.size()]; - catalog.toArray(catalogArray); - return catalogArray; - } -} diff --git a/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/Item.java b/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/Item.java deleted file mode 100644 index c4397835ba..0000000000 --- a/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/Item.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * 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 services; - -import java.io.Serializable; - -public class Item implements Serializable { - private static final long serialVersionUID = -5847326138627338217L; - - private String name; - private String currencyCode; - private String currencySymbol; - private double price; - - public Item() { - } - - public Item(String name, String currencyCode, String currencySymbol, double price) { - this.name = name; - this.currencyCode = currencyCode; - this.currencySymbol = currencySymbol; - this.price = price; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getCurrencyCode() { - return this.currencyCode; - } - - public void setCurrencyCode(String currencyCode) { - this.currencyCode = currencyCode; - } - - public String getCurrencySymbol() { - return this.currencySymbol; - } - - public void setCurrencySymbol(String currencySymbol) { - this.currencySymbol = currencySymbol; - } - - public double getPrice() { - return price; - } - - public void setPrice(double price) { - this.price = price; - } -} diff --git a/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/ShoppingCart.java b/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/ShoppingCart.java deleted file mode 100644 index e4d590484c..0000000000 --- a/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/ShoppingCart.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 services; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface ShoppingCart extends Cart, Total{ - -} diff --git a/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/ShoppingCartImpl.java b/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/ShoppingCartImpl.java deleted file mode 100644 index febcc3a78f..0000000000 --- a/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/ShoppingCartImpl.java +++ /dev/null @@ -1,109 +0,0 @@ -/* - * 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 services; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.UUID; -import java.util.logging.Logger; - -import org.apache.tuscany.sca.data.collection.Entry; -import org.apache.tuscany.sca.data.collection.NotFoundException; -import org.oasisopen.sca.annotation.Scope; - -@Scope("COMPOSITE") -public class ShoppingCartImpl implements ShoppingCart { - private static final Logger log = Logger.getLogger(ShoppingCartImpl.class.getName()); - - //private DatastoreDocumentServiceImpl cart = new DatastoreDocumentServiceImpl(); - private Map cart = new HashMap(); - - public Entry[] getAll() { - Entry[] entries = new Entry[cart.size()]; - int i = 0; - for (Map.Entry e: cart.entrySet()) { - entries[i++] = new Entry(e.getKey(), e.getValue()); - } - return entries; - } - - public Item get(String key) throws NotFoundException { - Item item = cart.get(key); - if (item == null) { - throw new NotFoundException(key); - } else { - return item; - } - } - - public String post(String key, Item item) { - if (key == null || key.length() == 0) { - key ="cart-" + UUID.randomUUID().toString(); - } - cart.put(key, item); - return key; - } - - public void put(String key, Item item) throws NotFoundException { - if (!cart.containsKey(key)) { - throw new NotFoundException(key); - } - cart.put(key, item); - } - - public void delete(String key) throws NotFoundException { - if (key == null || key.equals("")) { - cart.clear(); - } else { - Item item = cart.remove(key); - if (item == null) - throw new NotFoundException(key); - } - } - - public Entry[] query(String queryString) { - List> entries = new ArrayList>(); - if (queryString.startsWith("name=")) { - String name = queryString.substring(5); - for (Map.Entry e: cart.entrySet()) { - Item item = e.getValue(); - if (item.getName().equals(name)) { - entries.add(new Entry(e.getKey(), e.getValue())); - } - } - } - return entries.toArray(new Entry[entries.size()]); - } - - public String getTotal() { - double total = 0; - String currencySymbol = ""; - if (!cart.isEmpty()) { - Item item = cart.values().iterator().next(); - currencySymbol = item.getCurrencySymbol(); - } - for (Item item : cart.values()) { - total += item.getPrice(); - } - return currencySymbol + String.valueOf(total); - } -} diff --git a/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/ShoppingCartManager.java b/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/ShoppingCartManager.java deleted file mode 100644 index be2c9216c8..0000000000 --- a/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/ShoppingCartManager.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * 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 services; - -import java.util.HashMap; -import java.util.Map; -import java.util.UUID; -import java.util.logging.Logger; - -import org.apache.tuscany.sca.cloud.user.User; -import org.apache.tuscany.sca.cloud.user.UserService; -import org.apache.tuscany.sca.data.collection.Entry; -import org.apache.tuscany.sca.data.collection.NotFoundException; -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Scope; - -@Scope("COMPOSITE") -public class ShoppingCartManager implements ShoppingCart { - private static final Logger log = Logger.getLogger(ShoppingCartManager.class.getName()); - private static String ANONYMOUS = "anonymous"; - - private Map carts = new HashMap(); - - @Reference - private UserService userService; - - public Entry[] getAll() { - return getUserShoppingCart().getAll(); - } - - public Item get(String key) throws NotFoundException { - return getUserShoppingCart().get(key); - } - - public String post(String key, Item item) { - if (key == null || key.length() == 0) { - key = this.generateItemKey(); - } - return getUserShoppingCart().post(key, item); - } - - public void put(String key, Item item) throws NotFoundException { - getUserShoppingCart().put(key,item); - } - - public Entry[] query(String queryString) { - return getUserShoppingCart().query(queryString); - } - - public void delete(String key) throws NotFoundException { - this.getUserShoppingCart().delete(key); - } - - public String getTotal() { - return this.getUserShoppingCart().getTotal(); - } - - /** - * Utility functions - */ - - - private ShoppingCart getUserShoppingCart() { - String key = getCartKey(); - ShoppingCart userCart = carts.get(key); - if(userCart == null) { - userCart = new ShoppingCartImpl(); - carts.put(key, userCart); - } - return userCart; - } - - private String getUserId() { - String userId = null; - if(userService != null) { - try { - User user = userService.getCurrentUser(); - userId = user.getUserId(); - } catch(Exception e) { - //ignore - e.printStackTrace(); - } - } - if(userId == null || userId.length() == 0) { - userId = ANONYMOUS; - } - return userId; - } - private String getCartKey() { - String cartKey = "cart-" + this.getUserId(); - return cartKey; - } - private String generateItemKey() { - String itemKey = getCartKey() + "-item-" + UUID.randomUUID().toString(); - return itemKey; - } -} diff --git a/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/Total.java b/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/Total.java deleted file mode 100644 index b77cc1c7ac..0000000000 --- a/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/Total.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * 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 services; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface Total { - - String getTotal(); - -} diff --git a/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/VegetablesCatalogImpl.java b/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/VegetablesCatalogImpl.java deleted file mode 100644 index e7ae507dd4..0000000000 --- a/sandbox/sca-cloud-tutorial/store-assets/src/main/java/services/VegetablesCatalogImpl.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * 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 services; - -import java.util.ArrayList; -import java.util.List; - -import org.oasisopen.sca.annotation.Init; -import org.oasisopen.sca.annotation.Property; -import org.oasisopen.sca.annotation.Reference; - -public class VegetablesCatalogImpl implements Catalog { - - @Property - public String currencyCode = "USD"; - - @Reference - public CurrencyConverter currencyConverter; - - private List catalog = new ArrayList(); - - @Init - public void init() { - String currencySymbol = currencyConverter.getCurrencySymbol(currencyCode); - catalog.add(new Item("Broccoli", currencyCode, currencySymbol, currencyConverter.getConversion("USD", currencyCode, 2.99))); - catalog.add(new Item("Asparagus", currencyCode, currencySymbol, currencyConverter.getConversion("USD", currencyCode, 3.55))); - catalog.add(new Item("Cauliflower", currencyCode, currencySymbol, currencyConverter.getConversion("USD", currencyCode, 1.55))); - } - - public Item[] get() { - Item[] catalogArray = new Item[catalog.size()]; - catalog.toArray(catalogArray); - return catalogArray; - } -} diff --git a/sandbox/sca-cloud-tutorial/store-assets/src/main/resources/META-INF/sca-contribution.xml b/sandbox/sca-cloud-tutorial/store-assets/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 10a449c56b..0000000000 --- a/sandbox/sca-cloud-tutorial/store-assets/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/sandbox/sca-cloud-tutorial/store-catalog-appengine-webapp/pom.xml b/sandbox/sca-cloud-tutorial/store-catalog-appengine-webapp/pom.xml deleted file mode 100644 index 28ba9c2d00..0000000000 --- a/sandbox/sca-cloud-tutorial/store-catalog-appengine-webapp/pom.xml +++ /dev/null @@ -1,146 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 2.0-SNAPSHOT - ../pom.xml - - store-catalog-appengine-webapp - war - Apache Tuscany Store Catalog Service - - - - org.apache.tuscany.sca - store-assets - 2.0-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jsonrpc-runtime - 2.0-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-host-webapp - 2.0-SNAPSHOT - runtime - - - org.apache.tuscany.sca - tuscany-databinding-jaxb - - - org.apache.tuscany.sca - tuscany-interface-java-jaxws - - - - - - javax.servlet - servlet-api - 2.5 - provided - - - - - ${artifactId} - src - war/WEB-INF/classes - - - - org.apache.maven.plugins - maven-eclipse-plugin - - - **/* - - - - org.eclipse.jdt.core.javanature - com.google.appengine.eclipse.core.gaeNature - com.google.gdt.eclipse.core.webAppNature - - - org.eclipse.jdt.core.javabuilder - com.google.appengine.eclipse.core.enhancerbuilder - com.google.appengine.eclipse.core.projectValidator - com.google.gdt.eclipse.core.webAppProjectValidator - - - org.eclipse.jdt.launching.JRE_CONTAINER - com.google.appengine.eclipse.core.GAE_CONTAINER - - - - - - org.apache.maven.plugins - maven-dependency-plugin - 2.1 - - - copy-dependencies - process-sources - - copy-dependencies - - - war/WEB-INF/lib - true - - - - - - - org.apache.maven.plugins - maven-war-plugin - 2.1-beta-1 - - war - - - - - - diff --git a/sandbox/sca-cloud-tutorial/store-catalog-appengine-webapp/src/Workaround.java b/sandbox/sca-cloud-tutorial/store-catalog-appengine-webapp/src/Workaround.java deleted file mode 100644 index 2f345ecedd..0000000000 --- a/sandbox/sca-cloud-tutorial/store-catalog-appengine-webapp/src/Workaround.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * 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. - */ - -public class Workaround { - -} diff --git a/sandbox/sca-cloud-tutorial/store-catalog-appengine-webapp/war/META-INF/sca-contribution.xml b/sandbox/sca-cloud-tutorial/store-catalog-appengine-webapp/war/META-INF/sca-contribution.xml deleted file mode 100644 index e9fc425e86..0000000000 --- a/sandbox/sca-cloud-tutorial/store-catalog-appengine-webapp/war/META-INF/sca-contribution.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/sandbox/sca-cloud-tutorial/store-catalog-appengine-webapp/war/WEB-INF/appengine-web.xml b/sandbox/sca-cloud-tutorial/store-catalog-appengine-webapp/war/WEB-INF/appengine-web.xml deleted file mode 100644 index 6f97eebdbd..0000000000 --- a/sandbox/sca-cloud-tutorial/store-catalog-appengine-webapp/war/WEB-INF/appengine-web.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - tuscany-store-catalog - 3 - - - - - - - \ No newline at end of file diff --git a/sandbox/sca-cloud-tutorial/store-catalog-appengine-webapp/war/WEB-INF/logging.properties b/sandbox/sca-cloud-tutorial/store-catalog-appengine-webapp/war/WEB-INF/logging.properties deleted file mode 100644 index 1479043d2b..0000000000 --- a/sandbox/sca-cloud-tutorial/store-catalog-appengine-webapp/war/WEB-INF/logging.properties +++ /dev/null @@ -1,29 +0,0 @@ -# A default java.util.logging configuration. -# (All App Engine logging is through java.util.logging by default). -# -# To use this configuration, copy it into your application's WEB-INF -# folder and add the following to your appengine-web.xml: -# -# -# -# -# - -# Set the default logging level for all loggers to WARNING -.level = WARNING - -# Set the default logging level for ORM, specifically, to WARNING -DataNucleus.JDO.level=WARNING -DataNucleus.Persistence.level=WARNING -DataNucleus.Cache.level=WARNING -DataNucleus.MetaData.level=WARNING -DataNucleus.General.level=WARNING -DataNucleus.Utility.level=WARNING -DataNucleus.Transaction.level=WARNING -DataNucleus.Datastore.level=WARNING -DataNucleus.ClassLoading.level=WARNING -DataNucleus.Plugin.level=WARNING -DataNucleus.ValueGeneration.level=WARNING -DataNucleus.Enhancer.level=WARNING -DataNucleus.SchemaTool.level=WARNING -log4j.category.org.apache.tuscany=ALL,A1 diff --git a/sandbox/sca-cloud-tutorial/store-catalog-appengine-webapp/war/WEB-INF/web.xml b/sandbox/sca-cloud-tutorial/store-catalog-appengine-webapp/war/WEB-INF/web.xml deleted file mode 100644 index ddfd262176..0000000000 --- a/sandbox/sca-cloud-tutorial/store-catalog-appengine-webapp/war/WEB-INF/web.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - tuscany - org.apache.tuscany.sca.host.webapp.TuscanyServletFilter - - - - tuscany - /* - - - - - index.html - - - diff --git a/sandbox/sca-cloud-tutorial/store-catalog-appengine-webapp/war/catalog.composite b/sandbox/sca-cloud-tutorial/store-catalog-appengine-webapp/war/catalog.composite deleted file mode 100644 index 52b3ab8a25..0000000000 --- a/sandbox/sca-cloud-tutorial/store-catalog-appengine-webapp/war/catalog.composite +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - USD - - - - - - - - - - - - - - diff --git a/sandbox/sca-cloud-tutorial/store-catalog-appengine-webapp/war/index.html b/sandbox/sca-cloud-tutorial/store-catalog-appengine-webapp/war/index.html deleted file mode 100644 index 7169029f5d..0000000000 --- a/sandbox/sca-cloud-tutorial/store-catalog-appengine-webapp/war/index.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - -Tuscany Store Scenario - - - -

Tuscany Store Catalog Service

-
-
-Catalog Service Definition available at : Store Catalog Service - JSON-RPC SMD - - \ No newline at end of file diff --git a/sandbox/sca-cloud-tutorial/store-catalog-ibmcloud-webapp/README b/sandbox/sca-cloud-tutorial/store-catalog-ibmcloud-webapp/README deleted file mode 100644 index 46e71bf51e..0000000000 --- a/sandbox/sca-cloud-tutorial/store-catalog-ibmcloud-webapp/README +++ /dev/null @@ -1,28 +0,0 @@ -Store Sample -====================================== - -This is a sample store scenario that is used as a getting started guide -for Tuscany SCA. For detailed information, please see: - -http://tuscany.apache.org/getting-started-with-tuscany.html - -or - -http://tuscany.apache.org/getting-started-with-tuscany-using-tuscany-eclipse-plugin.html - - -Building And Running The Sample Using Ant ------------------------------------------ -With the binary distribution the sample can be built using Ant as follows: - -cd store -ant compile - -and then, to run: - -ant run - -Once the store application is running use your browser to visit the following -URL: - -http://localhost:8080/store/ diff --git a/sandbox/sca-cloud-tutorial/store-catalog-ibmcloud-webapp/pom.xml b/sandbox/sca-cloud-tutorial/store-catalog-ibmcloud-webapp/pom.xml deleted file mode 100644 index 81e0fc5a75..0000000000 --- a/sandbox/sca-cloud-tutorial/store-catalog-ibmcloud-webapp/pom.xml +++ /dev/null @@ -1,113 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 2.0-SNAPSHOT - ../pom.xml - - store-catalog-ibmcloud-webapp - war - Apache Tuscany SCA Store Catalog as WebApp - - - - org.apache.tuscany.sca - store-assets - 2.0-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-host-webapp - 2.0-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jsonrpc-runtime - 2.0-SNAPSHOT - runtime - - - - xml-apis - xml-apis - 1.3.04 - provided - - - - - - - - ${artifactId} - - - diff --git a/sandbox/sca-cloud-tutorial/store-catalog-ibmcloud-webapp/src/main/resources/catalog.composite b/sandbox/sca-cloud-tutorial/store-catalog-ibmcloud-webapp/src/main/resources/catalog.composite deleted file mode 100644 index 860bb7febd..0000000000 --- a/sandbox/sca-cloud-tutorial/store-catalog-ibmcloud-webapp/src/main/resources/catalog.composite +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - USD - - - - - - - - - - - - - - - diff --git a/sandbox/sca-cloud-tutorial/store-catalog-ibmcloud-webapp/src/main/webapp/META-INF/sca-contribution-generated.xml b/sandbox/sca-cloud-tutorial/store-catalog-ibmcloud-webapp/src/main/webapp/META-INF/sca-contribution-generated.xml deleted file mode 100644 index 972398e15b..0000000000 --- a/sandbox/sca-cloud-tutorial/store-catalog-ibmcloud-webapp/src/main/webapp/META-INF/sca-contribution-generated.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sandbox/sca-cloud-tutorial/store-catalog-ibmcloud-webapp/src/main/webapp/WEB-INF/geronimo-web.xml b/sandbox/sca-cloud-tutorial/store-catalog-ibmcloud-webapp/src/main/webapp/WEB-INF/geronimo-web.xml deleted file mode 100644 index bf5f07f42c..0000000000 --- a/sandbox/sca-cloud-tutorial/store-catalog-ibmcloud-webapp/src/main/webapp/WEB-INF/geronimo-web.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - org.apache.tuscany - store-catalog-ibmcloud-webapp - 1.0 - car - - - - - org.apache.axiom - org.apache.axis2 - org.apache.commons - org.jdom - - - - /store-catalog-ibmcloud-webapp - diff --git a/sandbox/sca-cloud-tutorial/store-catalog-ibmcloud-webapp/src/main/webapp/WEB-INF/web.xml b/sandbox/sca-cloud-tutorial/store-catalog-ibmcloud-webapp/src/main/webapp/WEB-INF/web.xml deleted file mode 100644 index a6b97503a5..0000000000 --- a/sandbox/sca-cloud-tutorial/store-catalog-ibmcloud-webapp/src/main/webapp/WEB-INF/web.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - store-catalog-ibmcloud-webapp - - - tuscany - org.apache.tuscany.sca.host.webapp.TuscanyServletFilter - - - - tuscany - /* - - - - index.html - - \ No newline at end of file diff --git a/sandbox/sca-cloud-tutorial/store-catalog-ibmcloud-webapp/src/main/webapp/index.html b/sandbox/sca-cloud-tutorial/store-catalog-ibmcloud-webapp/src/main/webapp/index.html deleted file mode 100644 index db5fbebe4c..0000000000 --- a/sandbox/sca-cloud-tutorial/store-catalog-ibmcloud-webapp/src/main/webapp/index.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - -Tuscany Store Scenario - IBM Cloud - - - -

Tuscany Store Catalog Service

-
-
-Catalog Service Definition available at : Store Catalog Service - JSON-RPC SMD - - \ No newline at end of file diff --git a/sandbox/sca-cloud-tutorial/store-catalog-ibmcloud-webapp/store.png b/sandbox/sca-cloud-tutorial/store-catalog-ibmcloud-webapp/store.png deleted file mode 100644 index da413edeee..0000000000 Binary files a/sandbox/sca-cloud-tutorial/store-catalog-ibmcloud-webapp/store.png and /dev/null differ diff --git a/sandbox/sca-cloud-tutorial/store-catalog-ibmcloud-webapp/store.svg b/sandbox/sca-cloud-tutorial/store-catalog-ibmcloud-webapp/store.svg deleted file mode 100644 index 74f8ecd36d..0000000000 --- a/sandbox/sca-cloud-tutorial/store-catalog-ibmcloud-webapp/store.svg +++ /dev/null @@ -1,304 +0,0 @@ - - - - - - - - - - image/svg+xml - - - - - - - - store - ufs - - ShoppingCart - - CurrencyConverter - - - - - - - - - - CurrenyCode HTTP JSONRPC Atom - - Catalog - - - - diff --git a/sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/build-dojo.xml b/sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/build-dojo.xml deleted file mode 100644 index 4708b1bcea..0000000000 --- a/sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/build-dojo.xml +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/pom.xml b/sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/pom.xml deleted file mode 100644 index 509ce68f91..0000000000 --- a/sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/pom.xml +++ /dev/null @@ -1,216 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 2.0-SNAPSHOT - ../pom.xml - - store-merger-appengine-webapp - war - Apache Tuscany Store - - - - org.apache.tuscany.sca - store-assets - 2.0-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-cloud-api - 2.0-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-cloud-google - 2.0-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jsonrpc-runtime - 2.0-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-host-webapp - 2.0-SNAPSHOT - runtime - - - org.apache.tuscany.sca - tuscany-databinding-jaxb - - - org.apache.tuscany.sca - tuscany-interface-java-jaxws - - - - - - javax.servlet - servlet-api - 2.5 - provided - - - - - ${artifactId} - src - war/WEB-INF/classes - - - org.apache.maven.plugins - maven-eclipse-plugin - - - **/* - - - - org.eclipse.jdt.core.javanature - com.google.appengine.eclipse.core.gaeNature - com.google.gdt.eclipse.core.webAppNature - - - org.eclipse.jdt.core.javabuilder - com.google.appengine.eclipse.core.enhancerbuilder - com.google.appengine.eclipse.core.projectValidator - com.google.gdt.eclipse.core.webAppProjectValidator - - - org.eclipse.jdt.launching.JRE_CONTAINER - com.google.appengine.eclipse.core.GAE_CONTAINER - - - - - - org.apache.maven.plugins - maven-antrun-plugin - - - - ant - ant-trax - 1.6.5 - - - - - install-dojo - validate - - run - - - - - - - - - - - copy-dojo-files - generate-resources - - run - - - - - - - - - - - - clean-dojo-files - clean - - run - - - - - - - - - - - - - - - org.apache.maven.plugins - maven-dependency-plugin - 2.1 - - - copy-dependencies - process-sources - - copy-dependencies - - - war/WEB-INF/lib - true - - - - - - - org.apache.maven.plugins - maven-war-plugin - 2.1-beta-1 - - war - - - - - - diff --git a/sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/src/Workaround.java b/sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/src/Workaround.java deleted file mode 100644 index 2f345ecedd..0000000000 --- a/sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/src/Workaround.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * 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. - */ - -public class Workaround { - -} diff --git a/sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/war/META-INF/sca-contribution.xml b/sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/war/META-INF/sca-contribution.xml deleted file mode 100644 index 87db06d8dd..0000000000 --- a/sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/war/META-INF/sca-contribution.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/war/WEB-INF/appengine-web.xml b/sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/war/WEB-INF/appengine-web.xml deleted file mode 100644 index 0e5f6fc072..0000000000 --- a/sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/war/WEB-INF/appengine-web.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - tuscany-store-merger - 1 - - - - - - - \ No newline at end of file diff --git a/sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/war/WEB-INF/logging.properties b/sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/war/WEB-INF/logging.properties deleted file mode 100644 index bd3b8308fc..0000000000 --- a/sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/war/WEB-INF/logging.properties +++ /dev/null @@ -1,37 +0,0 @@ -# -# -# 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. -# -# -# A default java.util.logging configuration. -# (All App Engine logging is through java.util.logging by default). -# -# To use this configuration, copy it into your application's WEB-INF -# folder and add the following to your appengine-web.xml: -# -# -# -# -# - -# Set the default logging level for all loggers to WARNING -.level = WARNING - -#tuscany debug messages -org.apache.tuscany.level = WARNING - diff --git a/sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/war/WEB-INF/web.xml b/sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/war/WEB-INF/web.xml deleted file mode 100644 index 31fc39a160..0000000000 --- a/sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/war/WEB-INF/web.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - tuscany - org.apache.tuscany.sca.host.webapp.TuscanyServletFilter - - - - tuscany - /* - - - - - store.html - - - diff --git a/sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/war/log4j.properties b/sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/war/log4j.properties deleted file mode 100644 index 036b48afd7..0000000000 --- a/sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/war/log4j.properties +++ /dev/null @@ -1,28 +0,0 @@ -# -# -# 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. -# -# - -# Configure the console as our one appender -log4j.appender.A1=org.apache.log4j.ConsoleAppender -log4j.appender.A1.layout=org.apache.log4j.PatternLayout -log4j.appender.A1.layout.ConversionPattern=%d{HH:mm:ss,SSS} %-5p [%c] - %m%n - -#tuscany debug messages -log4j.category.org.apache.tuscany=ALL,A1 diff --git a/sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/war/store.composite b/sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/war/store.composite deleted file mode 100644 index 931e5a1f1c..0000000000 --- a/sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/war/store.composite +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - USD - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/war/store.css b/sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/war/store.css deleted file mode 100644 index 0b1d541bea..0000000000 --- a/sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/war/store.css +++ /dev/null @@ -1,22 +0,0 @@ - \ No newline at end of file diff --git a/sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/war/store.html b/sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/war/store.html deleted file mode 100644 index aadb4ebd4f..0000000000 --- a/sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/war/store.html +++ /dev/null @@ -1,194 +0,0 @@ - - - - -Online Store - Powered by Apache Tuscany - - - - - - - - - - - - -
-
- -

Store

- - - -
-

Catalog

-
-
-
- -
- - -
- -

Your Shopping Cart

-
-
-
-
-
- - -
-
- - - \ No newline at end of file -- cgit v1.2.3