You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by sl...@apache.org on 2007/06/01 17:22:52 UTC

svn commit: r543501 [2/2] - in /incubator/tuscany/sandbox/slaws/feed-aggregator: ./ src/main/java/org/apache/tuscany/sca/samples/aggregator/ src/main/resources/ src/main/resources/aggregator/ src/main/webapp/ src/main/webapp/META-INF/ src/main/webapp/W...

Added: incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/java/org/apache/tuscany/sca/samples/aggregator/SourceTypeNonSDOImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/java/org/apache/tuscany/sca/samples/aggregator/SourceTypeNonSDOImpl.java?view=auto&rev=543501
==============================================================================
--- incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/java/org/apache/tuscany/sca/samples/aggregator/SourceTypeNonSDOImpl.java (added)
+++ incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/java/org/apache/tuscany/sca/samples/aggregator/SourceTypeNonSDOImpl.java Fri Jun  1 08:22:50 2007
@@ -0,0 +1,526 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.tuscany.sca.samples.aggregator;
+
+import commonj.sdo.Sequence;
+import commonj.sdo.Type;
+
+import org.apache.tuscany.sca.samples.aggregator.types.SourceType;
+import org.apache.tuscany.sca.samples.aggregator.types.TypesFactory;
+
+import org.apache.tuscany.sdo.impl.DataObjectBase;
+
+
+public class SourceTypeNonSDOImpl implements SourceType
+{
+
+  public final static int NAME = 0;
+
+  public final static int ADDRESS = 1;
+
+  public final static int LAST_CHECKED = 2;
+
+  public final static int FEED_ADDRESS = 3;
+
+  public final static int POP_SERVER = 4;
+
+  public final static int POP_USERNAME = 5;
+
+  public final static int POP_PASSWORD = 6;
+
+  public final static int ANY = -1;
+
+  public final static int ID = 7;
+
+  public final static int TYPE = 8;
+
+  public final static int SDO_PROPERTY_COUNT = 9;
+
+  public final static int EXTENDED_PROPERTY_COUNT = -1;
+
+
+  /**
+   * The internal feature id for the '<em><b>Name</b></em>' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   * @ordered
+   */ 
+  public final static int INTERNAL_NAME = 0;
+
+  /**
+   * The internal feature id for the '<em><b>Address</b></em>' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   * @ordered
+   */ 
+  public final static int INTERNAL_ADDRESS = 1;
+
+  /**
+   * The internal feature id for the '<em><b>Last Checked</b></em>' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   * @ordered
+   */ 
+  public final static int INTERNAL_LAST_CHECKED = 2;
+
+  /**
+   * The internal feature id for the '<em><b>Feed Address</b></em>' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   * @ordered
+   */ 
+  public final static int INTERNAL_FEED_ADDRESS = 3;
+
+  /**
+   * The internal feature id for the '<em><b>Pop Server</b></em>' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   * @ordered
+   */ 
+  public final static int INTERNAL_POP_SERVER = 4;
+
+  /**
+   * The internal feature id for the '<em><b>Pop Username</b></em>' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   * @ordered
+   */ 
+  public final static int INTERNAL_POP_USERNAME = 5;
+
+  /**
+   * The internal feature id for the '<em><b>Pop Password</b></em>' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   * @ordered
+   */ 
+  public final static int INTERNAL_POP_PASSWORD = 6;
+
+  /**
+   * The internal feature id for the '<em><b>Any</b></em>' attribute list.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   * @ordered
+   */ 
+  public final static int INTERNAL_ANY = 7;
+
+  /**
+   * The internal feature id for the '<em><b>Id</b></em>' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   * @ordered
+   */ 
+  public final static int INTERNAL_ID = 8;
+
+  /**
+   * The internal feature id for the '<em><b>Type</b></em>' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   * @ordered
+   */ 
+  public final static int INTERNAL_TYPE = 9;
+
+  /**
+   * The number of properties for this type.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   * @ordered
+   */
+  public final static int INTERNAL_PROPERTY_COUNT = 10;
+
+
+
+
+  /**
+   * The default value of the '{@link #getName() <em>Name</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getName()
+   * @generated
+   * @ordered
+   */
+  protected static final String NAME_DEFAULT_ = null;
+
+  /**
+   * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getName()
+   * @generated
+   * @ordered
+   */
+  protected String name = NAME_DEFAULT_;
+
+  /**
+   * The default value of the '{@link #getAddress() <em>Address</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getAddress()
+   * @generated
+   * @ordered
+   */
+  protected static final String ADDRESS_DEFAULT_ = null;
+
+  /**
+   * The cached value of the '{@link #getAddress() <em>Address</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getAddress()
+   * @generated
+   * @ordered
+   */
+  protected String address = ADDRESS_DEFAULT_;
+
+  /**
+   * The default value of the '{@link #getLastChecked() <em>Last Checked</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getLastChecked()
+   * @generated
+   * @ordered
+   */
+  protected static final String LAST_CHECKED_DEFAULT_ = null;
+
+  /**
+   * The cached value of the '{@link #getLastChecked() <em>Last Checked</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getLastChecked()
+   * @generated
+   * @ordered
+   */
+  protected String lastChecked = LAST_CHECKED_DEFAULT_;
+
+  /**
+   * The default value of the '{@link #getFeedAddress() <em>Feed Address</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getFeedAddress()
+   * @generated
+   * @ordered
+   */
+  protected static final String FEED_ADDRESS_DEFAULT_ = null;
+
+  /**
+   * The cached value of the '{@link #getFeedAddress() <em>Feed Address</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getFeedAddress()
+   * @generated
+   * @ordered
+   */
+  protected String feedAddress = FEED_ADDRESS_DEFAULT_;
+
+  /**
+   * The default value of the '{@link #getPopServer() <em>Pop Server</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getPopServer()
+   * @generated
+   * @ordered
+   */
+  protected static final String POP_SERVER_DEFAULT_ = null;
+
+  /**
+   * The cached value of the '{@link #getPopServer() <em>Pop Server</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getPopServer()
+   * @generated
+   * @ordered
+   */
+  protected String popServer = POP_SERVER_DEFAULT_;
+
+  /**
+   * The default value of the '{@link #getPopUsername() <em>Pop Username</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getPopUsername()
+   * @generated
+   * @ordered
+   */
+  protected static final String POP_USERNAME_DEFAULT_ = null;
+
+  /**
+   * The cached value of the '{@link #getPopUsername() <em>Pop Username</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getPopUsername()
+   * @generated
+   * @ordered
+   */
+  protected String popUsername = POP_USERNAME_DEFAULT_;
+
+  /**
+   * The default value of the '{@link #getPopPassword() <em>Pop Password</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getPopPassword()
+   * @generated
+   * @ordered
+   */
+  protected static final String POP_PASSWORD_DEFAULT_ = null;
+
+  /**
+   * The cached value of the '{@link #getPopPassword() <em>Pop Password</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getPopPassword()
+   * @generated
+   * @ordered
+   */
+  protected String popPassword = POP_PASSWORD_DEFAULT_;
+
+  /**
+   * The cached value of the '{@link #getAny() <em>Any</em>}' attribute list.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getAny()
+   * @generated
+   * @ordered
+   */
+  
+  protected Sequence any = null;
+  
+  /**
+   * The default value of the '{@link #getId() <em>Id</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getId()
+   * @generated
+   * @ordered
+   */
+  protected static final String ID_DEFAULT_ = null;
+
+  /**
+   * The cached value of the '{@link #getId() <em>Id</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getId()
+   * @generated
+   * @ordered
+   */
+  protected String id = ID_DEFAULT_;
+
+  /**
+   * The default value of the '{@link #getType_() <em>Type</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getType_()
+   * @generated
+   * @ordered
+   */
+  protected static final String TYPE_DEFAULT_ = null;
+
+  /**
+   * The cached value of the '{@link #getType_() <em>Type</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getType_()
+   * @generated
+   * @ordered
+   */
+  protected String type = TYPE_DEFAULT_;
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public SourceTypeNonSDOImpl()
+  {
+    super();
+  }
+
+
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getName()
+  {
+    return name;
+  }
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void setName(String newName)
+  {
+    name = newName;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getAddress()
+  {
+    return address;
+  }
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void setAddress(String newAddress)
+  {
+    address = newAddress;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getLastChecked()
+  {
+    return lastChecked;
+  }
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void setLastChecked(String newLastChecked)
+  {
+    lastChecked = newLastChecked;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getFeedAddress()
+  {
+    return feedAddress;
+  }
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void setFeedAddress(String newFeedAddress)
+  {
+    feedAddress = newFeedAddress;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getPopServer()
+  {
+    return popServer;
+  }
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void setPopServer(String newPopServer)
+  {
+    popServer = newPopServer;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getPopUsername()
+  {
+    return popUsername;
+  }
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void setPopUsername(String newPopUsername)
+  {
+    popUsername = newPopUsername;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getPopPassword()
+  {
+    return popPassword;
+  }
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void setPopPassword(String newPopPassword)
+  {
+    popPassword = newPopPassword;
+  }
+
+   /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getId()
+  {
+    return id;
+  }
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void setId(String newId)
+  {
+    id = newId;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getType_()
+  {
+    return type;
+  }
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void setType(String newType)
+  {
+    type = newType;
+  }
+  
+  public Sequence getAny(){
+      return null;
+  }
+
+} //SourceTypeImpl

Propchange: incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/java/org/apache/tuscany/sca/samples/aggregator/SourceTypeNonSDOImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/java/org/apache/tuscany/sca/samples/aggregator/SourceTypeNonSDOImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/resources/Alerts.xsd
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/resources/Alerts.xsd?view=diff&rev=543501&r1=543500&r2=543501
==============================================================================
--- incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/resources/Alerts.xsd (original)
+++ incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/resources/Alerts.xsd Fri Jun  1 08:22:50 2007
@@ -40,9 +40,6 @@
     	</sequence>        
     </complexType>
        
-    <element name="Config" type="ns:ConfigType"/>
-    <element name="Source" type="ns:SourceType"/>
-
     <complexType name="SourceType">
     	<sequence>
     		<element name="Name" type="string" maxOccurs="1" minOccurs="1"/>
@@ -71,4 +68,13 @@
     		<element name="Source" type="ns:SourceType" maxOccurs="unbounded" minOccurs="0"/>
     	</sequence>
     </complexType>
+    
+    <complexType name="SingleSourceType">
+    	<sequence>
+    		<element name="Source" type="ns:SourceType"/>
+    	</sequence>
+    </complexType>    
+    
+    <element name="Config" type="ns:ConfigType"/>
+    <element name="Source" type="ns:SourceType"/>
 </schema>

Modified: incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/resources/AlertsSources.wsdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/resources/AlertsSources.wsdl?view=diff&rev=543501&r1=543500&r2=543501
==============================================================================
--- incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/resources/AlertsSources.wsdl (original)
+++ incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/resources/AlertsSources.wsdl Fri Jun  1 08:22:50 2007
@@ -48,6 +48,22 @@
                     </sequence>
                 </complexType>
             </element>
+            
+            <element name="addAlertSource">
+                <xsd:complexType>
+                    <sequence>
+                        <element name="parm" type="alerter:SourceType"/>                    
+                    </sequence>                
+                </xsd:complexType>
+            </element> 
+            
+            <element name="addAlertSourceResponse">
+                <complexType>
+                    <sequence>
+                        <element name="parm" type="string" />
+                    </sequence>
+                </complexType>
+            </element>                       
 
         </xsd:schema>
     </wsdl:types>
@@ -58,12 +74,23 @@
     <wsdl:message name="GetAlertSourcesResponse">
         <wsdl:part element="tns:getAlertSourcesResponse" name="parameters" />
     </wsdl:message>
+    
+    <wsdl:message name="AddAlertSourceRequest">
+        <wsdl:part element="tns:addAlertSource" name="parameters" />
+    </wsdl:message>
+    <wsdl:message name="AddAlertSourceResponse">
+        <wsdl:part element="tns:addAlertSourceResponse" name="parameters" />
+    </wsdl:message>    
 
     <wsdl:portType name="AlertsSourcesPortType">
         <wsdl:operation name="getAlertSources">
             <wsdl:input message="tns:GetAlertSourcesRequest" name="GetAlertSourcesRequestMsg" />
             <wsdl:output message="tns:GetAlertSourcesResponse" name="GetAlertSourcesResponseMsg" />
         </wsdl:operation>
+        <wsdl:operation name="addAlertSource">
+            <wsdl:input message="tns:AddAlertSourceRequest" name="AddAlertSourceRequestMsg" />
+            <wsdl:output message="tns:AddAlertSourceResponse" name="AddAlertSourceResponseMsg" />
+        </wsdl:operation>        
    </wsdl:portType>
 
     <wsdl:binding name="AlertsSourcesBinding" type="tns:AlertsSourcesPortType">
@@ -76,7 +103,16 @@
             <wsdl:output name="GetAlertSourcesResponseMsg">
                 <wsdlsoap:body use="literal" />
             </wsdl:output>
-        </wsdl:operation>           
+        </wsdl:operation>  
+        <wsdl:operation name="addAlertSource">
+            <wsdlsoap:operation soapAction="" />
+            <wsdl:input name="AddAlertSourceRequestMsg">
+                <wsdlsoap:body use="literal" />
+            </wsdl:input>
+            <wsdl:output name="AddAlertSourceResponseMsg">
+                <wsdlsoap:body use="literal" />
+            </wsdl:output>
+        </wsdl:operation>                  
     </wsdl:binding>
 
     <wsdl:service name="AlertsSourcesService">

Modified: incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/resources/alerts.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/resources/alerts.composite?view=diff&rev=543501&r1=543500&r2=543501
==============================================================================
--- incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/resources/alerts.composite (original)
+++ incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/resources/alerts.composite Fri Jun  1 08:22:50 2007
@@ -20,28 +20,42 @@
 <composite xmlns="http://www.osoa.org/xmlns/sca/1.0" 
 	xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance"
 	xmlns:dbsdo="http://tuscany.apache.org/xmlns/sca/databinding/sdo/1.0"
+	targetNamespace="http://sample"
     name="FeedAggregator">
     
     <!-- SDO factory classes -->    
     <dbsdo:import.sdo factory="org.apache.tuscany.sca.samples.aggregator.service.ServiceFactory"/>        
     <dbsdo:import.sdo factory="org.apache.tuscany.sca.samples.aggregator.types.TypesFactory"/> 
     
-    <!-- The alerts service -->
+    <!-- The alerts web service -->
     <service name="AlertsService" promote="AlertsServiceComponent">
         <interface.wsdl interface="http://tuscany.apache.org/sca/samples/aggregator/service#wsdl.interface(AlertsPortType)"/>
         <binding.ws wsdlElement="http://tuscany.apache.org/sca/samples/aggregator/service#wsdl.port(AlertsService/AlertsPort)"/>
     </service>
 
+    <!-- The alerts jsonrpc service -->
+    <service name="AlertsServiceJSONRPC" promote="AlertsServiceComponent/AlertsService">
+        <interface.java interface="org.apache.tuscany.sca.samples.aggregator.AlertsService" />
+        <binding.jsonrpc />
+    </service>
+
     <component name="AlertsServiceComponent">
         <implementation.java class="org.apache.tuscany.sca.samples.aggregator.AlertsServiceImpl" />
         <reference name="rssChecker" target="RSSCheckerComponent"/>
+        <reference name="alertsSources" target="AlertsSourcesServiceComponent"/>
     </component>
     
-    <!-- The alerts sources service -->
+    <!-- The alerts sources web service -->
     <service name="AlertsSourcesService" promote="AlertsSourcesServiceComponent">
         <interface.wsdl interface="http://tuscany.apache.org/sca/samples/aggregator/sources#wsdl.interface(AlertsSourcesPortType)"/>
         <binding.ws wsdlElement="http://tuscany.apache.org/sca/samples/aggregator/sources#wsdl.port(AlertsSourcesService/AlertsSourcesPort)"/>
     </service>
+    
+    <!-- The alerts jsonrpc service -->
+    <service name="AlertsSourcesServiceJSONRPC" promote="AlertsSourcesServiceComponent/AlertsSourcesService">
+        <interface.java interface="org.apache.tuscany.sca.samples.aggregator.AlertsSourcesService" />
+        <binding.jsonrpc />
+    </service>    
         
     <component name="AlertsSourcesServiceComponent">
         <implementation.java class="org.apache.tuscany.sca.samples.aggregator.AlertsSourcesServiceImpl" />
@@ -49,7 +63,8 @@
     
     <!-- The RSS reader -->
     <component name="RSSCheckerComponent">
-        <implementation.script script="aggregator/RSSCheckerImpl.py"/>
+        <!--implementation.script script="aggregator/RSSCheckerImpl.py"/-->
+        <implementation.java class="org.apache.tuscany.sca.samples.aggregator.RSSCheckerServiceImpl"/>
     </component>
 
 </composite>

Modified: incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/resources/sources.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/resources/sources.xml?view=diff&rev=543501&r1=543500&r2=543501
==============================================================================
--- incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/resources/sources.xml (original)
+++ incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/resources/sources.xml Fri Jun  1 08:22:50 2007
@@ -21,13 +21,13 @@
 <ns0:Source Id="0" Type="rss">
   <ns0:Name>BBC News</ns0:Name>
   <ns0:Address>http://news.bbc.co.uk/</ns0:Address>
-  <ns0:LastChecked>2007-02-07T17:11:16</ns0:LastChecked>
+  <ns0:LastChecked>31-May-2007 08:34:03</ns0:LastChecked>
   <ns0:FeedAddress>http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/world/rss.xml</ns0:FeedAddress>
 </ns0:Source>
 <ns0:Source Id="1" Type="rss">
   <ns0:Name>Engadget</ns0:Name>
   <ns0:Address>http://www.engadget.com</ns0:Address>
-  <ns0:LastChecked>2007-02-07T17:11:14</ns0:LastChecked>
+  <ns0:LastChecked>31-May-2007 08:34:03</ns0:LastChecked>
   <ns0:FeedAddress>http://www.engadget.com/rss.xml</ns0:FeedAddress>
 </ns0:Source>
 </ns0:Config>

Added: incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/FeedAggregator.html
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/FeedAggregator.html?view=auto&rev=543501
==============================================================================
--- incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/FeedAggregator.html (added)
+++ incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/FeedAggregator.html Fri Jun  1 08:22:50 2007
@@ -0,0 +1,317 @@
+<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>Apache Tuscany Feed Aggregator Sample</TITLE>
+    
+    <script type="text/javascript">
+        var djConfig = {isDebug: true,debugContainerId: "dojoDebug" };
+        //djConfig.debugAtAllCosts = true;
+    </script>
+ 
+    <script type="text/javascript" src="dojo/dojo.js"> 
+    </script>
+
+    <script type="text/javascript">
+    	dojo.require("dojo.widget.*");
+    	dojo.require("dojo.widget.Button");
+    	dojo.require("dojo.rpc.JsonService");    	
+    </script>
+    
+    <link rel="stylesheet" type="text/css" href="style.css" />
+  </head>
+
+  <body>
+
+    <script type="text/javascript">
+    
+        // The proxy for the alert and alertsources services running in Tuscany
+        //var alertsService       = new dojo.rpc.JsonService("services/AlertsServiceJSONRPC?smd");
+        //var alertSourcesService = new dojo.rpc.JsonService("services/AlertsSourcesServiceJSONRPC?smd");
+	//var alertsService       = new dojo.rpc.JsonService("service.smd");
+        var alertSourcesService = new dojo.rpc.JsonService("sources.smd");
+
+        // The global list of alerts sources
+        var alertSourceList = null;
+
+        // the constructor for entries on the alert source list
+        function alertSourceType(name,id,address,feedAddress,type_,popUsername,popPassword,popServer,lastChecked,javaClass) {
+          this.name        = name;
+          this.id          = id;
+          this.address     = address;
+          this.feedAddress = feedAddress;
+          this.type_       = type_;
+          this.lastChecked = lastChecked;
+          this.javaClass   = "org.apache.tuscany.sca.samples.aggregator.SourceTypeNonSDOImpl";
+
+        }
+
+        function errorCallback(result, error, id) {
+            var resultsNode = document.getElementById("errors");
+            // There seems to be a problem somewhere as I should be able to get the error
+            // details but all I can actually get is the Id from the error message
+            // resultsNode.innerHTML = "there was an error! message id = "  + " error code = " + result.error.code + " error message = " + result.error.msg ;
+           resultsNode.innerHTML = "An error was returned by the server. Message id = " +  result.id;
+        }
+
+        // Generate the alert sources table
+        function getAlertSources()
+        { 
+            response = alertSourcesService.getAlertSources("Dojo");
+            response.addCallbacks(getAlertSourcesCallback, errorCallback);
+        }
+
+        function getAlertSourcesCallback(result) {
+            dojo.debug("in getAlertsCallback");
+            var resultsNode = document.getElementById("alertSourcesTable");
+            if ( result.error != null ) {
+                resultsNode.innerHTML = result.error;
+            } else {
+                // stash away the source list for when we come to edit it
+                alertSourceList = result.source.list;
+
+                // put out the html
+                var text = ""
+                var nextSourceId = 0
+                for (var i in result.source.list){
+                    var source = result.source.list[i];
+
+                    text = text + "<table>";
+                    text = text + "<TR CLASS='source_" + source.id + "' >";
+                    text = text + "  <TD CLASS='clickable' ONCLICK=\"displayAlert('" + source.address + "')\">";
+                    text = text + "    <IMG SRC='rss.png'/>&nbsp;&nbsp;" + source.name;
+                    text = text + "  </TD>";
+                    text = text + "  <TD CLASS='clickable link' ONCLICK=\"showEditSource('" + source.id + "')\">Edit</TD>";
+                    text = text + "  <TD CLASS='clickable link' ONCLICK=\"deleteSource('" + source.id + "')\">Delete</TD>";
+                    text = text + "</TR>";
+                    text = text + "<TR ID='edit_source_" + source.id + "' CLASS='hidden source_" + source.id + "'>";
+                    text = text + "  <TD COLSPAN='3'>";
+                    text = text + "    <TABLE CLASS='sourceDetailsTable'>";
+                    text = text + "      <TR>";
+                    text = text + "        <TD>Source name:</TD>";
+                    text = text + "        <TD>";
+                    text = text + "          <INPUT ID='source_" + source.id + "_name' TYPE='TEXT' SIZE='50' VALUE='" + source.name + "'/>";
+                    text = text + "        </TD>";
+                    text = text + "      </TR>";
+                    text = text + "      <TR>";
+                    text = text + "       <TD>Source address:</TD>"
+                    text = text + "        <TD>";
+                    text = text + "          <INPUT ID='source_" + source.id + "_address' TYPE='TEXT' SIZE='50' VALUE='" + source.address + "'/>";
+                    text = text + "        </TD>";
+                    text = text + "      </TR>";
+                    text = text + "      <TR>";
+                    text = text + "        <TD>";
+                    text = text + "          <INPUT ID='source_" + source.id + "_type' TYPE='HIDDEN' VALUE='" + source.id + "'/>";
+                    text = text + "          <INPUT TYPE='BUTTON' VALUE='Update' ONCLICK=\"updateSource('" + source.id + "')\"/>";
+                    text = text + "          <INPUT TYPE='BUTTON' VALUE='Cancel' ONCLICK=\"hideEditSource('" + source.id + "')\"/>";
+                    text = text + "        </TD>";
+                    text = text + "      </TR>";
+                    text = text + "    </TABLE>";
+                    text = text + "  </TD>";
+                    text = text + "</TR>";
+               
+                    nextSourceId = eval(source.id);
+                }
+
+                nextSourceId = nextSourceId + 1;
+
+                text = text + "<TR CLASS='source_" + nextSourceId + "'>";
+                text = text + "  <TD COLSPAN='4' CLASS='clickable link' ONCLICK=\"showAddNewSource('" + nextSourceId + "')\">Add new Alert Source</TD>";
+                text = text + "</TR>";
+                text = text + "<TR ID='add_source_" + nextSourceId + "' CLASS='hidden source_" + nextSourceId + "'>";
+                text = text + "  <TD COLSPAN='4'>";
+                text = text + "    <TABLE CLASS='sourceDetailsTable'>";
+                text = text + "      <TR>";
+                text = text + "        <TD>Source name:</TD>";
+                text = text + "        <TD>";
+                text = text + "          <INPUT ID='source_" + nextSourceId + "_name' TYPE='TEXT' SIZE='50'>";
+                text = text + "        </TD>";
+                text = text + "      </TR>";
+                text = text + "      <TR>";
+                text = text + "        <TD>Source address:</TD>";
+                text = text + "        <TD>";
+                text = text + "          <INPUT ID='source_" + nextSourceId + "_address' TYPE='TEXT' SIZE='50'>";
+                text = text + "        </TD>";
+                text = text + "      </TR>";
+                text = text + "      <TR>";
+                text = text + "        <TD>Source type:</TD>";
+                text = text + "        <TD>";
+                text = text + "          <SELECT ID='source_" + nextSourceId + "_type' ONCHANGE=\"showSourceType('" + nextSourceId + "')\">";
+                text = text + "            <OPTION value='rss' selected='selected'>RSS/Atom feed</OPTION>";
+                text = text + "          </SELECT>";
+                text = text + "        </TD>";
+                text = text + "      </TR>";
+                text = text + "      <TR ID='add_rss_source'>";
+                text = text + "        <TD COLSPAN='2'>";
+                text = text + "          <TABLE CLASS='sourceDetailsTable'>";
+                text = text + "            <TR>";
+                text = text + "              <TD>Feed address:</TD>";
+                text = text + "              <TD>";
+                text = text + "                 <INPUT ID='source_" + nextSourceId + "_feedAddress' TYPE='TEXT' SIZE='50'/>";
+                text = text + "              </TD>";
+                text = text + "            </TR>";
+                text = text + "          </TABLE>";
+                text = text + "        </TD>";
+                text = text + "      </TR>";
+                text = text + "      <TR>";
+                text = text + "        <TD>";
+                text = text + "          <INPUT TYPE='BUTTON' VALUE='Add' ONCLICK=\"addSource('" + nextSourceId + "')\">";
+                text = text + "          <INPUT TYPE='BUTTON' VALUE='Cancel' ONCLICK=\"hideAddNewSource('" + nextSourceId + "')\">";
+                text = text + "        </TD>";
+                text = text + "      </TR>";
+                text = text + "    </TABLE>";
+                text = text + "  </TD>";
+                text = text + "</TR>";
+                text = text + "</table>";
+
+                resultsNode.innerHTML = text;  
+            }
+        }
+
+        function showEditSource(sourceid)
+        {
+            document.getElementById("edit_source_"+sourceid).className = "source_"+sourceid;
+        }
+
+        function hideEditSource(sourceid)
+        {
+             document.getElementById("edit_source_"+sourceid).className = "hidden source_"+sourceid;
+        }
+ 
+        function updateSource(sourceid)
+        {
+            hideEditSource(sourceid);
+            var source = getSource(sourceId);
+            alertSourcesService.updateAlertSource(source);
+        }
+ 
+        function deleteSource(sourceid)
+        {
+            alertSourcesService.removeAlertSource(sourceid);
+        }
+
+        function showAddNewSource(sourceid)
+        {
+            document.getElementById("add_source_"+sourceid).className = "source_"+sourceid;
+        }
+
+        function hideAddNewSource(sourceid)
+        {
+            document.getElementById("add_source_"+sourceid).className = "hidden source_"+sourceid;
+        }
+
+        function addSource(sourceid)
+        {
+            hideAddNewSource(sourceid);
+            var source = getSource(sourceid);
+            alertSourcesService.addAlertSource(source);
+        }
+
+        function getSource(sourceid)
+        {
+            var source = alertSourceList[sourceid];
+
+            if ( source == null ){
+                source = new alertSourceType("name","id","address","feedAddress","type_","popUsername","popPassword","popServer","lastChecked","javaClass");
+                alertSourceList[sourceid] = source;
+            }
+            
+            source.name = document.getElementById("source_"+sourceid+"_name").value;
+            source.id   = sourceid;
+            source.address = document.getElementById("source_"+sourceid+"_address").value;
+            var typeElem = document.getElementById("source_"+sourceid+"_type");
+            source.type_ = typeElem.options[typeElem.selectedIndex].value; 
+
+            if(source.type_=="rss")
+            {
+                source.feedAddress = document.getElementById("source_"+sourceid+"_feedAddress").value;
+                
+            }
+            else if(type=="pop")
+            {
+                source.popServer = document.getElementById("source_"+sourceid+"_popServer").value;
+                source.popUsername = document.getElementById("source_"+sourceid+"_popUsername").value;
+                source.popPassword = document.getElementById("source_"+sourceid+"_popPassword").value;
+            } 
+            return source;     
+        }
+
+        // Generate the alerts table
+        function getAlerts()
+        { 
+            response = alertsService.getAllNewAlerts("Dojo");
+            response.addCallbacks(getAlertsCallback, errorCallback);
+        }
+
+        function getAlertsCallback(result) {
+            dojo.debug("in getAlertsCallback");
+            var resultsNode = document.getElementById("alertsTable");
+            if ( result.error != null ) {
+                resultsNode.innerHTML = result.error;
+            } else {
+                var text = ""
+                for (var i in result.alert.list){
+                    var alert = result.alert.list[i];
+
+                    text = text + "<table>";
+                    text = text + "<TR class='source_" + alert.sourceId + " clickable' onclick=\"displayAlert('" + alert.address + "')\">";
+                    text = text + " <TD>";
+                    text = text + "   <SPAN id='" + alert.id + "' class='unread_title'>" + alert.title + "</SPAN>";
+                    text = text + "   <SPAN class='summary'> - " + alert.summary  + "...</SPAN>";
+                    text = text + " </TD>";
+                    text = text + " <TD>";
+                    text = text +     alert.date;
+                    text = text + "  </TD>"
+                    text = text + "</TR>"
+                    text = text + "</table>";
+                }
+
+                resultsNode.innerHTML = text;  
+            }
+        }
+
+
+
+        function displayAlert(url)
+        {
+            document.getElementById("alertData").innerHTML="<IFRAME CLASS='alert_data' SRC='"+url+"'/>";
+            window.location="#data";
+            return;    
+        }
+
+
+    
+    </script>
+
+    <h1 id="top">Apache Tuscany Feed Aggregator Sample</h1>
+    <div id="errors"></div>
+    <p>Alert Sources<span id="refreshSources"></span>:</p>
+    <input type="button" value="getSources" onclick="getAlertSources()"/>
+    <div id="alertSourcesTable">Refreshing...</div>
+    <p/>
+    <input type="button" value="getAlerts" onclick="getAlerts()"/>
+    <p/>
+    <div id="alertsTable">Refreshing...</div>
+    <p><a id="data" HREF="#top">Back to top</a></p>
+    <div id="alertData"></div>
+    <p/>
+    <div id="dojoDebug">Dojo Debug:</div>
+       
+  </body>
+</html>

Propchange: incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/FeedAggregator.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/FeedAggregator.html
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/FeedAggregator.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/META-INF/sca-contribution.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/META-INF/sca-contribution.xml?view=auto&rev=543501
==============================================================================
--- incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/META-INF/sca-contribution.xml (added)
+++ incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/META-INF/sca-contribution.xml Fri Jun  1 08:22:50 2007
@@ -0,0 +1,26 @@
+<?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"
+targetNamespace="http://sample"
+    xmlns:sample="http://sample">
+   <deployable composite="sample:FeedAggregator"/>
+</contribution>
+

Propchange: incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/META-INF/sca-contribution.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/META-INF/sca-contribution.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/META-INF/sca-contribution.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/WEB-INF/web.xml?view=auto&rev=543501
==============================================================================
--- incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/WEB-INF/web.xml (added)
+++ incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/WEB-INF/web.xml Fri Jun  1 08:22:50 2007
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ * 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.    
+-->
+
+<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
+Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
+<web-app>
+
+    <display-name>Tuscany Feed Aggregator Sample</display-name>
+    
+    <listener>
+        <listener-class>org.apache.tuscany.sca.webapp.TuscanyContextListener</listener-class>
+    </listener>
+
+    <servlet>
+        <servlet-name>TuscanyServlet</servlet-name>
+        <servlet-class>org.apache.tuscany.sca.webapp.TuscanyServlet</servlet-class>
+    </servlet>
+ 
+    <servlet-mapping>
+        <servlet-name>TuscanyServlet</servlet-name>
+        <url-pattern>/services/*</url-pattern>
+    </servlet-mapping>
+
+    <welcome-file-list id="WelcomeFileList">
+        <welcome-file>FeedAggregator.html</welcome-file>
+    </welcome-file-list>  
+
+</web-app>

Propchange: incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/pop.png
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/pop.png?view=auto&rev=543501
==============================================================================
Binary file - no diff available.

Propchange: incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/pop.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/rss.png
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/rss.png?view=auto&rev=543501
==============================================================================
Binary file - no diff available.

Propchange: incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/rss.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/service.smd
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/service.smd?view=auto&rev=543501
==============================================================================
--- incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/service.smd (added)
+++ incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/service.smd Fri Jun  1 08:22:50 2007
@@ -0,0 +1 @@
+{"SMDVersion":".1","objectName":"AlertsService","serviceType":"JSON-RPC","serviceURL":"http://localhost:8080/sample-feed-aggregator/services/AlertsServiceJSONRPC","methods":[{"name":"getAllNewAlerts","parameters":[{"name":"param0","type":"STRING"}]}]}

Propchange: incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/service.smd
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/sources.smd
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/sources.smd?view=auto&rev=543501
==============================================================================
--- incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/sources.smd (added)
+++ incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/sources.smd Fri Jun  1 08:22:50 2007
@@ -0,0 +1 @@
+{"SMDVersion":".1","objectName":"AlertsSourcesService","serviceType":"JSON-RPC","serviceURL":"http://localhost:8081/sample-feed-aggregator/services/AlertsSourcesServiceJSONRPC","methods":[{"name":"getAlertSources","parameters":[{"name":"param0","type":"STRING"}]},{"name":"getAlertSource","parameters":[{"name":"param0","type":"STRING"}]},{"name":"updateAlertSource","parameters":[{"name":"param0","type":"STRING"}]},{"name":"addAlertSource","parameters":[{"name":"param0","type":"STRING"}]},{"name":"removeAlertSource","parameters":[{"name":"param0","type":"STRING"}]}]}

Propchange: incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/sources.smd
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/style.css
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/style.css?view=auto&rev=543501
==============================================================================
--- incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/style.css (added)
+++ incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/style.css Fri Jun  1 08:22:50 2007
@@ -0,0 +1,166 @@
+/*
+ * 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.
+ */
+
+p,table,li,h1,h2,h3
+{
+font-family: verdana, arial, 'sans serif'; 
+}
+
+p, h1, h2, h3, table, li, hr
+{
+margin-left: 10pt;
+}
+
+table
+{
+border-color: black;
+border-collapse: separate;
+border-spacing: 0px 1px;
+
+margin-right: 10pt;
+margin-left: 10pt;
+width: 800px;
+}
+
+.sourceDetailsTable
+{
+width: 600px;
+}
+
+tr, td
+{
+margin-left: 0pt;
+margin-right: 0pt;
+padding-left: 10pt;
+font-size: 90%;
+}
+
+p,li,th
+{
+font-size: 90%;
+margin-left: 10pt;
+}
+
+pre
+{
+margin-left: 10pt;
+}
+
+body
+{
+#ffffff;
+}
+
+h1,h2,h3,hr
+{
+color: firebrick;
+}
+
+a:link {COLOR: firebrick;}
+a:visited {COLOR: firebrick;}
+a:active {COLOR: navy;}
+
+.link
+{
+COLOR: firebrick;
+text-decoration: underline;
+}
+
+.clickable
+{
+cursor: pointer
+}
+
+.unread_title
+{
+font-weight: bold;
+}
+
+.read_title
+{
+font-weight: normal;
+}
+
+.summary
+{
+color: DimGrey;
+}
+
+.hidden
+{
+display: none;
+}
+
+.alert_data
+{
+margin-left: 10px;
+width: 800px;
+height: 800px;
+}
+
+.source_0
+{
+background-color: LightGreen;
+}    
+
+.source_1
+{
+background-color: LightSkyBlue;
+}
+
+.source_2
+{
+background-color: Khaki;
+}
+
+.source_3
+{
+background-color: LightPink;
+}
+
+.source_4
+{
+background-color: Orange;
+}
+
+.source_5
+{
+background-color: LightCoral;
+}
+
+.source_6
+{
+background-color: Orchid;
+}
+
+.source_7
+{
+background-color: Peru;
+}
+
+.source_8
+{
+background-color: SpringGreen;
+}
+
+.source_9
+{
+background-color: LightGrey;
+}
+

Propchange: incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/style.css
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/tuscany/sandbox/slaws/feed-aggregator/src/test/java/org/apache/tuscany/sca/samples/aggregator/AlertsTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/slaws/feed-aggregator/src/test/java/org/apache/tuscany/sca/samples/aggregator/AlertsTestCase.java?view=diff&rev=543501&r1=543500&r2=543501
==============================================================================
--- incubator/tuscany/sandbox/slaws/feed-aggregator/src/test/java/org/apache/tuscany/sca/samples/aggregator/AlertsTestCase.java (original)
+++ incubator/tuscany/sandbox/slaws/feed-aggregator/src/test/java/org/apache/tuscany/sca/samples/aggregator/AlertsTestCase.java Fri Jun  1 08:22:50 2007
@@ -49,7 +49,7 @@
      */
     public void testWait() throws Exception {
         System.out.println("Running server - press a key to stop");
-        System.in.read();
+        //System.in.read();
         System.out.println("Finished waiting");
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org