Revision 58708
Added by Konstantina Galouni almost 4 years ago
Section.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 |
enum SectionType { |
... | ... | |
35 | 36 |
setTitle(defaultSection.getTitle()); |
36 | 37 |
setType(defaultSection.getType()); |
37 | 38 |
setDefaultId(defaultSection.id); |
39 |
setIndicators(new ArrayList<>()); |
|
38 | 40 |
} |
39 | 41 |
|
40 | 42 |
public String getId() { |
Also available in: Unified diff
[Trunk | Monitor Service]:
1. Stakeholder.java: Field 'name' added.
2. Section.java: In method 'copyFromDefault()' initialize indicators (empty list).
3. StakeholderDAO.java & MongoDBStakeholderDAO.java: Added method 'Stakeholder findByTopicsContaining(String topic);' (needed to find in which Stakeholder a Topic belongs - section needs stakeholderAlias).
4. TopicDAO.java & MongoDBTopicDAO.java: Added method 'Topic findByCategoriesContaining(String category);' (needed to find in which Topic a Category belongs - section needs stakeholderAlias).
5. CategoryDAO.java & MongoDBCategoryDAO.java: Added method 'Category findBySubCategoriesContaining(String subCategory);' (needed to find in which Category a SubCategory belongs - section needs stakeholderAlias).
6. TopicController.java & CategoryController.java & SubCategoryController.java & SectionController.java & IndicatorController.java:
Bug fixes & changed logic for updates on default profile: When a value in a profile is same as the value in default, inherit changes in default value, otherwise keep local profile's options.