-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #149 from q-rapids/develop
Release v1.4
- Loading branch information
Showing
24 changed files
with
12,548 additions
and
264 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
170 changes: 170 additions & 0 deletions
170
.../java/com/upc/gessi/qrapids/app/presentation/rest/dto/DTOSICurrentHistoricEvaluation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,170 @@ | ||
package com.upc.gessi.qrapids.app.presentation.rest.dto; | ||
|
||
import com.upc.gessi.qrapids.app.domain.controllers.StrategicIndicatorsController; | ||
import org.springframework.data.util.Pair; | ||
|
||
import java.time.LocalDate; | ||
import java.util.List; | ||
|
||
public class DTOSICurrentHistoricEvaluation { | ||
//class attributes | ||
private String id; | ||
private Long dbId; | ||
private String prjName; | ||
private String name; | ||
private String description; | ||
private Pair<Float, String> currentValue; | ||
private String currentValueDescription; | ||
private String currentRationale; | ||
private LocalDate currentDate; | ||
private List<DTOSIAssessment> probabilities; | ||
private List<DTOHistoricalData> historicalDataList; | ||
|
||
public static class DTOHistoricalData { | ||
private Pair<Float, String> value; | ||
private String valueDescription; | ||
private String rationale; | ||
private LocalDate date; | ||
|
||
public DTOHistoricalData(Pair<Float, String> value, String rationale, LocalDate date) { | ||
setValue(value); | ||
this.valueDescription = StrategicIndicatorsController.buildDescriptiveLabelAndValue(value); | ||
setRationale(rationale); | ||
setDate(date); | ||
} | ||
|
||
public void setValue(Pair<Float, String> value) { | ||
this.value = value; | ||
} | ||
|
||
public Pair<Float, String> getValue() { | ||
return value; | ||
} | ||
|
||
public String getValueDescription() { | ||
return valueDescription; | ||
} | ||
|
||
public void setValueDescription(String valueDescription) { | ||
this.valueDescription = valueDescription; | ||
} | ||
|
||
public void setRationale(String rationale) { | ||
this.rationale = rationale; | ||
} | ||
|
||
public String getRationale() { | ||
return rationale; | ||
} | ||
|
||
public void setDate(LocalDate date) { | ||
this.date = date; | ||
} | ||
|
||
public LocalDate getDate() { | ||
return date; | ||
} | ||
} | ||
|
||
public DTOSICurrentHistoricEvaluation(String id, String prjName, String name, String description, Pair<Float, String> value, Long dbId, | ||
String rationale, List<DTOSIAssessment> probabilities, LocalDate date) { | ||
setId(id); | ||
setPrjName(prjName); | ||
setName(name); | ||
setDescription(description); | ||
setCurrentValue(value); | ||
setCurrentRationale(rationale); | ||
setProbabilities(probabilities); | ||
setCurrentDate(date); | ||
setDbId(dbId); | ||
} | ||
|
||
public String getId() { | ||
return id; | ||
} | ||
|
||
public void setId(String id) { | ||
this.id = id; | ||
} | ||
|
||
public Long getDbId() { | ||
return dbId; | ||
} | ||
|
||
public void setDbId(Long dbId) { | ||
this.dbId = dbId; | ||
} | ||
|
||
public String getPrjName() { | ||
return prjName; | ||
} | ||
|
||
public void setPrjName(String prjName) { | ||
this.prjName = prjName; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public String getDescription() { | ||
return description; | ||
} | ||
|
||
public void setDescription(String description) { | ||
if (description != null) | ||
this.description = description; | ||
} | ||
|
||
public Pair<Float, String> getCurrentValue() { | ||
return currentValue; | ||
} | ||
|
||
public String getCurrentValueDescription() { return currentValueDescription;} | ||
|
||
private void setCurrentValueDescription(Pair<Float, String> value) { | ||
this.currentValueDescription = StrategicIndicatorsController.buildDescriptiveLabelAndValue(value); | ||
} | ||
|
||
public void setCurrentValue(Pair<Float, String> value) { | ||
this.currentValue = value; | ||
setCurrentValueDescription(value); | ||
} | ||
|
||
public void setCurrentRationale(String rationale) { | ||
this.currentRationale = rationale; | ||
} | ||
|
||
public String getCurrentRationale() { | ||
return currentRationale; | ||
} | ||
|
||
public List<DTOSIAssessment> getProbabilities() { | ||
return probabilities; | ||
} | ||
|
||
public void setProbabilities(List<DTOSIAssessment> probabilities) { | ||
this.probabilities = probabilities; | ||
} | ||
|
||
public LocalDate getCurrentDate() { | ||
return currentDate; | ||
} | ||
|
||
public void setCurrentDate(LocalDate date) { | ||
this.currentDate = date; | ||
} | ||
|
||
public List<DTOHistoricalData> getHistoricalDataList() { | ||
return historicalDataList; | ||
} | ||
|
||
public void setHistoricalDataList(List<DTOHistoricalData> historicalData) { | ||
this.historicalDataList = historicalData; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/main/java/com/upc/gessi/qrapids/app/presentation/web/mapping/ReportingController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.upc.gessi.qrapids.app.presentation.web.mapping; | ||
|
||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.stereotype.Controller; | ||
|
||
@Controller("/Reporting") | ||
public class ReportingController { | ||
@RequestMapping("/Reporting") | ||
public String reporting(){ return "Reporting/Reporting"; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.