Project

General

Profile

« Previous | Next » 

Revision 57578

1. Stakeholder.java: Create constructor and copy constructor & change getters-setters for 'isDeafult', 'isPublic' and 'isActive' fields.
2. Topic.java: Create constructor and copy constructor & change getters-setters for 'isPublic' and 'isActive' fields.
3. Category.java: Create constructor and copy constructor & change getters-setters for 'isOverview, 'isPublic' and 'isActive' fields & remove field 'description'.
4. SubCategory.java: Create constructor and copy constructor & change getters-setters for 'isPublic' and 'isActive' fields & remove field 'description' &
make charts and numbers (List) generic (String or Indicator).
5. Indicator.java: Change getters-setters for 'indicatorPaths', 'isPublic' and 'isActive' fields & create method: public boolean hasType(String str), to check if "chart" or "number".
6. IndicatorPath.java: Add fields in schema (chartObject, parameters, filters) & add in enum IndicatorPathType types: pie, line, image.
7. MongoDBStakeholderDAO.java & StakeholderDAO.java: Add method: Stakeholder findByAlias(String Alias)
8. StakeholderController.java:
a. Add method: public Stakeholder setIndicatorsForStakeholder(Stakeholder stakeholder) to replace indicator ids with Indicator objects
(used by: getAllStakeholders, getAllDefaultStakeholders, getAllRealStakeholders, getStakeholder (by alias))
b. Add method: public Stakeholder getStakeholder(@PathVariable("alias") String alias) - /stakeholder/{alias}
c. Add method: public Stakeholder saveStakeholder(@RequestBody Stakeholder stakeholder) - /stakeholder/save
d. Add method: public boolean deleteIndicator(...) - /{stakeholder}/{topic}/{category}/{subcategory}/indicator/{id}
e. Add method: public Indicator saveIndicator(...) - /{stakeholder}/{topic}/{category}/{subcategory}/indicator/save (in body send Indicator object)

View differences:

Indicator.java
77 77
        this.tags = tags;
78 78
    }
79 79

  
80
    public boolean isActive() {
80
    public boolean getIsActive() {
81 81
        return isActive;
82 82
    }
83 83

  
84
    public void setActive(boolean isActive) {
84
    public void setIsActive(boolean isActive) {
85 85
        this.isActive = isActive;
86 86
    }
87 87

  
88
    public boolean isPublic() {
88
    public boolean getIsPublic() {
89 89
        return isPublic;
90 90
    }
91 91

  
92
    public void setPublic(boolean isPublic) {
92
    public void setIsPublic(boolean isPublic) {
93 93
        this.isPublic = isPublic;
94 94
    }
95 95

  
96
    public List<IndicatorPath> getNdicatorPaths() {
96
    public List<IndicatorPath> getIndicatorPaths() {
97 97
        return indicatorPaths;
98 98
    }
99 99

  
100
    public void setNdicatorPaths(List<IndicatorPath> ndicatorPaths) {
101
        this.indicatorPaths = ndicatorPaths;
100
    public void setIndicatorPaths(List<IndicatorPath> indicatorPaths) {
101
        this.indicatorPaths = indicatorPaths;
102 102
    }
103

  
104
    public boolean hasType(String str) {
105
        return this.type.equals(str);
106
    }
103 107
}

Also available in: Unified diff