infoservice.mailsystem.central
Class BannedMailAddressDBEntry

java.lang.Object
  extended by anon.infoservice.AbstractDatabaseEntry
      extended by infoservice.mailsystem.central.BannedMailAddressDBEntry

public class BannedMailAddressDBEntry
extends AbstractDatabaseEntry

This class is the implementation of an entry in the list of banned mailaddresses.


Field Summary
private  javax.mail.Address m_mailAddress
          Stores the banned mailaddress.
 
Fields inherited from class anon.infoservice.AbstractDatabaseEntry
XML_LAST_UPDATE
 
Constructor Summary
BannedMailAddressDBEntry(javax.mail.Address a_mailAddress)
          Creates a new banned mailaddress entry.
 
Method Summary
 java.lang.String getId()
          Returns the ID of this banned mailaddress entry.
 long getLastUpdate()
          Returns the time in milliseconds when this db entry was created from the origin instance.
 long getVersionNumber()
          Returns a version number which is used to determine the more recent entry, if two entries are compared (higher version number -> more recent entry).
 
Methods inherited from class anon.infoservice.AbstractDatabaseEntry
getCreationTime, getExpireTime, isNewerThan, isUserDefined, resetCreationTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_mailAddress

private javax.mail.Address m_mailAddress
Stores the banned mailaddress.

Constructor Detail

BannedMailAddressDBEntry

public BannedMailAddressDBEntry(javax.mail.Address a_mailAddress)
Creates a new banned mailaddress entry.

Parameters:
a_mailAddress - The mailaddress to ban.
Method Detail

getId

public java.lang.String getId()
Returns the ID of this banned mailaddress entry. It's just the string representation of the banned mailaddress.

Specified by:
getId in class AbstractDatabaseEntry
Returns:
The ID of this banned address.

getLastUpdate

public long getLastUpdate()
Description copied from class: AbstractDatabaseEntry
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

getVersionNumber

public long getVersionNumber()
Returns a version number which is used to determine the more recent 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, it's just the expire time.