|
|
@ -31,8 +31,6 @@ public class ProjectDto {
|
|
|
|
private List<Integer> removedDeadlineIds = new ArrayList<>();
|
|
|
|
private List<Integer> removedDeadlineIds = new ArrayList<>();
|
|
|
|
private Set<Integer> executorIds;
|
|
|
|
private Set<Integer> executorIds;
|
|
|
|
private List<UserDto> executors;
|
|
|
|
private List<UserDto> executors;
|
|
|
|
private boolean hasAge;
|
|
|
|
|
|
|
|
private boolean hasDegree;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private final static int MAX_EXECUTORS_LENGTH = 40;
|
|
|
|
private final static int MAX_EXECUTORS_LENGTH = 40;
|
|
|
|
|
|
|
|
|
|
|
@ -52,9 +50,7 @@ public class ProjectDto {
|
|
|
|
@JsonProperty("repository") String repository,
|
|
|
|
@JsonProperty("repository") String repository,
|
|
|
|
@JsonProperty("deadlines") List<Deadline> deadlines,
|
|
|
|
@JsonProperty("deadlines") List<Deadline> deadlines,
|
|
|
|
@JsonProperty("executorIds") Set<Integer> executorIds,
|
|
|
|
@JsonProperty("executorIds") Set<Integer> executorIds,
|
|
|
|
@JsonProperty("executors") List<UserDto> executors,
|
|
|
|
@JsonProperty("executors") List<UserDto> executors) {
|
|
|
|
@JsonProperty("hasAge") boolean hasAge,
|
|
|
|
|
|
|
|
@JsonProperty("hasDegree") boolean hasDegree) {
|
|
|
|
|
|
|
|
this.id = id;
|
|
|
|
this.id = id;
|
|
|
|
this.title = title;
|
|
|
|
this.title = title;
|
|
|
|
this.status = status;
|
|
|
|
this.status = status;
|
|
|
@ -65,8 +61,6 @@ public class ProjectDto {
|
|
|
|
this.applicationFileName = null;
|
|
|
|
this.applicationFileName = null;
|
|
|
|
this.executorIds = executorIds;
|
|
|
|
this.executorIds = executorIds;
|
|
|
|
this.executors = executors;
|
|
|
|
this.executors = executors;
|
|
|
|
this.hasAge = hasAge;
|
|
|
|
|
|
|
|
this.hasDegree = hasDegree;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -172,22 +166,6 @@ public class ProjectDto {
|
|
|
|
this.executors = executors;
|
|
|
|
this.executors = executors;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public boolean isHasAge() {
|
|
|
|
|
|
|
|
return hasAge;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setHasAge(boolean hasAge) {
|
|
|
|
|
|
|
|
this.hasAge = hasAge;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public boolean isHasDegree() {
|
|
|
|
|
|
|
|
return hasDegree;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setHasDegree(boolean hasDegree) {
|
|
|
|
|
|
|
|
this.hasDegree = hasDegree;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public String getExecutorsString() {
|
|
|
|
public String getExecutorsString() {
|
|
|
|
return StringUtils.abbreviate(executors
|
|
|
|
return StringUtils.abbreviate(executors
|
|
|
|
.stream()
|
|
|
|
.stream()
|
|
|
|