You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-dev@ws.apache.org by sc...@apache.org on 2005/05/31 21:43:38 UTC

svn commit: r179267 - /incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationService.java

Author: scamp
Date: Tue May 31 12:43:37 2005
New Revision: 179267

URL: http://svn.apache.org/viewcvs?rev=179267&view=rev
Log: (empty)

Modified:
    incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationService.java

Modified: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationService.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationService.java?rev=179267&r1=179266&r2=179267&view=diff
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationService.java (original)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationService.java Tue May 31 12:43:37 2005
@@ -30,8 +30,6 @@
         extends AbstractWeatherStationService
         implements WeatherStationCustomOperationsPortType
 {
-
-
     /**
      * A NamespaceVerionHolder which maintains the QNames of Spec Wsdls
      */
@@ -73,7 +71,7 @@
         //set status to partially unavailable
         changeOperationalStatus(OperationalStatusDocument.OperationalStatus.PARTIALLY_AVAILABLE);
 
-        //remove service from dir //todo I'm assuming name is the resource key
+        //remove service from dir
         ResourceProperty resourceProperty = ((PropertiesResource)getResource()).getResourcePropertySet().get(WeatherStationPropertyQNames.RESOURCEID);
         org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ResourceIdDocument prop_name = (org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ResourceIdDocument) resourceProperty.get(0);
         String id = prop_name.getResourceId();
@@ -81,7 +79,7 @@
         org.wsdmdemo.service.weatherStationDir.RemoveWeatherStationDocument.RemoveWeatherStation removeWeatherStation = removeWeatherStationDocument.addNewRemoveWeatherStation();
         removeWeatherStation.setResourceId(id);
 
-        //todo need to send request..do n
+        //need to send request.
         String address = getResourceContext().getBaseURL() + "/" + WeatherStationDirHome.SERVICE_NAME.getLocalPart();
         XmlObject xmlObject = InteropRequestUtils.sendRequest(removeWeatherStationDocument,"Remove", address);
 
@@ -97,7 +95,6 @@
         //set status to unavailable
         changeOperationalStatus(OperationalStatusDocument.OperationalStatus.UNAVAILABLE);
 
-        //TODO implement method and populate the response object
         return responseDocument;
     }
 
@@ -107,7 +104,8 @@
      * @param status
      */
     private void changeOperationalStatus(OperationalStatusDocument.OperationalStatus.Enum status)
-    {  //todo is there another way? ..without manually creating event?
+    {
+        //todo is there another way? ..without manually creating event?
         SetResourcePropertiesPortTypeImpl setResourcePropertiesPortType = new SetResourcePropertiesPortTypeImpl(getResourceContext());
         SetResourcePropertiesDocument setResourcePropertiesDocument = SetResourcePropertiesDocument.Factory.newInstance();
         SetResourcePropertiesDocument.SetResourceProperties setResourceProperties = setResourcePropertiesDocument.addNewSetResourceProperties();



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