anon.infoservice
Class ServiceOperator

java.lang.Object
  extended by anon.infoservice.AbstractDatabaseEntry
      extended by anon.infoservice.ServiceOperator

public class ServiceOperator
extends AbstractDatabaseEntry

Holds the information about the operator of a service.


Field Summary
static java.lang.String XML_ELEMENT_COUNTRYCODE
           
static java.lang.String XML_ELEMENT_EMAIL
           
static java.lang.String XML_ELEMENT_EMAIL_SPAMSAFE
           
static java.lang.String XML_ELEMENT_NAME
           
static java.lang.String XML_ELEMENT_ORG_UNIT
           
static java.lang.String XML_ELEMENT_ORGANISATION
           
static java.lang.String XML_ELEMENT_URL
           
 
Fields inherited from class anon.infoservice.AbstractDatabaseEntry
XML_ATTR_LAST_UPDATE, XML_LAST_UPDATE
 
Constructor Summary
ServiceOperator(org.w3c.dom.Node a_node, anon.crypto.JAPCertificate a_certificate, long a_lastUpdate)
          Creates a new ServiceOperator an operator certificate or from an XML description (Operator node).
 
Method Summary
 boolean equals(java.lang.Object a_obj)
           
 anon.crypto.JAPCertificate getCertificate()
          Returns the operator certificate.
 java.lang.String getCountryCode()
           
 java.lang.String getEMail()
          Return the EMail address of the operator.
 java.lang.String getEMailSpamSafe()
           
 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.lang.String getOrganization()
          Returns the name of the operator or organization.
 java.lang.String getOrganizationUnit()
           
 java.lang.String getSKI()
           
 java.lang.String getUrl()
          Returns the URL of the operators home page.
 long getVersionNumber()
          Returns version number which is used to determine the more recent infoservice entry, if two entries are compared (higher version number -> more recent entry).
 org.w3c.dom.Node getXML()
          Returns the XML data.
 boolean hasTermsAndConditions()
           
 void setCountryCode(java.lang.String code)
           
 void setEMail(java.lang.String email)
           
 void setLastUpdate(long update)
           
 void setOrganization(java.lang.String organization)
           
 void setOrganizationUnit(java.lang.String orgUnit)
           
 void setUrl(java.lang.String url)
           
 org.w3c.dom.Element toXMLElement(org.w3c.dom.Document ownerDocument)
           
 org.w3c.dom.Element toXMLElement(org.w3c.dom.Document ownerDocument, boolean spamSafe)
           
 
Methods inherited from class anon.infoservice.AbstractDatabaseEntry
getCreationTime, getExpireTime, isNewerThan, isUserDefined, resetCreationTime
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XML_ELEMENT_NAME

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

XML_ELEMENT_ORGANISATION

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

XML_ELEMENT_COUNTRYCODE

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

XML_ELEMENT_URL

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

XML_ELEMENT_ORG_UNIT

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

XML_ELEMENT_EMAIL

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

XML_ELEMENT_EMAIL_SPAMSAFE

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

ServiceOperator

public ServiceOperator(org.w3c.dom.Node a_node,
                       anon.crypto.JAPCertificate a_certificate,
                       long a_lastUpdate)
Creates a new ServiceOperator an operator certificate or from an XML description (Operator node).

Parameters:
a_node - The operator node from an XML document.
a_certificate - The operator certificate
a_lastUpdate - Last update time.
Method Detail

getVersionNumber

public long getVersionNumber()
Returns version number which is used to determine the more recent infoservice entry, if two entries are compared (higher version number -> more recent entry).

Specified by:
getVersionNumber in class AbstractDatabaseEntry
Returns:
The version number for this entry.

getLastUpdate

public long getLastUpdate()
Returns the time in milliseconds when this db entry was created from the origin instance.

Specified by:
getLastUpdate in class AbstractDatabaseEntry
Returns:
the time in milliseconds when this db entry was created from the origin instance

getId

public java.lang.String getId()
Returns a unique ID for a database entry.

Specified by:
getId in class AbstractDatabaseEntry
Returns:
The ID of this database entry.

getEMail

public java.lang.String getEMail()
Return the EMail address of the operator.

Returns:
The EMail address of the operator.

getEMailSpamSafe

public java.lang.String getEMailSpamSafe()

getOrganization

public java.lang.String getOrganization()
Returns the name of the operator or organization.

Returns:
The name of the operator or organization.

getOrganizationUnit

public java.lang.String getOrganizationUnit()

getCertificate

public anon.crypto.JAPCertificate getCertificate()
Returns the operator certificate.

Returns:
The operator certificate.

getUrl

public java.lang.String getUrl()
Returns the URL of the operators home page.

Returns:
The URL of the operators home page.

getCountryCode

public java.lang.String getCountryCode()

getXML

public org.w3c.dom.Node getXML()
Returns the XML data.


setOrganization

public void setOrganization(java.lang.String organization)

setOrganizationUnit

public void setOrganizationUnit(java.lang.String orgUnit)

setUrl

public void setUrl(java.lang.String url)

setEMail

public void setEMail(java.lang.String email)

setCountryCode

public void setCountryCode(java.lang.String code)

setLastUpdate

public void setLastUpdate(long update)

toXMLElement

public org.w3c.dom.Element toXMLElement(org.w3c.dom.Document ownerDocument)

hasTermsAndConditions

public boolean hasTermsAndConditions()

getSKI

public java.lang.String getSKI()

toXMLElement

public org.w3c.dom.Element toXMLElement(org.w3c.dom.Document ownerDocument,
                                        boolean spamSafe)

equals

public boolean equals(java.lang.Object a_obj)
Overrides:
equals in class java.lang.Object