ws-muse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sc...@apache.org
Subject svn commit: r158832 - in incubator/muse/trunk/src/site/content/interop/src/java/org: apache/ws/resource/example/blackberry/ apache/ws/resource/example/ipmiserver/ apache/ws/resource/example/mowsfactory/ everestWeather/wsdm/samples/x2005/x04/schema/
Date Wed, 23 Mar 2005 21:13:23 GMT
Author: scamp
Date: Wed Mar 23 13:13:22 2005
New Revision: 158832

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


Modified:
    incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/BlackberryResource.java
    incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/ipmiserver/IpmiserverResource.java
    incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/mowsfactory/MowsfactoryResource.java
    incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/WeatherstationResource.java

Modified: incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/BlackberryResource.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/BlackberryResource.java?view=diff&r1=158831&r2=158832
==============================================================================
--- incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/BlackberryResource.java
(original)
+++ incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/BlackberryResource.java
Wed Mar 23 13:13:22 2005
@@ -8,6 +8,7 @@
 import org.apache.ws.mows.v1_0.capability.OperationalStatusCapability;
 import org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManageabilityCapabilityDocument;
 import org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ResourceIdDocument;
+import org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.OperationalStatusDocument;
 
 /**
  * A Blackberry WS-Resource.
@@ -87,7 +88,12 @@
         resourceProperty = resourcePropertySet.get(BlackberryPropertyQNames.CURRENTTIME2);
         resourceProperty = resourcePropertySet.get(BlackberryPropertyQNames.DATE);
         resourceProperty = resourcePropertySet.get(BlackberryPropertyQNames.FREESTORAGE);
+        
         resourceProperty = resourcePropertySet.get(BlackberryPropertyQNames.OPERATIONALSTATUS);
+        OperationalStatusDocument operationalStatusDocument = OperationalStatusDocument.Factory.newInstance();
+        operationalStatusDocument.setOperationalStatus(OperationalStatusDocument.OperationalStatus.AVAILABLE);
+        resourceProperty.add(operationalStatusDocument);
+
         resourceProperty = resourcePropertySet.get(BlackberryPropertyQNames.TIME);
         resourceProperty = resourcePropertySet.get(BlackberryPropertyQNames.TOTALCODEMODULESIZE);
     }

Modified: incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/ipmiserver/IpmiserverResource.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/ipmiserver/IpmiserverResource.java?view=diff&r1=158831&r2=158832
==============================================================================
--- incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/ipmiserver/IpmiserverResource.java
(original)
+++ incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/ipmiserver/IpmiserverResource.java
Wed Mar 23 13:13:22 2005
@@ -7,6 +7,7 @@
 import org.apache.ws.mows.v1_0.capability.OperationalStatusCapability;
 import org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManageabilityCapabilityDocument;
 import org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ResourceIdDocument;
+import org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.OperationalStatusDocument;
 
 /**
  * A Ipmiserver WS-Resource.
@@ -66,10 +67,14 @@
         resourceIdDocument.setResourceId((String)getID());
         resourceProperty.add(resourceIdDocument);
 
-        resourceProperty = resourcePropertySet.get(IpmiserverPropertyQNames.CPUUSAGE);
+        resourceProperty = resourcePropertySet.get(IpmiserverPropertyQNames.CPUUSAGE);  
     
         resourceProperty = resourcePropertySet.get(IpmiserverPropertyQNames.CURRENTTIME);
+
         resourceProperty = resourcePropertySet.get(IpmiserverPropertyQNames.OPERATIONALSTATUS);
-        
+        OperationalStatusDocument operationalStatusDocument = OperationalStatusDocument.Factory.newInstance();
+        operationalStatusDocument.setOperationalStatus(OperationalStatusDocument.OperationalStatus.AVAILABLE);
+        resourceProperty.add(operationalStatusDocument);
+
     }
 
 }

Modified: incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/mowsfactory/MowsfactoryResource.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/mowsfactory/MowsfactoryResource.java?view=diff&r1=158831&r2=158832
==============================================================================
--- incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/mowsfactory/MowsfactoryResource.java
(original)
+++ incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/mowsfactory/MowsfactoryResource.java
Wed Mar 23 13:13:22 2005
@@ -6,6 +6,7 @@
 import org.apache.ws.muws.v1_0.capability.IdentityCapability;
 import org.apache.ws.mows.v1_0.capability.OperationalStatusCapability;
 import org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManageabilityCapabilityDocument;
+import org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.OperationalStatusDocument;
 
 /**
  * A Mowsfactory WS-Resource.
@@ -45,8 +46,13 @@
 
         //todo
         /** Properties **/
-        
+
         resourceProperty = resourcePropertySet.get(MowsfactoryPropertyQNames.OPERATIONALSTATUS);
+        OperationalStatusDocument operationalStatusDocument = OperationalStatusDocument.Factory.newInstance();
+        operationalStatusDocument.setOperationalStatus(OperationalStatusDocument.OperationalStatus.AVAILABLE);
+        resourceProperty.add(operationalStatusDocument);
+
+        //todo not sure what to put in the resourceid
         resourceProperty = resourcePropertySet.get(MowsfactoryPropertyQNames.RESOURCEID);
     }
 

Modified: incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/WeatherstationResource.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/WeatherstationResource.java?view=diff&r1=158831&r2=158832
==============================================================================
--- incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/WeatherstationResource.java
(original)
+++ incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/WeatherstationResource.java
Wed Mar 23 13:13:22 2005
@@ -2,6 +2,7 @@
 package org.everestWeather.wsdm.samples.x2005.x04.schema;
 
 import org.apache.ws.resource.properties.ResourceProperty;
+import org.apache.ws.resource.properties.XmlBeansResourcePropertyUtils;
 import org.apache.ws.resource.example.blackberry.BlackberryPropertyQNames;
 import org.apache.ws.muws.v1_0.capability.IdentityCapability;
 import org.apache.ws.muws.v1_0.capability.CorrelatablePropertiesCapability;
@@ -13,6 +14,12 @@
 import org.apache.ws.mows.v1_0.capability.RequestProcessingStateCapability;
 import org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManageabilityCapabilityDocument;
 import org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ResourceIdDocument;
+import org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.OperationalStatusDocument;
+import org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipDocument;
+import org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipType;
+import org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipParticipantType;
+import org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipTypeType;
+import org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.CurrentTimeDocument;
 
 /**
  * A Weatherstation WS-Resource.
@@ -90,9 +97,33 @@
         resourceProperty.add(resourceIdDocument);
 
         resourceProperty = resourcePropertySet.get(WeatherstationPropertyQNames.CURRENTTIME);
+
+
         resourceProperty = resourcePropertySet.get(WeatherstationPropertyQNames.OPERATIONALSTATUS);
+        OperationalStatusDocument operationalStatusDocument = OperationalStatusDocument.Factory.newInstance();
+        operationalStatusDocument.setOperationalStatus(OperationalStatusDocument.OperationalStatus.AVAILABLE);
+        resourceProperty.add(operationalStatusDocument);
+
+
+        //todo this is only started....
         resourceProperty = resourcePropertySet.get(WeatherstationPropertyQNames.RELATIONSHIP);
-        
+        RelationshipDocument relationshipDocument = RelationshipDocument.Factory.newInstance();
+
+        //add new type
+        RelationshipType relationshipType = relationshipDocument.addNewRelationship();
+        relationshipType.setName("");//set name of relationship type
+        //relationshipType.setAccessEndpointReference();//need EPR
+
+        //add a participant
+        RelationshipParticipantType relationshipParticipantType = relationshipType.addNewParticipant();
+        relationshipParticipantType.setResourceId("");
+        relationshipParticipantType.setRole("");
+        //relationshipParticipantType.setManageabilityEndpointReferenceArray();   //EPR Array
+
+        //add a relationshiptype
+        RelationshipTypeType relationshipTypeType = relationshipType.addNewType();
+
+
 
     }
 



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


Mime
View raw message