added views to research DTO
This commit is contained in:
parent
f269e24bb4
commit
24f82812f4
@ -28,8 +28,9 @@ public class ResearchDTO {
|
|||||||
private Access access;
|
private Access access;
|
||||||
private String domain;
|
private String domain;
|
||||||
private String summary;
|
private String summary;
|
||||||
|
private long views;
|
||||||
|
|
||||||
private ResearchDTO(String title, ResearcherDTO researcherDTO, Date releaseDate, PaperType paperType, String pdfLocation, String language, Access access, String domain, String summary, long id) {
|
private ResearchDTO(String title, ResearcherDTO researcherDTO, Date releaseDate, PaperType paperType, String pdfLocation, String language, Access access, String domain, String summary, long id,long views) {
|
||||||
this.title = title;
|
this.title = title;
|
||||||
this.researcher = researcherDTO;
|
this.researcher = researcherDTO;
|
||||||
this.releaseDate = releaseDate;
|
this.releaseDate = releaseDate;
|
||||||
@ -40,12 +41,13 @@ public class ResearchDTO {
|
|||||||
this.domain = domain;
|
this.domain = domain;
|
||||||
this.summary = summary;
|
this.summary = summary;
|
||||||
this.id = id;
|
this.id = id;
|
||||||
|
this.views = views;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public static ResearchDTO construct(Research research){
|
public static ResearchDTO construct(Research research){
|
||||||
return new ResearchDTO(research.getTitle(), ResearcherDTO.construct(research.getAuthor()), research.getReleaseDate(),
|
return new ResearchDTO(research.getTitle(), ResearcherDTO.construct(research.getAuthor()), research.getReleaseDate(),
|
||||||
research.getPaperType(),research.getPdfLocation(),research.getLanguage(),research.getAccess(),
|
research.getPaperType(),research.getPdfLocation(),research.getLanguage(),research.getAccess(),
|
||||||
research.getDomain(), research.getSummary(), research.getId());
|
research.getDomain(), research.getSummary(), research.getId(), research.getViews());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user