com.xmlserv.app.basket
Class BasketReceipt

java.lang.Object
  |
  +--com.xmlserv.app.basket.BasketReceipt

public class BasketReceipt
extends java.lang.Object

This class represents the contents of the final screen when the basket is sent. It lists the basket contents together with download links and sender/recipient information.


Constructor Summary
BasketReceipt(java.sql.Connection con, BasketContents basketContents)
          Create a new BasketReceipt.
BasketReceipt(java.sql.Connection con, BasketContents basketContents, java.lang.String subject, java.lang.String message)
          Create a new BasketReceipt including subject and message.
BasketReceipt(java.sql.Connection con, int id, java.lang.String basepath)
          Open an existing basketreceipt.
BasketReceipt(java.sql.Connection con, java.lang.String basketid, java.lang.String basepath)
          Open an existing BasketReceipt.
 
Method Summary
 int getSenderId(java.sql.Connection con)
           
 org.jdom.Element toElement(java.sql.Connection con)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasketReceipt

public BasketReceipt(java.sql.Connection con,
                     int id,
                     java.lang.String basepath)
              throws XMLServException
Open an existing basketreceipt.
Parameters:
con - A DB connection.
id - The BasketReceipt ID.
basepath - The basepath used to display file sizes.

BasketReceipt

public BasketReceipt(java.sql.Connection con,
                     java.lang.String basketid,
                     java.lang.String basepath)
              throws XMLServException
Open an existing BasketReceipt.
Parameters:
con - A DB connection.
id - The BasketReceipt ID.
basepath - The basepath used to display file sizes.

BasketReceipt

public BasketReceipt(java.sql.Connection con,
                     BasketContents basketContents)
              throws XMLServException
Create a new BasketReceipt.

BasketReceipt

public BasketReceipt(java.sql.Connection con,
                     BasketContents basketContents,
                     java.lang.String subject,
                     java.lang.String message)
              throws XMLServException
Create a new BasketReceipt including subject and message.
Method Detail

getSenderId

public int getSenderId(java.sql.Connection con)
                throws XMLServException

toElement

public org.jdom.Element toElement(java.sql.Connection con)
                           throws XMLServException