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:

Stakeholder.java
33 33

  
34 34
    private List<Topic> topics;
35 35

  
36
    public Stakeholder() {}
37
    public Stakeholder(Stakeholder stakeholder) {
38
        type = stakeholder.getType();
39
        index_id = stakeholder.getIndex_id();
40
        index_name = stakeholder.getIndex_name();
41
        index_shortName = stakeholder.getIndex_shortName();
42
        alias = stakeholder.getAlias();
43
        isDefaultProfile = stakeholder.getIsDefaultProfile();
44
        isActive = stakeholder.getIsActive();
45
        isPublic = stakeholder.getIsPublic();
46
        creationDate = stakeholder.getCreationDate();
47
        updateDate = stakeholder.getUpdateDate();
48
        managers = stakeholder.getManagers();
49
    }
50

  
36 51
    public String getId() {
37 52
        return id;
38 53
    }
......
81 96
        this.alias = alias;
82 97
    }
83 98

  
84
    public boolean isDefaultProfile() {
99
    public boolean getIsDefaultProfile() {
85 100
        return isDefaultProfile;
86 101
    }
87 102

  
88
    public void setDefaultProfile(boolean defaultProfile) {
89
        isDefaultProfile = defaultProfile;
103
    public void setIsDefaultProfile(boolean isDefaultProfile) {
104
        this.isDefaultProfile = isDefaultProfile;
90 105
    }
91 106

  
92
    public boolean isActive() {
107
    public boolean getIsActive() {
93 108
        return isActive;
94 109
    }
95 110

  
96
    public void setActive(boolean active) {
97
        isActive = active;
111
    public void setIsActive(boolean isActive) {
112
        this.isActive = isActive;
98 113
    }
99 114

  
100
    public boolean isPublic() {
115
    public boolean getIsPublic() {
101 116
        return isPublic;
102 117
    }
103 118

  
104
    public void setPublic(boolean aPublic) {
105
        isPublic = aPublic;
119
    public void setIsPublic(boolean isPublic) {
120
        this.isPublic = isPublic;
106 121
    }
107 122

  
108 123
    public Date getCreationDate() {

Also available in: Unified diff