Class semper.payment.PaymentEntity
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.payment.PaymentEntity

java.lang.Object
   |
   +----semper.payment.PaymentEntity

public class PaymentEntity
extends Object
implements Streamable
Identifier for a payment system entity. Payment System Entities are those entities at the "end points" of a payment transactions. At the greatest resolution, they will be specific purses belonging to a specific user. But we need ways of representing lower levels of resolution. For example, a payer needs to identify only the address of the payee and not necessarily a specific purse of the payee. We use this class to identify a payment system entity at various levels of granularity: - identity of a user - identity of user and a type of payment system - identity of a user and a specific purse belonging to her Eventually, this can be a subclass of a SEMPER wide "Entity" class. This object should have enough information to identify a particular SEMPER user.
Version:
$Revision: 1.6 $ $Date: 1996/08/19 18:21:22 $
Author:
N. Asokan ([email protected])

Variable Index

 o PAYMENT_SYSTEM_NAME
Flag value that indicates that the name passed to the constructor is a payment system name.
 o PURSE_NAME
Flag value that indicates that the name passed to the constructor is a purse name.

Constructor Index

 o PaymentEntity()
 o PaymentEntity(String, ComPointAddress)
Construct a PaymentEntity object with username and ComPointAddress as parameters
 o PaymentEntity(String, String, int)
Construct a PaymentEntity object with username and pursename/payment-system-name as parameters.

Method Index

 o getComPointAddress()
Retrieve the ComPointAddress (can be null -- so check for it)
 o getUserName()
Retrieve the user name
 o myStreamSize()
Implementing the Streamable interface
 o readObject(StreamInputInterface)
Implementing the Streamable interface
 o setComPointAddress(ComPointAddress)
Set the ComPointAddress
 o setUserName(String)
Set the name of the entity.
 o writeObject(StreamOutputInterface)
Implementing the Streamable interface

Variables

 o PURSE_NAME
  public final static int PURSE_NAME
Flag value that indicates that the name passed to the constructor is a purse name.
 o PAYMENT_SYSTEM_NAME
  public final static int PAYMENT_SYSTEM_NAME
Flag value that indicates that the name passed to the constructor is a payment system name.

Constructors

 o PaymentEntity
  public PaymentEntity(String username,
                       String name,
                       int flag) throws PaymentServiceException
Construct a PaymentEntity object with username and pursename/payment-system-name as parameters. When someone creates PaymentEntity object with this constructor, there can be two situations:
  • they already know the purse (in which case the payment name is redundant
  • they know the payment system name but not the purse name This is why these two cases are merged together in a single constructor. (@@ This form of constructor o be deprecated
    Parameters:
    username - name of user
    name - distinguished name of purse or payment system
    name_type - flag indicating if "name" refers to a purse payment system
    Throws: PaymentServiceException
    if an invalid is given
  •  o PaymentEntity
      public PaymentEntity(String username,
                           ComPointAddress com_point_address)
    
    Construct a PaymentEntity object with username and ComPointAddress as parameters
    Parameters:
    username - name of user
    com_point_address - ComPointAddress of the remote entity (can be payment manager or payment instrument)
    See Also:
    ComPointAddress
     o PaymentEntity
      public PaymentEntity()
    

    Methods

     o setUserName
      public synchronized void setUserName(String user)
    
    Set the name of the entity.
    Parameters:
    pursename - name of the entity
     o getUserName
      public String getUserName()
    
    Retrieve the user name
    Returns:
    user name
     o getComPointAddress
      public ComPointAddress getComPointAddress()
    
    Retrieve the ComPointAddress (can be null -- so check for it)
    Returns:
    ComPointAddress
     o setComPointAddress
      public void setComPointAddress(ComPointAddress new_address)
    
    Set the ComPointAddress
    Parameters:
    new_address - new ComPointAddress
    Returns:
    nothing
     o writeObject
      public void writeObject(StreamOutputInterface s) throws StreamIOException
    
    Implementing the Streamable interface
    Throws: StreamIOException
    as usual
     o readObject
      public void readObject(StreamInputInterface s) throws StreamIOException
    
    Implementing the Streamable interface
    Throws: StreamIOException
    as usual
     o myStreamSize
      public int myStreamSize() throws StreamIOException
    
    Implementing the Streamable interface

    All Packages  Class Hierarchy  This Package  Previous  Next  Index