Project

General

Profile

« Previous | Next » 

Revision 57923

1. pom.xml: Add dependency for "uoa-help-texts-library" (will be renamed).
2. UoaMonitorServiceApplication.java: Add @PropertySource path used in dl170.
3. MongoConnection.java: @EnableMongoRepositories not only from: eu.dnetlib.uoamonitorservice.dao, but also: eu.dnetlib.uoahelptexts.dao.
4. GoogleConfig.java & MailConfig.java: [Deleted]: Functionality available on library project.
5. EmailController.java: [New]: Used for contact-us page in portal.
6. ExceptionsHandler.java & /controllers/: Add more and detailed logs.
7. Stakeholder.java:
a. Field 'logoUrl' added.
b. Method 'getType()' returns type.name() and 'setType()' gets String and converts it into StakeholderType.
8. Topic.java & Category.java & SubCategory.java & Indicator.java:
a. Field 'boolean isDefault' changed to 'String defaultId'.
b. Method copyFromDefault() added to create a clone from default entity (topic, category, subcategory, indicator).
9. Category.java & SubCategory.java: Field 'String description' added.
10. SubCategory.java: Field 'String stakeholderId' added | method createOverviewSubCategory(Category) added.
11. Indicator.java & IndicatorPath.java: Method 'getType()' returns type.name() and 'setType()' gets String and converts it into IndicatorType / IndicatorPathType.
12. IndicatorPath.java: Constructor and copy constructor added.
13. StakeholderDAO.java & MongoDBStakeholderDAO.java:
a. Method findByIsDefaultProfile() changed to: findByDefaultId() & findByDefaultIdNot().
b. Method findByIsDefaultProfileAndType() changed to: findByDefaultIdAndType() & findByDefaultIdNotAndType().
14. SubCategoryDAO.java & MongoDBSubCategoryDAO.java & IndicatorDAO.java & MongoDBSubCategoryDAO.java: Method 'findByDefaultId()' added.
15. StakeholderController.java: Handle creationDate and updateDate | Add more exceptional cases.
16. TopicController.java:
a. Helper method 'onSaveDefaultTopic()' added (save cloned topic on stakeholders based on this default Stakeholder).
b. Helper method 'onUpdateDefaultTopic()' added (update cloned topics based on this default topic).
17. CategoryController.java:
a. Remove 'subCategory.setIsDefault(true);' when a category is created.
b. Helper method 'onSaveDefaultCategory()' added (save cloned category on topics based on this default Topic).
c. Helper method 'onUpdateDefaultCategory()' added (update cloned categories based on this default category).
18. SubCategoryController.java:
a. Helper method 'onSaveDefaultSubCategory()' added (save cloned subCategory on topics based on this default Category).
b. Helper method 'onUpdateDefaultSubCategory()' added (update cloned subCategories based on this default subCategory).
19. IndicatorController.java:
a. Helper method 'onSaveDefaultIndicator()' added (save cloned indicator on subCategories based on this default SubCategory).
b. Helper method 'onUpdateDefaultIndicator()' added (update cloned indicators based on this default indicator).
c. Helper method 'parameterMapping()' added to map correct parameter values on parameters depending on stakeholder info.
d. Method 'toggleIndicatorStatus()' added to toggle 'isActive' field.
e. Method 'toggleIndicatorAccess()' added to toggle 'isPublic' field.
f. Helper method 'toggleIndicator()' added to update indicator when a field is toggled.

View differences:

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

  
6
import java.util.ArrayList;
6 7
import java.util.List;
7 8

  
8 9
public class Topic<StringOrCategory> {
......
15 16
    private String description;
16 17
    private boolean isActive;
17 18
    private boolean isPublic;
18
    private boolean isDefault;
19
    private String defaultId;
19 20
    private List<StringOrCategory> categories;
20 21

  
21 22
    public Topic() {}
......
26 27
        description = topic.getDescription();
27 28
        isActive = topic.getIsActive();
28 29
        isPublic = topic.getIsPublic();
29
        isDefault = topic.getIsDefault();
30
        defaultId = topic.getDefaultId();
30 31
    }
31 32

  
33
    public void copyFromDefault(Topic defaultTopic) {
34
        setName(defaultTopic.getName());
35
        setAlias(defaultTopic.getAlias());
36
        setDescription(defaultTopic.getDescription());
37
        setIsActive(false);
38
        setIsPublic(false);
39
        setDefaultId(defaultTopic.getId());
40
        setCategories(new ArrayList());
41
    }
42

  
32 43
    public String getId() {
33 44
        return id;
34 45
    }
......
77 88
        this.isPublic = isPublic;
78 89
    }
79 90

  
80
    public boolean getIsDefault() {
81
        return isDefault;
91
    public String getDefaultId() {
92
        return defaultId;
82 93
    }
83 94

  
84
    public void setIsDefault(boolean isDefault) {
85
        this.isDefault = isDefault;
95
    public void setDefaultId(String defaultId) {
96
        this.defaultId = defaultId;
86 97
    }
87 98

  
88 99
    public List<StringOrCategory> getCategories() {

Also available in: Unified diff