Guest User

Untitled

a guest
Nov 23rd, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. package ph.dot.engine.model
  2.  
  3. import com.google.common.base.Objects
  4. import org.joda.time.DateTime
  5.  
  6. class Domain implements Serializable {
  7. private Contact registrant
  8. Contact admin1
  9. Contact admin2
  10. Contact tech1
  11. Contact tech2
  12. Contact billing1
  13. Contact billing2
  14.  
  15. DateTime startDate
  16. DateTime expirationDate
  17. DateTime lastTransferDate
  18. DateTime lastModifiedDate
  19.  
  20. Registrar currentRegistrar
  21. Registrar createdBy
  22. Registrar lastModifiedBy
  23.  
  24. String transferKey
  25.  
  26. DomainStatus status
  27.  
  28. // Domain properties from DomainCommand
  29. String name
  30. boolean autoRenew
  31. boolean hasChildNameServer
  32.  
  33. @Override
  34. String toString() {
  35. return Objects.toStringHelper(this).add("name", name).add("autoRenew", autoRenew).add("hasChildNameServer", hasChildNameServer).toString()
  36. }
  37.  
  38. Domain() {
  39. status = DomainStatus.ACTIVE
  40. }
  41. }
Add Comment
Please, Sign In to add comment