Revision 57637
Added by Konstantina Galouni over 4 years ago
Topic.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 Topic { |
9 |
@Id |
|
10 |
@JsonProperty("_id") |
|
11 |
private String id; |
|
12 |
|
|
6 | 13 |
private String name; |
7 | 14 |
private String alias; |
8 | 15 |
private String description; |
9 | 16 |
private boolean isActive; |
10 | 17 |
private boolean isPublic; |
18 |
private boolean isDefault; |
|
11 | 19 |
private List<Category> categories; |
12 | 20 |
|
13 | 21 |
public Topic() {} |
... | ... | |
17 | 25 |
description = topic.getDescription(); |
18 | 26 |
isActive = topic.getIsActive(); |
19 | 27 |
isPublic = topic.getIsPublic(); |
28 |
isDefault = topic.getIsDefault(); |
|
20 | 29 |
} |
21 | 30 |
|
22 | 31 |
public String getName() { |
... | ... | |
59 | 68 |
this.isPublic = isPublic; |
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<Category> getCategories() { |
63 | 80 |
return categories; |
64 | 81 |
} |
Also available in: Unified diff
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()'.