Author: fmoga
Date: Mon Jun 20 12:30:40 2011
New Revision: 1137606
URL: http://svn.apache.org/viewvc?rev=1137606&view=rev
Log:
TUSCANY-3522: Apply alheaders.patch submitted by Eranda.
Added:
tuscany/collaboration/GSoC-2011-Eranda/twitapp/pom.xml
tuscany/collaboration/GSoC-2011-Eranda/twitapp/src/test/
tuscany/collaboration/GSoC-2011-Eranda/twitapp/src/test/java/
tuscany/collaboration/GSoC-2011-Eranda/twitapp/src/test/java/twitapp/
tuscany/collaboration/GSoC-2011-Eranda/twitapp/src/test/java/twitapp/TwitAppTest.java
Modified:
tuscany/collaboration/GSoC-2011-Eranda/cassandra/pom.xml
tuscany/collaboration/GSoC-2011-Eranda/twitapp/src/main/java/twitapp/services/AppManager.java
tuscany/collaboration/GSoC-2011-Eranda/twitapp/src/main/java/twitapp/services/Twit.java
tuscany/collaboration/GSoC-2011-Eranda/twitapp/src/main/java/twitapp/services/User.java
tuscany/collaboration/GSoC-2011-Eranda/twitapp/src/main/java/twitapp/services/UserBase.java
tuscany/collaboration/GSoC-2011-Eranda/twitapp/src/main/java/twitapp/services/UserManager.java
tuscany/collaboration/GSoC-2011-Eranda/twitapp/src/main/java/twitapp/test/TwitAppTest.java
Modified: tuscany/collaboration/GSoC-2011-Eranda/cassandra/pom.xml
URL:
http://svn.apache.org/viewvc/tuscany/collaboration/GSoC-2011-Eranda/cassandra/pom.xml?rev=1137606&r1=1137605&r2=1137606&view=diff
==============================================================================
--- tuscany/collaboration/GSoC-2011-Eranda/cassandra/pom.xml (original)
+++ tuscany/collaboration/GSoC-2011-Eranda/cassandra/pom.xml Mon Jun 20
12:30:40 2011
@@ -1,3 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
Added: tuscany/collaboration/GSoC-2011-Eranda/twitapp/pom.xml
URL:
http://svn.apache.org/viewvc/tuscany/collaboration/GSoC-2011-Eranda/twitapp/pom.xml?rev=1137606&view=auto
==============================================================================
--- tuscany/collaboration/GSoC-2011-Eranda/twitapp/pom.xml (added)
+++ tuscany/collaboration/GSoC-2011-Eranda/twitapp/pom.xml Mon Jun 20 12:30:40
2011
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.tuscany</groupId>
+ <artifactId>nosql-datastore</artifactId>
+ <version>0.0.1</version>
+
+ <packaging>jar</packaging>
+ <name>tuscany</name>
+ <url>http://maven.apache.org</url>
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ </properties>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.0.2</version>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Modified:
tuscany/collaboration/GSoC-2011-Eranda/twitapp/src/main/java/twitapp/services/AppManager.java
URL:
http://svn.apache.org/viewvc/tuscany/collaboration/GSoC-2011-Eranda/twitapp/src/main/java/twitapp/services/AppManager.java?rev=1137606&r1=1137605&r2=1137606&view=diff
==============================================================================
---
tuscany/collaboration/GSoC-2011-Eranda/twitapp/src/main/java/twitapp/services/AppManager.java
(original)
+++
tuscany/collaboration/GSoC-2011-Eranda/twitapp/src/main/java/twitapp/services/AppManager.java
Mon Jun 20 12:30:40 2011
@@ -1,4 +1,22 @@
-package main.java.twitapp.services;
+/*
+ * 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 twitapp.services;
import java.util.ArrayList;
import java.util.Iterator;
Modified:
tuscany/collaboration/GSoC-2011-Eranda/twitapp/src/main/java/twitapp/services/Twit.java
URL:
http://svn.apache.org/viewvc/tuscany/collaboration/GSoC-2011-Eranda/twitapp/src/main/java/twitapp/services/Twit.java?rev=1137606&r1=1137605&r2=1137606&view=diff
==============================================================================
---
tuscany/collaboration/GSoC-2011-Eranda/twitapp/src/main/java/twitapp/services/Twit.java
(original)
+++
tuscany/collaboration/GSoC-2011-Eranda/twitapp/src/main/java/twitapp/services/Twit.java
Mon Jun 20 12:30:40 2011
@@ -1,4 +1,22 @@
-package main.java.twitapp.services;
+/*
+ * 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 twitapp.services;
import java.util.Date;
Modified:
tuscany/collaboration/GSoC-2011-Eranda/twitapp/src/main/java/twitapp/services/User.java
URL:
http://svn.apache.org/viewvc/tuscany/collaboration/GSoC-2011-Eranda/twitapp/src/main/java/twitapp/services/User.java?rev=1137606&r1=1137605&r2=1137606&view=diff
==============================================================================
---
tuscany/collaboration/GSoC-2011-Eranda/twitapp/src/main/java/twitapp/services/User.java
(original)
+++
tuscany/collaboration/GSoC-2011-Eranda/twitapp/src/main/java/twitapp/services/User.java
Mon Jun 20 12:30:40 2011
@@ -1,4 +1,22 @@
-package main.java.twitapp.services;
+/*
+ * 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 twitapp.services;
import java.util.ArrayList;
import java.util.Date;
Modified:
tuscany/collaboration/GSoC-2011-Eranda/twitapp/src/main/java/twitapp/services/UserBase.java
URL:
http://svn.apache.org/viewvc/tuscany/collaboration/GSoC-2011-Eranda/twitapp/src/main/java/twitapp/services/UserBase.java?rev=1137606&r1=1137605&r2=1137606&view=diff
==============================================================================
---
tuscany/collaboration/GSoC-2011-Eranda/twitapp/src/main/java/twitapp/services/UserBase.java
(original)
+++
tuscany/collaboration/GSoC-2011-Eranda/twitapp/src/main/java/twitapp/services/UserBase.java
Mon Jun 20 12:30:40 2011
@@ -1,4 +1,22 @@
-package main.java.twitapp.services;
+/*
+ * 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 twitapp.services;
import java.util.HashMap;
Modified:
tuscany/collaboration/GSoC-2011-Eranda/twitapp/src/main/java/twitapp/services/UserManager.java
URL:
http://svn.apache.org/viewvc/tuscany/collaboration/GSoC-2011-Eranda/twitapp/src/main/java/twitapp/services/UserManager.java?rev=1137606&r1=1137605&r2=1137606&view=diff
==============================================================================
---
tuscany/collaboration/GSoC-2011-Eranda/twitapp/src/main/java/twitapp/services/UserManager.java
(original)
+++
tuscany/collaboration/GSoC-2011-Eranda/twitapp/src/main/java/twitapp/services/UserManager.java
Mon Jun 20 12:30:40 2011
@@ -1,4 +1,22 @@
-package main.java.twitapp.services;
+/*
+ * 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 twitapp.services;
public class UserManager {
Modified:
tuscany/collaboration/GSoC-2011-Eranda/twitapp/src/main/java/twitapp/test/TwitAppTest.java
URL:
http://svn.apache.org/viewvc/tuscany/collaboration/GSoC-2011-Eranda/twitapp/src/main/java/twitapp/test/TwitAppTest.java?rev=1137606&r1=1137605&r2=1137606&view=diff
==============================================================================
---
tuscany/collaboration/GSoC-2011-Eranda/twitapp/src/main/java/twitapp/test/TwitAppTest.java
(original)
+++
tuscany/collaboration/GSoC-2011-Eranda/twitapp/src/main/java/twitapp/test/TwitAppTest.java
Mon Jun 20 12:30:40 2011
@@ -1,32 +0,0 @@
-package main.java.twitapp.test;
-
-import java.util.Iterator;
-
-import main.java.twitapp.services.AppManager;
-import main.java.twitapp.services.Twit;
-import main.java.twitapp.services.UserManager;
-
-public class TwitAppTest {
-
- /**
- * @param args
- */
- public static void main(String[] args) {
- UserManager userManager = new UserManager();
- userManager.addUser("eranda", "Eranda Sooriyabandara");
- userManager.addUser("ishara", "Ishara Karunarathne");
-
- AppManager manager1 = new AppManager("eranda");
- manager1.twit("Won the world cup 2011");
-
- AppManager manager2 = new AppManager("ishara");
- manager2.follow("eranda");
-
- Iterator<Twit> twits = manager2.getFollowerTwits("eranda");
- while(twits.hasNext()){
- System.out.println(twits.next().toString());
- }
-
- }
-
-}
Added:
tuscany/collaboration/GSoC-2011-Eranda/twitapp/src/test/java/twitapp/TwitAppTest.java
URL:
http://svn.apache.org/viewvc/tuscany/collaboration/GSoC-2011-Eranda/twitapp/src/test/java/twitapp/TwitAppTest.java?rev=1137606&view=auto
==============================================================================
---
tuscany/collaboration/GSoC-2011-Eranda/twitapp/src/test/java/twitapp/TwitAppTest.java
(added)
+++
tuscany/collaboration/GSoC-2011-Eranda/twitapp/src/test/java/twitapp/TwitAppTest.java
Mon Jun 20 12:30:40 2011
@@ -0,0 +1,50 @@
+/*
+ * 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 twitapp.test;
+
+import java.util.Iterator;
+
+import twitapp.services.AppManager;
+import twitapp.services.Twit;
+import twitapp.services.UserManager;
+
+public class TwitAppTest {
+
+ /**
+ * @param args
+ */
+ public static void main(String[] args) {
+ UserManager userManager = new UserManager();
+ userManager.addUser("eranda", "Eranda Sooriyabandara");
+ userManager.addUser("ishara", "Ishara Karunarathne");
+
+ AppManager manager1 = new AppManager("eranda");
+ manager1.twit("Won the world cup 2011");
+
+ AppManager manager2 = new AppManager("ishara");
+ manager2.follow("eranda");
+
+ Iterator<Twit> twits = manager2.getFollowerTwits("eranda");
+ while(twits.hasNext()){
+ System.out.println(twits.next().toString());
+ }
+
+ }
+
+}