|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object anon.infoservice.AbstractDatabaseEntry anon.infoservice.AbstractDistributableDatabaseEntry anon.infoservice.AbstractDistributableCertifiedDatabaseEntry anon.pay.PaymentInstanceDBEntry
public class PaymentInstanceDBEntry
Holds the information of a payment instance for storing in the InfoService.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class anon.infoservice.AbstractDistributableDatabaseEntry |
---|
AbstractDistributableDatabaseEntry.SerialDBEntry, AbstractDistributableDatabaseEntry.Serials |
Field Summary | |
---|---|
private MultiCertPath |
m_certPath
|
private long |
m_creationTimeStamp
Stores the time when this payment instance entry was created by the origin payment instance. |
private java.util.Vector |
m_listenerInterfaces
|
private java.lang.String |
m_name
|
private long |
m_serialNumber
|
private XMLSignature |
m_signature
|
private java.lang.String |
m_strOrganisation
|
private java.lang.String |
m_strPaymentInstanceId
This is the ID of this payment instance. |
private org.w3c.dom.Element |
m_xmlDescription
Stores the XML representation of this PaymentInstanceDBEntry. |
private static java.lang.String |
XML_ELEM_CERT
|
private static java.lang.String |
XML_ELEM_NAME
|
private static java.lang.String |
XML_ELEM_NET
|
static java.lang.String |
XML_ELEMENT_CONTAINER_NAME
|
static java.lang.String |
XML_ELEMENT_NAME
|
Fields inherited from class anon.infoservice.AbstractDistributableDatabaseEntry |
---|
XML_ATTR_LAST_UPDATE, XML_ATTR_SERIAL, XML_ATTR_VALID, XML_ATTR_VERIFIED |
Fields inherited from class anon.infoservice.AbstractDatabaseEntry |
---|
XML_LAST_UPDATE |
Fields inherited from interface anon.infoservice.IDistributable |
---|
FIELD_HTTP_REQUEST_STRING, FIELD_HTTP_SERIALS_REQUEST_STRING |
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 | |
---|---|
PaymentInstanceDBEntry(org.w3c.dom.Element elemRoot)
|
|
PaymentInstanceDBEntry(org.w3c.dom.Element elemRoot,
long a_expireTime)
Creates a PaymentInstanceDBEntry which represents a payment instance. |
|
PaymentInstanceDBEntry(java.lang.String a_id,
java.lang.String a_name,
JAPCertificate a_cert,
java.util.Enumeration a_listeners,
java.lang.String software_version,
long creationTime,
long a_serialNumber)
|
Method Summary | |
---|---|
void |
deletePersistence()
|
boolean |
equals(java.lang.Object a_paymentInstance)
|
MultiCertPath |
getCertPath()
|
java.lang.String |
getId()
Returns a unique ID for a database entry. |
long |
getLastUpdate()
Returns the time in milliseconds when this db entry was created from the origin instance. |
java.util.Enumeration |
getListenerInterfaces()
Returns the listener interfaces of this PI in a random order. |
java.lang.String |
getName()
|
java.lang.String |
getOrganisation()
|
java.lang.String |
getPostFile()
This returns the filename (InfoService command), where this PaymentInstanceDBEntry is posted at other InfoServices. |
XMLSignature |
getSignature()
|
long |
getVersionNumber()
Returns the time when this payment instance entry was created by the origin payment instance. |
org.w3c.dom.Element |
getXmlStructure()
Returns the XML structure for this db entry. |
int |
hashCode()
|
boolean |
isPersistanceDeletionAllowed()
|
boolean |
isValid()
Returns if the object is valid at this time |
boolean |
isVerified()
Returns if this entry has been verified with a certificate chain. |
java.lang.String |
toString()
|
Methods inherited from class anon.infoservice.AbstractDistributableCertifiedDatabaseEntry |
---|
checkId |
Methods inherited from class anon.infoservice.AbstractDistributableDatabaseEntry |
---|
getHttpRequestString, getHttpSerialsRequestString, getPostData, getPostEncoding, toXmlElement |
Methods inherited from class anon.infoservice.AbstractDatabaseEntry |
---|
getCreationTime, getExpireTime, isNewerThan, isUserDefined, resetCreationTime |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String XML_ELEMENT_NAME
public static final java.lang.String XML_ELEMENT_CONTAINER_NAME
private static final java.lang.String XML_ELEM_NAME
private static final java.lang.String XML_ELEM_CERT
private static final java.lang.String XML_ELEM_NET
private java.lang.String m_strPaymentInstanceId
private org.w3c.dom.Element m_xmlDescription
private XMLSignature m_signature
private MultiCertPath m_certPath
private long m_creationTimeStamp
private long m_serialNumber
private java.util.Vector m_listenerInterfaces
private java.lang.String m_name
private java.lang.String m_strOrganisation
Constructor Detail |
---|
public PaymentInstanceDBEntry(org.w3c.dom.Element elemRoot) throws XMLParseException
XMLParseException
public PaymentInstanceDBEntry(org.w3c.dom.Element elemRoot, long a_expireTime) throws XMLParseException
XMLParseException
public PaymentInstanceDBEntry(java.lang.String a_id, java.lang.String a_name, JAPCertificate a_cert, java.util.Enumeration a_listeners, java.lang.String software_version, long creationTime, long a_serialNumber)
Method Detail |
---|
public boolean isPersistanceDeletionAllowed()
isPersistanceDeletionAllowed
in class AbstractDatabaseEntry
public void deletePersistence()
deletePersistence
in class AbstractDatabaseEntry
public boolean isVerified()
AbstractDistributableCertifiedDatabaseEntry
isVerified
in interface IVerifyable
isVerified
in interface ICertifiedDatabaseEntry
isVerified
in class AbstractDistributableCertifiedDatabaseEntry
public boolean isValid()
IVerifyable
isValid
in interface IVerifyable
isValid
in interface ICertifiedDatabaseEntry
public XMLSignature getSignature()
getSignature
in interface ICertifiedDatabaseEntry
getSignature
in class AbstractDistributableCertifiedDatabaseEntry
public MultiCertPath getCertPath()
getCertPath
in interface IVerifyable
getCertPath
in interface ICertifiedDatabaseEntry
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getOrganisation()
public java.lang.String getId()
AbstractDatabaseEntry
getId
in interface IDistributable
getId
in class AbstractDatabaseEntry
public boolean equals(java.lang.Object a_paymentInstance)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getName()
public java.util.Enumeration getListenerInterfaces()
public long getVersionNumber()
getVersionNumber
in class AbstractDatabaseEntry
public long getLastUpdate()
AbstractDatabaseEntry
getLastUpdate
in class AbstractDatabaseEntry
public java.lang.String getPostFile()
getPostFile
in interface IDistributable
public org.w3c.dom.Element getXmlStructure()
AbstractDistributableDatabaseEntry
getXmlStructure
in class AbstractDistributableDatabaseEntry
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |