diff options
Diffstat (limited to 'sandbox')
7 files changed, 286 insertions, 0 deletions
diff --git a/sandbox/travelsample/contributions/help-pages-contribution/pom.xml b/sandbox/travelsample/contributions/help-pages-contribution/pom.xml new file mode 100644 index 0000000000..5896754423 --- /dev/null +++ b/sandbox/travelsample/contributions/help-pages-contribution/pom.xml @@ -0,0 +1,71 @@ +<?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>
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-sca</artifactId>
+ <version>1.6-SNAPSHOT</version>
+ <!--relativePath>../../pom.xml</relativePath-->
+ </parent><version>1.0-SNAPSHOT</version>
+ <artifactId>scatours-help-pages-contribution</artifactId>
+ <name>Apache Tuscany SCA Tours Help Pages Contribution</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-host-embedded</artifactId>
+ <version>1.6-SNAPSHOT</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-implementation-resource-runtime</artifactId>
+ <version>1.6-SNAPSHOT</version>
+ <scope>runtime</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-binding-http-runtime</artifactId>
+ <version>1.6-SNAPSHOT</version>
+ <scope>runtime</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-host-tomcat</artifactId>
+ <version>1.6-SNAPSHOT</version>
+ <scope>runtime</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.5</version>
+ <scope>test</scope>
+ </dependency>
+
+ </dependencies>
+
+ <build>
+ <finalName>${artifactId}</finalName>
+ </build>
+</project>
diff --git a/sandbox/travelsample/contributions/help-pages-contribution/src/main/resources/META-INF/sca-contribution.xml b/sandbox/travelsample/contributions/help-pages-contribution/src/main/resources/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..69a29d8da3 --- /dev/null +++ b/sandbox/travelsample/contributions/help-pages-contribution/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +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.
+-->
+<contribution xmlns="http://www.osoa.org/xmlns/sca/1.0">
+ <export.resource uri="images"/>
+</contribution>
\ No newline at end of file diff --git a/sandbox/travelsample/contributions/help-pages-contribution/src/main/resources/help-pages.composite b/sandbox/travelsample/contributions/help-pages-contribution/src/main/resources/help-pages.composite new file mode 100644 index 0000000000..d440730b8f --- /dev/null +++ b/sandbox/travelsample/contributions/help-pages-contribution/src/main/resources/help-pages.composite @@ -0,0 +1,32 @@ +<?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. +--> +<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" + xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0" + targetNamespace="http://www.tuscanyscatours.com" + name="help-pages"> + + <component name="Help"> + <tuscany:implementation.resource location="help_pages"/> + <service name="Resource"> + <tuscany:binding.http uri="http://localhost:8085/help/"/> + </service> + </component> + +</composite> diff --git a/sandbox/travelsample/contributions/help-pages-contribution/src/main/resources/help_pages/BookingAHoliday.html b/sandbox/travelsample/contributions/help-pages-contribution/src/main/resources/help_pages/BookingAHoliday.html new file mode 100644 index 0000000000..194ecd1183 --- /dev/null +++ b/sandbox/travelsample/contributions/help-pages-contribution/src/main/resources/help_pages/BookingAHoliday.html @@ -0,0 +1,34 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<html> +<!-- + * 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. + --> + +<head> +<title>Tuscany SCA Tours Help - Booking a holiday</title> +</head> + +<body> +<h1>Tuscany SCA Tours Help Pages - Booking a holiday</h1> + +<p>This page contains instructions on how to book a holiday with SCA Tours</p> + +<p>More help text would go here.....</p> + +</body> +</html>
\ No newline at end of file diff --git a/sandbox/travelsample/contributions/help-pages-contribution/src/main/resources/help_pages/BookingAHotel.html b/sandbox/travelsample/contributions/help-pages-contribution/src/main/resources/help_pages/BookingAHotel.html new file mode 100644 index 0000000000..bde4d25226 --- /dev/null +++ b/sandbox/travelsample/contributions/help-pages-contribution/src/main/resources/help_pages/BookingAHotel.html @@ -0,0 +1,34 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<html> +<!-- + * 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. + --> + +<head> +<title>Tuscany SCA Tours Help - Booking a hotel</title> +</head> + +<body> +<h1>Tuscany SCA Tours Help Pages - Booking a hotel</h1> + +<p>This page contains instructions on how to book a hotel with SCA Tours</p> + +<p>More help text would go here.....</p> + +</body> +</html>
\ No newline at end of file diff --git a/sandbox/travelsample/contributions/help-pages-contribution/src/main/resources/help_pages/MakingPayments.html b/sandbox/travelsample/contributions/help-pages-contribution/src/main/resources/help_pages/MakingPayments.html new file mode 100644 index 0000000000..a1b24f4d23 --- /dev/null +++ b/sandbox/travelsample/contributions/help-pages-contribution/src/main/resources/help_pages/MakingPayments.html @@ -0,0 +1,34 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<html> +<!-- + * 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. + --> + +<head> +<title>Tuscany SCA Tours Help - Making Payments</title> +</head> + +<body> +<h1>Tuscany SCA Tours Help Pages - Making Payments</h1> + +<p>This page contains instructions on how to make payments to SCA Tours</p> + +<p>More help text would go here.....</p> + +</body> +</html>
\ No newline at end of file diff --git a/sandbox/travelsample/contributions/help-pages-contribution/src/main/resources/help_pages/index.html b/sandbox/travelsample/contributions/help-pages-contribution/src/main/resources/help_pages/index.html new file mode 100644 index 0000000000..4972752ea1 --- /dev/null +++ b/sandbox/travelsample/contributions/help-pages-contribution/src/main/resources/help_pages/index.html @@ -0,0 +1,59 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<html> +<!-- + * 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. + --> + +<head> +<title>Tuscany SCA Tours Help</title> +</head> + +<body> +<h1>Tuscany SCA Tours Help Pages</h1> + +<p>Welcome to the Tuscany SCA Tours help pages.</p> +<p>How can we help you?</p> + +<h3>Making a booking</h3> +<ul> +<li><a href="BookingAHoliday.html">Booking a holiday</a></li> +<li><a href="BookingAHotel.html">Booking a hotel</a></li> +<li>Booking a car</li> +</ul> + +<h3>Making payments</h3> +<ul> +<li><a href="MakingPayments.html">Paying for my bookings</a></li> +<li>Checking the status of my payment</li> +</ul> + +<h3>Preparing to travel</h3> +<ul> +<li>Passports and Visas</li> +<li>Pre-travel health checks</li> +<li>Things to pack checklist</li> +</ul> + +<h3>Contact customer support</h3> +<ul> +<li>By Email</li> +<li>By Phone</li> +<li>By Post</li> +</ul> +</body> +</html>
\ No newline at end of file |