From: cvs@openprivacy.orgCVS update: sierra/src/java/org/openprivacy/sierra/rce/talon/implementations
Date: Saturday February 24, 19101 @ 19:35
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/rce/talon/implementations
-----------------------------------
Update of /usr/local/cvs/public/sierra/src/java/org/openprivacy/sierra/rce/talon/implementations
In directory giga:/tmp/cvs-serv21568/src/java/org/openprivacy/sierra/rce/talon/implementations
Modified Files:
MeanRCE.java
Log Message:
RCE should have been using nyms and not principals
*****************************************************************
File: sierra/src/java/org/openprivacy/sierra/rce/talon/implementations/MeanRCE.java
CVSWEB Options: -------------------
CVSWeb: Annotate this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/rce/talon/implementations/MeanRCE.java?annotate=1.2
CVSWeb: View this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/rce/talon/implementations/MeanRCE.java?rev=1.2&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/rce/talon/implementations/MeanRCE.java.diff?r1=1.2&r2=1.1
-----------------------------------
Index: sierra/src/java/org/openprivacy/sierra/rce/talon/implementations/MeanRCE.java
diff -u sierra/src/java/org/openprivacy/sierra/rce/talon/implementations/MeanRCE.java:1.1 sierra/src/java/org/openprivacy/sierra/rce/talon/implementations/MeanRCE.java:1.2
--- sierra/src/java/org/openprivacy/sierra/rce/talon/implementations/MeanRCE.java:1.1 Fri Feb 23 15:42:36 2001
+++ sierra/src/java/org/openprivacy/sierra/rce/talon/implementations/MeanRCE.java Sat Feb 24 19:35:10 2001
@@ -26,6 +26,7 @@
//sierra stuff
import org.openprivacy.sierra.util.*;
+import org.openprivacy.sierra.nym.talon.interfaces.*;
import org.openprivacy.sierra.rce.talon.interfaces.*;
import org.openprivacy.sierra.reputation.talon.interfaces.*;
@@ -34,26 +35,26 @@
*
* @see http://www.openprivacy.org
* @author <a href="mailto:burton@openprivacy.org">Kevin A. Burton</a>
- * @version $Id: MeanRCE.java,v 1.1 2001/02/23 23:42:36 burton Exp $
+ * @version $Id: MeanRCE.java,v 1.2 2001/02/25 03:35:10 burton Exp $
*/
public class MeanRCE extends BaseRCE implements RCE {
- ReputationPrincipalMap map = new ReputationPrincipalMap();
+ ReputationNymMap map = new ReputationNymMap();
- private URI principal = null;
+ private Nym nym = null;
/**
* @see Component
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: MeanRCE.java,v 1.1 2001/02/23 23:42:36 burton Exp $
+ * @version $Id: MeanRCE.java,v 1.2 2001/02/25 03:35:10 burton Exp $
*/
public void init() { }
/**
* @see RCE#putReputation
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: MeanRCE.java,v 1.1 2001/02/23 23:42:36 burton Exp $
+ * @version $Id: MeanRCE.java,v 1.2 2001/02/25 03:35:10 burton Exp $
*/
public Reputation getReputation( RCEContext context, Reference reference ) throws ReputationNotFoundException {
@@ -70,7 +71,7 @@
/**
* @see RCE#putReputation
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: MeanRCE.java,v 1.1 2001/02/23 23:42:36 burton Exp $
+ * @version $Id: MeanRCE.java,v 1.2 2001/02/25 03:35:10 burton Exp $
*/
public Reputation getReputation( Reference reference ) throws SierraException {
@@ -81,7 +82,7 @@
/**
* @see RCE#putReputation
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: MeanRCE.java,v 1.1 2001/02/23 23:42:36 burton Exp $
+ * @version $Id: MeanRCE.java,v 1.2 2001/02/25 03:35:10 burton Exp $
*/
public void putReputation( RCEContext context, Reputation reputation ) {
map.putReputation( reputation );
@@ -90,15 +91,20 @@
/**
* @see RCE#putReputation
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: MeanRCE.java,v 1.1 2001/02/23 23:42:36 burton Exp $
+ * @version $Id: MeanRCE.java,v 1.2 2001/02/25 03:35:10 burton Exp $
*/
public void putReputation( Reputation reputation ) throws SierraException {
putReputation( SierraResources.getRCEContext(), reputation );
}
- public URI getPrincipal() {
- return this.principal;
+ /**
+ * @see RCE#getNym
+ * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
+ * @version $Id: MeanRCE.java,v 1.2 2001/02/25 03:35:10 burton Exp $
+ */
+ public Nym getNym() {
+ return this.nym;
}
}
@@ -107,9 +113,9 @@
* Internally stores a mechanism to map references (URIs) to lists of Reputations.
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: MeanRCE.java,v 1.1 2001/02/23 23:42:36 burton Exp $
+ * @version $Id: MeanRCE.java,v 1.2 2001/02/25 03:35:10 burton Exp $
*/
-class ReputationPrincipalMap {
+class ReputationNymMap {
private Hashtable references = new Hashtable();
@@ -134,7 +140,7 @@
* Get a Vector of reputations from the references has or return a new one.
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: MeanRCE.java,v 1.1 2001/02/23 23:42:36 burton Exp $
+ * @version $Id: MeanRCE.java,v 1.2 2001/02/25 03:35:10 burton Exp $
*/
private Vector getVector( Reference reference ) {
This archive was generated by hypermail 2b30 : Sat Feb 24 2001 - 19:36:08 PST