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:

Topic.java
10 10
    private boolean isPublic;
11 11
    private List<Category> categories;
12 12

  
13
    public Topic() {}
14
    public Topic(Topic topic) {
15
        name = topic.getName();
16
        alias = topic.getAlias();
17
        description = topic.getDescription();
18
        isActive = topic.getIsActive();
19
        isPublic = topic.getIsPublic();
20
    }
21

  
13 22
    public String getName() {
14 23
        return name;
15 24
    }
......
34 43
        this.description = description;
35 44
    }
36 45

  
37
    public boolean isActive() {
46
    public boolean getIsActive() {
38 47
        return isActive;
39 48
    }
40 49

  
41
    public void setActive(boolean active) {
42
        isActive = active;
50
    public void setIsActive(boolean isActive) {
51
        this.isActive = isActive;
43 52
    }
44 53

  
45
    public boolean isPublic() {
54
    public boolean getIsPublic() {
46 55
        return isPublic;
47 56
    }
48 57

  
49
    public void setPublic(boolean aPublic) {
50
        isPublic = aPublic;
58
    public void setIsPublic(boolean isPublic) {
59
        this.isPublic = isPublic;
51 60
    }
52 61

  
53 62
    public List<Category> getCategories() {

Also available in: Unified diff