|
|
@ -15,6 +15,7 @@ public class ProjectDto {
|
|
|
|
@NotEmpty
|
|
|
|
@NotEmpty
|
|
|
|
private String title;
|
|
|
|
private String title;
|
|
|
|
private Project.ProjectStatus status;
|
|
|
|
private Project.ProjectStatus status;
|
|
|
|
|
|
|
|
private String statusName;
|
|
|
|
private String description;
|
|
|
|
private String description;
|
|
|
|
private List<Deadline> deadlines = new ArrayList<>();
|
|
|
|
private List<Deadline> deadlines = new ArrayList<>();
|
|
|
|
private GrantDto grant;
|
|
|
|
private GrantDto grant;
|
|
|
@ -39,6 +40,7 @@ public class ProjectDto {
|
|
|
|
this.id = id;
|
|
|
|
this.id = id;
|
|
|
|
this.title = title;
|
|
|
|
this.title = title;
|
|
|
|
this.status = status;
|
|
|
|
this.status = status;
|
|
|
|
|
|
|
|
this.statusName = status.getStatusName();
|
|
|
|
this.description = description;
|
|
|
|
this.description = description;
|
|
|
|
this.grant = grant;
|
|
|
|
this.grant = grant;
|
|
|
|
this.repository = repository;
|
|
|
|
this.repository = repository;
|
|
|
@ -51,6 +53,7 @@ public class ProjectDto {
|
|
|
|
this.id = project.getId();
|
|
|
|
this.id = project.getId();
|
|
|
|
this.title = project.getTitle();
|
|
|
|
this.title = project.getTitle();
|
|
|
|
this.status = project.getStatus();
|
|
|
|
this.status = project.getStatus();
|
|
|
|
|
|
|
|
this.statusName = project.getStatus().getStatusName();
|
|
|
|
this.description = project.getDescription();
|
|
|
|
this.description = project.getDescription();
|
|
|
|
this.applicationFileName = project.getApplication() == null ? null : project.getApplication().getName();
|
|
|
|
this.applicationFileName = project.getApplication() == null ? null : project.getApplication().getName();
|
|
|
|
this.grant = project.getGrant() == null ? null : new GrantDto(project.getGrant());
|
|
|
|
this.grant = project.getGrant() == null ? null : new GrantDto(project.getGrant());
|
|
|
@ -82,6 +85,14 @@ public class ProjectDto {
|
|
|
|
this.status = status;
|
|
|
|
this.status = status;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public String getStatusName() {
|
|
|
|
|
|
|
|
return statusName;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setStatusName(String statusName) {
|
|
|
|
|
|
|
|
this.statusName = statusName;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
public String getDescription() {
|
|
|
|
return description;
|
|
|
|
return description;
|
|
|
|
}
|
|
|
|
}
|
|
|
|