CVS update: openprivacy/htdocs/notes

From: cvs@openprivacy.org
Date: Sat Dec 16 2000 - 15:52:55 PST


Date: Saturday December 16, 19100 @ 15:52
Author: fen
CVSWEB Options: -------------------

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

View this module: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/openprivacy/htdocs/notes

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

Update of /usr/local/cvsroot/openprivacy/htdocs/notes
In directory openprivacy.org:/home/fen/projects/openprivacy/htdocs/notes

Modified Files:
        flow.txt
Log Message:
updated jetspeek.getProb

*****************************************************************
File: openprivacy/htdocs/notes/flow.txt

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

CVSWeb: Annotate this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/openprivacy/htdocs/notes/flow.txt?annotate=1.16

CVSWeb: View this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/openprivacy/htdocs/notes/flow.txt?rev=1.16&content-type=text/x-cvsweb-markup

CVSWeb: Diff to previous version: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/openprivacy/htdocs/notes/flow.txt.diff?r1=1.16&r2=1.15

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

Index: openprivacy/htdocs/notes/flow.txt
diff -u openprivacy/htdocs/notes/flow.txt:1.15 openprivacy/htdocs/notes/flow.txt:1.16
--- openprivacy/htdocs/notes/flow.txt:1.15 Sat Dec 16 14:47:38 2000
+++ openprivacy/htdocs/notes/flow.txt Sat Dec 16 15:52:55 2000
@@ -1,4 +1,4 @@
-$Id: flow.txt,v 1.15 2000/12/16 22:47:38 fen Exp $
+$Id: flow.txt,v 1.16 2000/12/16 23:52:55 fen Exp $
 
 http://pix.comedia.com/OpenPrivacy/20001214/DSCN5532.JPG
 
@@ -16,28 +16,53 @@
 JP: receive OCS feed
 JP: parse into RSS channels
 JP: for each channel,
- if (not (prob-created-or-modified channel))
+ if not prob-created-or-modified(channel)
                create-prob(channel)
 
-jetspeek.prob-created-or-modified(rssChannel) {
+// how does OpinionFactory determine the properties of an Opinion?
+//
+XMLDocument
+ toXML() : String
+ setProperty(name, value) : Void
+ getProperty(name) : String
+ init(namespace)
+
+Opinion implements XMLDocument
+
+// create a primary (secret,public) key pair for JetsPeek
+// store this pair as a primary (top-level) pair
+//
+JP: (NP1s,NP1p) = createPseudonym(rand())
+
+jetspeek.getProb(rssChannel) {
     URI = rssChannel.getURI
- description = rssChannel.getDescription.
+ description = rssChannel.getDescription
     hash = sha1(URI + description)
+
     if not hashTable.exists(hash) {
- prob = ProbFactory.create(
- OpinionFactory.create(namespace=RSS,
- channel=rssChannel,
- description=description,
- ...))
+
+ op = New Opinion
+
+ op.setProperty("namespace", "RSS*")
+ op.setProperty("channel", rssChannel)
+ op.setProperty("URI", URI)
+ op.setProperty("description", description)
+
+ prob = ProbFactory.create(OpinionFactory.create(op, NP1p))
+
         storeLocally(prob)
         hashTable.put(hash, prob)
     }
+ else {
+ prob = hashTable.get(hash)
+ }
+ return prob;
+}
 
-// create a primary (secret,public) key pair
-// store this pair as a primary (top-level) pair
+// create a primary (secret,public) key pair [see e.g. openssh]
+// store this pair as a primary (top-level) pair
 //
 A1: (N1s,N1p) = createPseudonym(rand())
- [see e.g. openssh]
 
 // ask SCDS for OCS channels filtered by keyword
 // how does SendMessage know who to send to? (for now, hardwire addresses)



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