|
|
@ -13,6 +13,9 @@ public class PaperDto {
|
|
|
|
private final String comment;
|
|
|
|
private final String comment;
|
|
|
|
private final Boolean locked;
|
|
|
|
private final Boolean locked;
|
|
|
|
private final String tmpFileName;
|
|
|
|
private final String tmpFileName;
|
|
|
|
|
|
|
|
private final Integer fileId;
|
|
|
|
|
|
|
|
private final String fileName;
|
|
|
|
|
|
|
|
private final Date fileCreateDate;
|
|
|
|
|
|
|
|
|
|
|
|
@JsonCreator
|
|
|
|
@JsonCreator
|
|
|
|
public PaperDto(@JsonProperty("title") String title,
|
|
|
|
public PaperDto(@JsonProperty("title") String title,
|
|
|
@ -29,6 +32,9 @@ public class PaperDto {
|
|
|
|
this.comment = comment;
|
|
|
|
this.comment = comment;
|
|
|
|
this.locked = locked;
|
|
|
|
this.locked = locked;
|
|
|
|
this.tmpFileName = tmpFileName;
|
|
|
|
this.tmpFileName = tmpFileName;
|
|
|
|
|
|
|
|
this.fileId = null;
|
|
|
|
|
|
|
|
this.fileName = null;
|
|
|
|
|
|
|
|
this.fileCreateDate = null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public PaperDto(Paper paper) {
|
|
|
|
public PaperDto(Paper paper) {
|
|
|
@ -39,6 +45,9 @@ public class PaperDto {
|
|
|
|
this.comment = paper.getComment();
|
|
|
|
this.comment = paper.getComment();
|
|
|
|
this.locked = paper.getLocked();
|
|
|
|
this.locked = paper.getLocked();
|
|
|
|
this.tmpFileName = null;
|
|
|
|
this.tmpFileName = null;
|
|
|
|
|
|
|
|
this.fileId = paper.getFile() == null ? null : paper.getFile().getId();
|
|
|
|
|
|
|
|
this.fileName = paper.getFile() == null ? null : paper.getFile().getName();
|
|
|
|
|
|
|
|
this.fileCreateDate = paper.getFile() == null ? null : paper.getFile().getCreateDate();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public String getTitle() {
|
|
|
|
public String getTitle() {
|
|
|
@ -68,4 +77,16 @@ public class PaperDto {
|
|
|
|
public String getTmpFileName() {
|
|
|
|
public String getTmpFileName() {
|
|
|
|
return tmpFileName;
|
|
|
|
return tmpFileName;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Integer getFileId() {
|
|
|
|
|
|
|
|
return fileId;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public String getFileName() {
|
|
|
|
|
|
|
|
return fileName;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Date getFileCreateDate() {
|
|
|
|
|
|
|
|
return fileCreateDate;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|