anon.pay.xml
Class XMLTransactionOverview

java.lang.Object
  extended by anon.pay.xml.XMLTransactionOverview
All Implemented Interfaces:
IXMLEncodable

public class XMLTransactionOverview
extends java.lang.Object
implements IXMLEncodable

This class is used by JAP to ask the Payment Instance about used transaction numbers. JAP has to send the structure without the attributed "used" to the Payment Instance. The PI will then fill in the attributes according to its database entries. 232343455 435675747

Author:
Tobias Bayer, Elmar Schraml

Field Summary
static java.lang.String KEY_ACCOUNTNUMBER
           
static java.lang.String KEY_AMOUNT
           
static java.lang.String KEY_CREATIONDATE
           
static java.lang.String KEY_DATE
           
static java.lang.String KEY_PAYMENTMETHOD
           
static java.lang.String KEY_TAN
           
static java.lang.String KEY_USED
           
static java.lang.String KEY_VOLUMEPLAN
           
private  java.lang.String m_language
           
private  java.util.Vector m_transactions
           
static java.lang.Object XML_ELEMENT_NAME
           
 
Fields inherited from interface anon.util.IXMLEncodable
FIELD_XML_ELEMENT_CONTAINER_NAME, FIELD_XML_ELEMENT_NAME, XML_ATTR_ID, XML_ATTR_LANGUAGE, XML_ATTR_VERSION
 
Constructor Summary
XMLTransactionOverview(byte[] xml)
           
XMLTransactionOverview(char[] xml)
           
XMLTransactionOverview(org.w3c.dom.Document doc)
           
XMLTransactionOverview(org.w3c.dom.Element element)
           
XMLTransactionOverview(java.lang.String a_language)
           
 
Method Summary
 void addTan(long a_tan)
          Adds a transfer number and sets its state to "not used".
 java.util.Hashtable getDataForTransaction(long a_transactionNumber)
           
 java.lang.String getLanguage()
           
 java.util.Vector getTans()
          Gets an vector of all transfer numbers
 boolean isUsed(long a_tan)
          Returns if a specific transfer number is marked as "used".
 void setTransactionData(long a_tan, long a_creationDate, boolean a_used, long a_usedDate, long amount, long accountnumber, java.lang.String volumePlan, java.lang.String paymentMethod)
          Sets a specific tan to used or not used, and add all the data associated with the TAN
private  void setValues(org.w3c.dom.Element elemRoot)
           
 int size()
           
 org.w3c.dom.Element toXmlElement(org.w3c.dom.Document a_doc)
          Return an element that can be appended to the document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XML_ELEMENT_NAME

public static final java.lang.Object XML_ELEMENT_NAME

m_transactions

private java.util.Vector m_transactions

m_language

private java.lang.String m_language

KEY_ACCOUNTNUMBER

public static final java.lang.String KEY_ACCOUNTNUMBER
See Also:
Constant Field Values

KEY_TAN

public static final java.lang.String KEY_TAN
See Also:
Constant Field Values

KEY_DATE

public static final java.lang.String KEY_DATE
See Also:
Constant Field Values

KEY_CREATIONDATE

public static final java.lang.String KEY_CREATIONDATE
See Also:
Constant Field Values

KEY_AMOUNT

public static final java.lang.String KEY_AMOUNT
See Also:
Constant Field Values

KEY_VOLUMEPLAN

public static final java.lang.String KEY_VOLUMEPLAN
See Also:
Constant Field Values

KEY_PAYMENTMETHOD

public static final java.lang.String KEY_PAYMENTMETHOD
See Also:
Constant Field Values

KEY_USED

public static final java.lang.String KEY_USED
See Also:
Constant Field Values
Constructor Detail

XMLTransactionOverview

public XMLTransactionOverview(java.lang.String a_language)

XMLTransactionOverview

public XMLTransactionOverview(char[] xml)
                       throws java.lang.Exception
Throws:
java.lang.Exception

XMLTransactionOverview

public XMLTransactionOverview(byte[] xml)
                       throws java.lang.Exception
Throws:
java.lang.Exception

XMLTransactionOverview

public XMLTransactionOverview(org.w3c.dom.Document doc)
                       throws java.lang.Exception
Throws:
java.lang.Exception

XMLTransactionOverview

public XMLTransactionOverview(org.w3c.dom.Element element)
                       throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

size

public int size()

setValues

private void setValues(org.w3c.dom.Element elemRoot)
                throws java.lang.Exception
Throws:
java.lang.Exception

toXmlElement

public org.w3c.dom.Element toXmlElement(org.w3c.dom.Document a_doc)
Description copied from interface: IXMLEncodable
Return an element that can be appended to the document. This Method must not change the document in any way!

Specified by:
toXmlElement in interface IXMLEncodable
Parameters:
a_doc - a document
Returns:
the interface as xml element

getTans

public java.util.Vector getTans()
Gets an vector of all transfer numbers

Returns:
Vector

getLanguage

public java.lang.String getLanguage()

isUsed

public boolean isUsed(long a_tan)
Returns if a specific transfer number is marked as "used".

Parameters:
a_tan - long
Returns:
boolean

getDataForTransaction

public java.util.Hashtable getDataForTransaction(long a_transactionNumber)
Parameters:
a_transactionNumber - long
Returns:
Hashtable containing all data associated with that transaction, null if no matching tan was found

setTransactionData

public void setTransactionData(long a_tan,
                               long a_creationDate,
                               boolean a_used,
                               long a_usedDate,
                               long amount,
                               long accountnumber,
                               java.lang.String volumePlan,
                               java.lang.String paymentMethod)
Sets a specific tan to used or not used, and add all the data associated with the TAN

Parameters:
a_tan - long
a_used - boolean
a_usedDate - long

addTan

public void addTan(long a_tan)
Adds a transfer number and sets its state to "not used".

Parameters:
a_tan - long