Revision 57671
Added by Konstantina Galouni over 4 years ago
IndicatorPath.java | ||
---|---|---|
15 | 15 |
private List<String> jsonPath; |
16 | 16 |
private String chartObject; |
17 | 17 |
private Map<String, String> parameters; |
18 |
private Map<String, Map<String, String>> filters; |
|
18 |
private Map<String, String> filters; |
|
19 |
//private Map<String, Map<String, String>> filters; |
|
19 | 20 |
|
20 | 21 |
public IndicatorPathType getType() { |
21 | 22 |
return type; |
... | ... | |
65 | 66 |
this.parameters = parameters; |
66 | 67 |
} |
67 | 68 |
|
68 |
public Map<String, Map<String, String>> getFilters() {
|
|
69 |
public Map<String, String> getFilters() {
|
|
69 | 70 |
return filters; |
70 | 71 |
} |
71 | 72 |
|
72 |
public void setFilters(Map<String, Map<String, String>> filters) {
|
|
73 |
public void setFilters(Map<String, String> filters) {
|
|
73 | 74 |
this.filters = filters; |
74 | 75 |
} |
75 | 76 |
} |
Also available in: Unified diff
1. Schema changes: Move each entity on its own collection - each entity keeps ids for its sub-entities.
2. New controllers for each entity: TopicController.java, CategoryController.java, SubCategoryController.java, IndicatorController.java.
3. New DAOs for each entity: TopicDAO.java, MongoDBTopicDAO.java, CategoryDAO.java, MongoDBCategoryDAO.java, SubCategoryDAO.java, MongoDBSubCategoryDAO.java.
4. New custom Exceptions: EntityNotFoundException.java, PathNotValidException.java.
5. ExceptionsHandler.java: Handle new EntityNotFoundException (id not in db) and PathNotValidException (id exists in db but not in path given).