|
From: <pe...@us...> - 2003-09-24 23:56:53
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/contracts/transfer
In directory sc8-pr-cvs1:/tmp/cvs-serv524/src/java/org/neuclear/contracts/transfer
Modified Files:
Asset.java Transfer.java
Log Message:
Refactoring nearly done. New model for creating signed objects.
With view for supporting the xmlpull api shortly for performance reasons.
Currently still uses dom4j but that has been refactored out that it
should now be very quick to implement a xmlpull implementation.
A side benefit of this is that the API has been further simplified. I still have some work
todo with regards to cleaning up some of the outlying parts of the code.
Index: Asset.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/contracts/transfer/Asset.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Asset.java 23 Sep 2003 19:16:26 -0000 1.3
--- Asset.java 24 Sep 2003 23:56:47 -0000 1.4
***************
*** 2,5 ****
--- 2,14 ----
* $Id$
* $Log$
+ * Revision 1.4 2003/09/24 23:56:47 pelle
+ * Refactoring nearly done. New model for creating signed objects.
+ * With view for supporting the xmlpull api shortly for performance reasons.
+ * Currently still uses dom4j but that has been refactored out that it
+ * should now be very quick to implement a xmlpull implementation.
+ *
+ * A side benefit of this is that the API has been further simplified. I still have some work
+ * todo with regards to cleaning up some of the outlying parts of the code.
+ *
* Revision 1.3 2003/09/23 19:16:26 pelle
* Changed NameSpace to Identity.
***************
*** 21,25 ****
* Revision 1.6 2003/02/14 21:10:32 pelle
* The email sender works. The LogSender and the SoapSender should work but havent been tested yet.
! * The NamedObject has a new log() method that logs it's contents at it's parent Identity's logger.
* The Identity object also has a new method send() which allows one to send a named object to the Identity's
* default receiver.
--- 30,34 ----
* Revision 1.6 2003/02/14 21:10:32 pelle
* The email sender works. The LogSender and the SoapSender should work but havent been tested yet.
! * The SignedNamedObject has a new log() method that logs it's contents at it's parent Identity's logger.
* The Identity object also has a new method send() which allows one to send a named object to the Identity's
* default receiver.
***************
*** 32,36 ****
*
* Revision 1.3 2002/12/17 21:40:56 pelle
! * First part of refactoring of NamedObject and SignedObject Interface/Class parings.
*
* Revision 1.2 2002/12/17 20:34:40 pelle
--- 41,45 ----
*
* Revision 1.3 2002/12/17 21:40:56 pelle
! * First part of refactoring of SignedNamedObject and SignedObject Interface/Class parings.
*
* Revision 1.2 2002/12/17 20:34:40 pelle
***************
*** 39,45 ****
* on it before I'm happy.
* There is now a NSResolver class, which handles all the namespace resolution. I took most of the functionality
! * for this out of NamedObject.
! * Then there is the veriifer, which verifies a given NamedObject using the NSResolver.
! * This has simplified the NamedObject classes drastically, leaving them as mainly data objects, which is what they
* should be.
* I have also gone around and tightened up security on many different classes, making clases and/or methods final where appropriate.
--- 48,54 ----
* on it before I'm happy.
* There is now a NSResolver class, which handles all the namespace resolution. I took most of the functionality
! * for this out of SignedNamedObject.
! * Then there is the veriifer, which verifies a given SignedNamedObject using the NSResolver.
! * This has simplified the SignedNamedObject classes drastically, leaving them as mainly data objects, which is what they
* should be.
* I have also gone around and tightened up security on many different classes, making clases and/or methods final where appropriate.
***************
*** 60,68 ****
import org.dom4j.Element;
import org.dom4j.Namespace;
! import org.neuclear.id.NamedObject;
import org.neuclear.receiver.Receiver;
import org.neudist.utils.NeudistException;
! public class Asset extends NamedObject implements Receiver {
public Asset(String name, String service, String interactive, String description) {//TODO Add validity fields
--- 69,77 ----
import org.dom4j.Element;
import org.dom4j.Namespace;
! import org.neuclear.id.SignedNamedObject;
import org.neuclear.receiver.Receiver;
import org.neudist.utils.NeudistException;
! public class Asset extends SignedNamedObject implements Receiver {
public Asset(String name, String service, String interactive, String description) {//TODO Add validity fields
***************
*** 99,103 ****
}
! public void receive(NamedObject obj) throws NeudistException {
// SOAPStore.storeDirect(getServiceURL(),obj);
}
--- 108,112 ----
}
! public void receive(SignedNamedObject obj) throws NeudistException {
// SOAPStore.storeDirect(getServiceURL(),obj);
}
Index: Transfer.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/contracts/transfer/Transfer.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Transfer.java 23 Sep 2003 19:16:26 -0000 1.3
--- Transfer.java 24 Sep 2003 23:56:47 -0000 1.4
***************
*** 2,5 ****
--- 2,14 ----
* $Id$
* $Log$
+ * Revision 1.4 2003/09/24 23:56:47 pelle
+ * Refactoring nearly done. New model for creating signed objects.
+ * With view for supporting the xmlpull api shortly for performance reasons.
+ * Currently still uses dom4j but that has been refactored out that it
+ * should now be very quick to implement a xmlpull implementation.
+ *
+ * A side benefit of this is that the API has been further simplified. I still have some work
+ * todo with regards to cleaning up some of the outlying parts of the code.
+ *
* Revision 1.3 2003/09/23 19:16:26 pelle
* Changed NameSpace to Identity.
***************
*** 21,25 ****
* Revision 1.7 2003/02/14 21:10:32 pelle
* The email sender works. The LogSender and the SoapSender should work but havent been tested yet.
! * The NamedObject has a new log() method that logs it's contents at it's parent Identity's logger.
* The Identity object also has a new method send() which allows one to send a named object to the Identity's
* default receiver.
--- 30,34 ----
* Revision 1.7 2003/02/14 21:10:32 pelle
* The email sender works. The LogSender and the SoapSender should work but havent been tested yet.
! * The SignedNamedObject has a new log() method that logs it's contents at it's parent Identity's logger.
* The Identity object also has a new method send() which allows one to send a named object to the Identity's
* default receiver.
***************
*** 32,36 ****
*
* Revision 1.4 2002/12/17 21:40:56 pelle
! * First part of refactoring of NamedObject and SignedObject Interface/Class parings.
*
* Revision 1.3 2002/12/04 13:52:47 pelle
--- 41,45 ----
*
* Revision 1.4 2002/12/17 21:40:56 pelle
! * First part of refactoring of SignedNamedObject and SignedObject Interface/Class parings.
*
* Revision 1.3 2002/12/04 13:52:47 pelle
***************
*** 44,48 ****
import org.dom4j.Element;
import org.dom4j.Namespace;
! import org.neuclear.id.NamedObject;
import org.neuclear.id.NamedObjectFactory;
import org.neudist.crypto.CryptoTools;
--- 53,57 ----
import org.dom4j.Element;
import org.dom4j.Namespace;
! import org.neuclear.id.SignedNamedObject;
import org.neuclear.id.NamedObjectFactory;
import org.neudist.crypto.CryptoTools;
***************
*** 51,55 ****
import java.util.Date;
! public class Transfer extends NamedObject {
public Transfer(String userNameSpace, String recipient, String assetType, double amount) {//TODO Add validity fields
--- 60,64 ----
import java.util.Date;
! public class Transfer extends SignedNamedObject {
public Transfer(String userNameSpace, String recipient, String assetType, double amount) {//TODO Add validity fields
|