[Webfunds-commits] java/webfunds/client/sox SOXWallet.java

Jeroen C. van Gelderen gelderen@cypherpunks.ai
Mon, 26 Mar 2001 19:56:58 -0400 (AST)


gelderen    01/03/26 19:56:58

  Modified:    webfunds/client/sox SOXWallet.java
  Log:
  Change createAccount(String name) back to public access.

Revision  Changes    Path
1.149     +12 -46    java/webfunds/client/sox/SOXWallet.java

Index: SOXWallet.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/client/sox/SOXWallet.java,v
retrieving revision 1.148
retrieving revision 1.149
diff -u -r1.148 -r1.149
--- SOXWallet.java	2001/03/24 16:25:41	1.148
+++ SOXWallet.java	2001/03/26 23:56:57	1.149
@@ -1,4 +1,4 @@
-/* $Id: SOXWallet.java,v 1.148 2001/03/24 16:25:41 iang Exp $
+/* $Id: SOXWallet.java,v 1.149 2001/03/26 23:56:57 gelderen Exp $
  *
  * Copyright (c) Systemics Inc. 1995-2000 on behalf of
  * The WebFunds Development Team.  All Rights Reserved.
@@ -80,7 +80,7 @@
  *
  *  Check the above search strings for separation so far.
  *
- * @version $Revision: 1.148 $
+ * @version $Revision: 1.149 $
  */
 public class SOXWallet
     extends Debug
@@ -435,7 +435,7 @@
      * Call this one if you know the account is there,
      * and you don't want to handle the exception.
      */
-    protected Account getAccountOrDie(AccountId id)
+    public Account getAccountOrDie(AccountId id)
     {
         Account acct = null;
         try {
@@ -717,6 +717,13 @@
             return true;
     }
 
+
+    public String pumphouseGetContractName(ItemId contractId) {
+        Contract contract = this.contracts.getContract(contractId);
+        return contract.getName();
+    }
+
+
     /**
      *  Make a payment.
      *  This should be used by all full service clients, it does:
@@ -2203,12 +2210,12 @@
     /**
      * Create a new account in the Wallet and return it's AccountId.
      *
-     *  Who uses this?  Internal?
+     *  Who uses this?: pumphouse uses this for now -- JCvG
      *
      * This method either returns a valid AccountId or throws an exception,
      * it never returns null. Argument 'name' may be null.
      */
-    protected AccountId createAccount(String name) throws WalletException {
+    public AccountId createAccount(String name) throws WalletException {
 
         if( this.isClosed() )
             throw new WalletException(WalletException.CLOSED);
@@ -2834,47 +2841,6 @@
         logmsg("too many: mail appears to be spinning");
         return ;
     }
-
-
-    /**
-     *  Do an update - one single cycle of request with sigs.
-     *  Bummer.  There is a problem here.  Mail is requested
-     *  at the Account/Issuer level.  Which means that some
-     *  of the mail here is in fact for other subs.  So, the
-     *  the sub is simply passed here as an active sub from
-     *  which we can do the request to the Issuer, the item
-     *  of the sub forms no part of the data.
-    protected MailItem[] tryUpdate(SubAccount sub, MailId[] confirms)
-    {
-        MailItem[] mails;
-
-        //
-        //  Do the sub.update, which sends all cached hashes,
-        //  and returns more receipts.
-        //
-        try
-        {
-            mails = sub.update(confirms);
-        } 
-        catch (SOXLaterException e)
-        {
-            // Yeah, this real wrong.  Need to handle errors silently.
-            // hmm, caller might not want a popup.  How to handle?
-
-            error(try_again_later);
-            return null ;
-        } catch (SOXSubAccountException e) {
-            error("update failed (SubAccount broken?) :\n    " + e);
-            return null ;
-        } catch (SOXException e) {
-            e.printStackTrace();
-            error("update failed: " + e);
-            return null ;
-        }
-
-        return mails ;
-    }
-     */
 
 
     /**