CVS update: sierra/src/java/org/openprivacy/sierra/soap/service/reputation

From: cvs@openprivacy.org
Date: Tue Jan 09 2001 - 04:16:58 PST


Date: Tuesday January 9, 19101 @ 4:16
Author: burton
CVSWEB Options: -------------------

Main CVSWeb: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi

View this module: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/soap/service/reputation

-----------------------------------

Update of /usr/local/cvsroot/sierra/src/java/org/openprivacy/sierra/soap/service/reputation
In directory openprivacy.org:/tmp/cvs-serv19527/src/java/org/openprivacy/sierra/soap/service/reputation

Modified Files:
        DeploymentDescriptor.xml ReputationService.java
Log Message:
init of put reputation object... some reason it is still using a null reference... hmmm

*****************************************************************
File: sierra/src/java/org/openprivacy/sierra/soap/service/reputation/DeploymentDescriptor.xml

CVSWEB Options: -------------------

CVSWeb: Annotate this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/soap/service/reputation/DeploymentDescriptor.xml?annotate=1.5

CVSWeb: View this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/soap/service/reputation/DeploymentDescriptor.xml?rev=1.5&content-type=text/x-cvsweb-markup

CVSWeb: Diff to previous version: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/soap/service/reputation/DeploymentDescriptor.xml.diff?r1=1.5&r2=1.4

-----------------------------------

Index: sierra/src/java/org/openprivacy/sierra/soap/service/reputation/DeploymentDescriptor.xml
diff -u sierra/src/java/org/openprivacy/sierra/soap/service/reputation/DeploymentDescriptor.xml:1.4 sierra/src/java/org/openprivacy/sierra/soap/service/reputation/DeploymentDescriptor.xml:1.5
--- sierra/src/java/org/openprivacy/sierra/soap/service/reputation/DeploymentDescriptor.xml:1.4 Mon Jan 8 16:15:28 2001
+++ sierra/src/java/org/openprivacy/sierra/soap/service/reputation/DeploymentDescriptor.xml Tue Jan 9 04:16:58 2001
@@ -17,7 +17,7 @@
              java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
              xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>
     <isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
- xmlns:x="http://schemas.openprivacy.org/core/reputation/12/2000/value" qname="x:reputation"
+ xmlns:x="http://schemas.openprivacy.org/core/reputation/12/2000/value/" qname="x:value"
              javaType="org.openprivacy.sierra.Value"
              java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
              xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>

*****************************************************************
File: sierra/src/java/org/openprivacy/sierra/soap/service/reputation/ReputationService.java

CVSWEB Options: -------------------

CVSWeb: Annotate this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/soap/service/reputation/ReputationService.java?annotate=1.3

CVSWeb: View this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/soap/service/reputation/ReputationService.java?rev=1.3&content-type=text/x-cvsweb-markup

CVSWeb: Diff to previous version: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/soap/service/reputation/ReputationService.java.diff?r1=1.3&r2=1.2

-----------------------------------

Index: sierra/src/java/org/openprivacy/sierra/soap/service/reputation/ReputationService.java
diff -u sierra/src/java/org/openprivacy/sierra/soap/service/reputation/ReputationService.java:1.2 sierra/src/java/org/openprivacy/sierra/soap/service/reputation/ReputationService.java:1.3
--- sierra/src/java/org/openprivacy/sierra/soap/service/reputation/ReputationService.java:1.2 Mon Jan 8 16:21:57 2001
+++ sierra/src/java/org/openprivacy/sierra/soap/service/reputation/ReputationService.java Tue Jan 9 04:16:58 2001
@@ -6,9 +6,9 @@
  * Foundation; either version 2 of the License, or any later version.
  *
  * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
- * more details.
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+ * details.
  *
  * You should have received a copy of the GNU General Public License along with
  * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
@@ -36,7 +36,7 @@
 
    @see http://www.openprivacy.org
    @author <a href="mailto:burton@openprivacy.org">Kevin A. Burton</a>
- @version $Id: ReputationService.java,v 1.2 2001/01/09 00:21:57 burton Exp $
+ @version $Id: ReputationService.java,v 1.3 2001/01/09 12:16:58 burton Exp $
 */
 public class ReputationService {
 
@@ -44,28 +44,42 @@
         = "http://schemas.openprivacy.org/core/reputation/12/2000/";
 
     /**
+ * Stores known reputations registered within the system.
+ */
+ private Hashtable knownReputations = new Hashtable();
+
+ /**
      * Given a URI for a reputation return its value.
      *
      * @author <a href="mailto:burton@openprivacy.org">Kevin A. Burton</a>
- * @version $Id: ReputationService.java,v 1.2 2001/01/09 00:21:57 burton Exp $
+ * @version $Id: ReputationService.java,v 1.3 2001/01/09 12:16:58 burton Exp $
     */
- public Reputation getReputation() throws ReputationNotFoundException {
+ public Reputation getReputation( String reference ) throws ReputationNotFoundException {
 
- System.out.println( "Getting reputation..." );
+ System.out.println( "FIXME: Within getReputation" );
         
- return new Reputation( "test" );
+ Reputation rep = (Reputation)knownReputations.get( reference );
+
+ if ( rep == null ) {
+ throw new ReputationNotFoundException( reference );
+ }
+
+ return rep;
+
     }
 
     /**
      * Given a URI and data... store a reputation.
      *
      * @author <a href="mailto:burton@openprivacy.org">Kevin A. Burton</a>
- * @version $Id: ReputationService.java,v 1.2 2001/01/09 00:21:57 burton Exp $
+ * @version $Id: ReputationService.java,v 1.3 2001/01/09 12:16:58 burton Exp $
      */
     public void putReputation( Reputation reputation ) {
 
- System.out.println( "Storing reputation..." );
- return;
+ System.out.println( "putReputation: " + reputation.getReference() );
+
+ //knownReputations.put( reputation.getReference(), reputation );
+
     }
     
 }



This archive was generated by hypermail 2b30 : Mon Jan 22 2001 - 15:52:14 PST