Project

General

Profile

« Previous | Next » 

Revision 57637

1. Add IndicatorDAO.java & MongoDBIndicatorDAO.java.
2. StakeholderDAO.java & MongoDBStakeholderDAO.java: Add methods 'findById()' and 'delete()'.
3. Category.java & SubCategory.java & Topic.java: Add fields 'id' and 'isDefault' and getters/setters for 'isDefault'.
4. Indicator.java: Add field 'isDefault' and getters/setters.
5. IndicatorPath.java: Change 'image' to 'other' in IndicatorPathType enum.
6. StakeholderController.java: Add methods: 'deleteStakeholder()' (by id), 'deleteTopic()', 'deleteCategory()', 'deleteSubCategory()', 'reorderIndicators()'.

View differences:

Category.java
1 1
package eu.dnetlib.uoamonitorservice.entities;
2 2

  
3
import com.fasterxml.jackson.annotation.JsonProperty;
4
import org.springframework.data.annotation.Id;
5

  
3 6
import java.util.List;
4 7

  
5 8
public class Category {
9
    @Id
10
    @JsonProperty("_id")
11
    private String id;
12

  
6 13
    private String name;
7 14
    private String alias;
8 15
    private boolean isActive;
9 16
    private boolean isPublic;
10 17
    private boolean isOverview;
18
    private boolean isDefault;
11 19
    private List<SubCategory> subCategories;
12 20

  
13 21
    public Category() {}
......
17 25
        isActive = category.getIsActive();
18 26
        isPublic = category.getIsPublic();
19 27
        isOverview = category.getIsOverview();
28
        isDefault = category.getIsDefault();
20 29
    }
21 30

  
22 31
    public String getName() {
......
59 68
        this.isOverview = isOverview;
60 69
    }
61 70

  
71
    public boolean getIsDefault() {
72
        return isDefault;
73
    }
74

  
75
    public void setIsDefault(boolean isDefault) {
76
        this.isDefault = isDefault;
77
    }
78

  
62 79
    public List<SubCategory> getSubCategories() {
63 80
        return subCategories;
64 81
    }

Also available in: Unified diff