org.nhindirect.config.model
Class Domain

java.lang.Object
  extended by org.nhindirect.config.model.Domain

public class Domain
extends Object

A Direct email domain.

Since:
1.0
Author:
Greg Meyer

Constructor Summary
Domain()
          Empty constructor
 
Method Summary
 Collection<Address> getAddresses()
          Gets all addresses that are configured for a domain.
 Calendar getCreateTime()
          Sets the date/time the domain was created in the system.
 String getDomainName()
          Gets the name of the domain.
 long getId()
          Gets the internal system id of the domain.
 Address getPostmasterAddress()
          Gets the email address of the domain's postmaster.
 EntityStatus getStatus()
          Gets the status of the domain.
 Calendar getUpdateTime()
          Gets the date/time that the domain was last updated.
 void setAddresses(Collection<Address> addresses)
          Sets all addresses that are configured for a domain.
 void setCreateTime(Calendar createTime)
          Sets the date/time the domain was created in the system.
 void setDomainName(String domainName)
          Sets the name of the domain.
 void setId(long id)
          Sets the internal system id of the domain.
 void setPostmasterAddress(Address postmasterAddress)
          Sets the email address of the domain's postmaster.
 void setStatus(EntityStatus status)
          Sets the status of the domain.
 void setUpdateTime(Calendar updateTime)
          Sets the date/time that the domain was last updated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Domain

public Domain()
Empty constructor

Method Detail

getDomainName

public String getDomainName()
Gets the name of the domain.

Returns:
The name of the domain.

setDomainName

public void setDomainName(String domainName)
Sets the name of the domain.

Parameters:
domainName - The name of the domain.

getCreateTime

public Calendar getCreateTime()
Sets the date/time the domain was created in the system.

Returns:
The date/time the domain was created in the system.

setCreateTime

public void setCreateTime(Calendar createTime)
Sets the date/time the domain was created in the system.

Parameters:
createTime - The date/time the domain was created in the system.

getUpdateTime

public Calendar getUpdateTime()
Gets the date/time that the domain was last updated.

Returns:
The date/time that the domain was last updated.

setUpdateTime

public void setUpdateTime(Calendar updateTime)
Sets the date/time that the domain was last updated.

Parameters:
updateTime - The date/time that the domain was last updated.

getPostmasterAddress

public Address getPostmasterAddress()
Gets the email address of the domain's postmaster.

Returns:
The email address of the domain's postmaster.

setPostmasterAddress

public void setPostmasterAddress(Address postmasterAddress)
Sets the email address of the domain's postmaster.

Parameters:
postmasterAddress - The email address of the domain's postmaster.

getAddresses

public Collection<Address> getAddresses()
Gets all addresses that are configured for a domain.

Returns:
All addresses that are configured for a domain.

setAddresses

public void setAddresses(Collection<Address> addresses)
Sets all addresses that are configured for a domain.

Parameters:
addresses - All addresses that are configured for a domain.

getId

public long getId()
Gets the internal system id of the domain.

Returns:
The internal system id of the domain.

setId

public void setId(long id)
Sets the internal system id of the domain.

Parameters:
id - The internal system id of the domain.

getStatus

public EntityStatus getStatus()
Gets the status of the domain.

Returns:
The status of the domain.

setStatus

public void setStatus(EntityStatus status)
Sets the status of the domain.

Parameters:
status - The status of the domain.


Copyright © 2014. All Rights Reserved.