InputCopyright.java 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. package com.goafanti.copyright.bo;
  2. import java.util.Date;
  3. import javax.validation.constraints.Max;
  4. import javax.validation.constraints.Min;
  5. import javax.validation.constraints.Past;
  6. import javax.validation.constraints.Size;
  7. import com.goafanti.common.constant.ErrorConstants;
  8. public class InputCopyright {
  9. @Size(min = 0, max = 36, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  10. private String uid;
  11. @Past(message = "{" + ErrorConstants.PARAM_ERROR + "}")
  12. private Date acceptTime;
  13. @Size(min = 0, max = 36, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  14. private String principal;
  15. @Max(value = 3, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  16. @Min(value = 1, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  17. private Integer contact;
  18. @Size(min = 0, max = 255, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  19. private String copyrightInfo;
  20. @Size(min = 0, max = 60, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  21. private String copyrightName;
  22. @Max(value = 9, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  23. @Min(value = 1, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  24. private Integer status;
  25. @Size(min = 0, max = 128, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  26. private String workIssue;
  27. @Size(min = 0, max = 128, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  28. private String comment;
  29. @Size(min = 0, max = 60, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  30. private String outsource;
  31. @Max(value = 30, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  32. @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  33. private Integer inUrgent;
  34. @Past(message = "{" + ErrorConstants.PARAM_ERROR + "}")
  35. private Date authorizedDate;
  36. @Past(message = "{" + ErrorConstants.PARAM_ERROR + "}")
  37. private Date recordTime;
  38. public Date getAcceptTime() {
  39. return acceptTime;
  40. }
  41. public void setAcceptTime(Date acceptTime) {
  42. this.acceptTime = acceptTime;
  43. }
  44. public String getPrincipal() {
  45. return principal;
  46. }
  47. public void setPrincipal(String principal) {
  48. this.principal = principal;
  49. }
  50. public Integer getContact() {
  51. return contact;
  52. }
  53. public void setContact(Integer contact) {
  54. this.contact = contact;
  55. }
  56. public String getCopyrightInfo() {
  57. return copyrightInfo;
  58. }
  59. public void setCopyrightInfo(String copyrightInfo) {
  60. this.copyrightInfo = copyrightInfo;
  61. }
  62. public String getCopyrightName() {
  63. return copyrightName;
  64. }
  65. public void setCopyrightName(String copyrightName) {
  66. this.copyrightName = copyrightName;
  67. }
  68. public Integer getStatus() {
  69. return status;
  70. }
  71. public void setStatus(Integer status) {
  72. this.status = status;
  73. }
  74. public String getWorkIssue() {
  75. return workIssue;
  76. }
  77. public void setWorkIssue(String workIssue) {
  78. this.workIssue = workIssue;
  79. }
  80. public String getComment() {
  81. return comment;
  82. }
  83. public void setComment(String comment) {
  84. this.comment = comment;
  85. }
  86. public String getOutsource() {
  87. return outsource;
  88. }
  89. public void setOutsource(String outsource) {
  90. this.outsource = outsource;
  91. }
  92. public Integer getInUrgent() {
  93. return inUrgent;
  94. }
  95. public void setInUrgent(Integer inUrgent) {
  96. this.inUrgent = inUrgent;
  97. }
  98. public Date getAuthorizedDate() {
  99. return authorizedDate;
  100. }
  101. public void setAuthorizedDate(Date authorizedDate) {
  102. this.authorizedDate = authorizedDate;
  103. }
  104. public String getUid() {
  105. return uid;
  106. }
  107. public void setUid(String uid) {
  108. this.uid = uid;
  109. }
  110. public Date getRecordTime() {
  111. return recordTime;
  112. }
  113. public void setRecordTime(Date recordTime) {
  114. this.recordTime = recordTime;
  115. }
  116. }