package com.goafanti.copyright.bo; import java.util.Date; import javax.validation.constraints.Max; import javax.validation.constraints.Min; import javax.validation.constraints.Past; import javax.validation.constraints.Size; import com.goafanti.common.constant.ErrorConstants; public class InputCopyright { @Size(min = 0, max = 36, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}") private String uid; @Past(message = "{" + ErrorConstants.PARAM_ERROR + "}") private Date acceptTime; @Size(min = 0, max = 36, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}") private String principal; @Max(value = 3, message = "{" + ErrorConstants.PARAM_ERROR + "}") @Min(value = 1, message = "{" + ErrorConstants.PARAM_ERROR + "}") private Integer contact; @Size(min = 0, max = 255, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}") private String copyrightInfo; @Size(min = 0, max = 60, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}") private String copyrightName; @Max(value = 9, message = "{" + ErrorConstants.PARAM_ERROR + "}") @Min(value = 1, message = "{" + ErrorConstants.PARAM_ERROR + "}") private Integer status; @Size(min = 0, max = 128, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}") private String workIssue; @Size(min = 0, max = 128, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}") private String comment; @Size(min = 0, max = 60, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}") private String outsource; @Max(value = 30, message = "{" + ErrorConstants.PARAM_ERROR + "}") @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}") private Integer inUrgent; @Past(message = "{" + ErrorConstants.PARAM_ERROR + "}") private Date authorizedDate; @Past(message = "{" + ErrorConstants.PARAM_ERROR + "}") private Date recordTime; public Date getAcceptTime() { return acceptTime; } public void setAcceptTime(Date acceptTime) { this.acceptTime = acceptTime; } public String getPrincipal() { return principal; } public void setPrincipal(String principal) { this.principal = principal; } public Integer getContact() { return contact; } public void setContact(Integer contact) { this.contact = contact; } public String getCopyrightInfo() { return copyrightInfo; } public void setCopyrightInfo(String copyrightInfo) { this.copyrightInfo = copyrightInfo; } public String getCopyrightName() { return copyrightName; } public void setCopyrightName(String copyrightName) { this.copyrightName = copyrightName; } public Integer getStatus() { return status; } public void setStatus(Integer status) { this.status = status; } public String getWorkIssue() { return workIssue; } public void setWorkIssue(String workIssue) { this.workIssue = workIssue; } public String getComment() { return comment; } public void setComment(String comment) { this.comment = comment; } public String getOutsource() { return outsource; } public void setOutsource(String outsource) { this.outsource = outsource; } public Integer getInUrgent() { return inUrgent; } public void setInUrgent(Integer inUrgent) { this.inUrgent = inUrgent; } public Date getAuthorizedDate() { return authorizedDate; } public void setAuthorizedDate(Date authorizedDate) { this.authorizedDate = authorizedDate; } public String getUid() { return uid; } public void setUid(String uid) { this.uid = uid; } public Date getRecordTime() { return recordTime; } public void setRecordTime(Date recordTime) { this.recordTime = recordTime; } }