[Trunk | Monitor Service]:1. MonitorController.java: [Bug fix] In class @RequestMapping, added "/organization" (this portal type was missing).2. update_db.js: Commnented old functions and added "addHomePageInPortalType()", "addFooterDivIdForPortalType()", "addFooterHelpTextForPortalType()" for portalTypes: funder, ri, organization.
[Trunk | Monitor Service]:1. MonitorServiceCheckDeployController.java: [NEW] Controller added and a. "hello()" method (@RequestMapping(value = {"", "/health_check"}, method = RequestMethod.GET)) which just prints and returns a greeting message. b. "checkEverything()" method @RequestMapping(value = "/health_check/advanced", method = RequestMethod.GET) only accessible by PORTAL ADMINS which checks connection with db and prints properties....
[Trunk | Monitor Service]:1. pom.xml: Add dependency for notification service: uoa-notification-service.2. UoaMonitorServiceApplication.java: In @SpringBootApplication, add in scanBasePackages "eu.dnetlib.uoanotificationservice".
[Trunk | Monitor Service]:1. RolesUtils.java: Comment all contents of this file (should be removed in next commit). This file is added in uoa-admin-tools-library.2. StakeholderController.java & TopicController.java & CategoryController.java & SubCategoryController.java & SectionController.java & IndicatorController.java: Import RolesUtils from uoa-admin-tools-library....
[Trunk | Monitor Service]:1. StakeholderController.java: a. Method "getMyRealStakeholders()" (/my-stakeholder) returns basic Stakeholder info (Topics are not full object anymore). b. Method "saveStakeholder()" (/save) gets basic or full object for Stakeholder and returns whatever format it received....
[Trunk | Monitor Service]:1. StakeholderController.java & TopicController.java & CategoryController.java & SubCategoryController.java && SectionController.java && IndicatorController.java: a. Comment logs for get requests. b. Use "ForbiddenException" instead of "AccessDeniedException"...
[Trunk | Monitor Service]:1. MonitorController.java: new class for admin tools functionalities (to be updated, when admin tools UI will be redesigned).2. update_db.js: Update script added for mongo db updates.
[Trunk | Monitor Service]:1. RolesUtils.java: New class connected to "AuthorizationService" and returns helper methods for roles and authorities.2. StakeholderController.java & TopicController.java & CategoryController.java & SubCategoryController.java & SectionController.java & IndicatorController.java:...
[Trunk | Monitor Service]:1. In all enums, add capitalized values too (maybe in the future, lowercased values will be removed - NOT NOW).2. Visibility.java: New enumeration Visibility added with values: PUBLIC, RESTRICTED, PRIVATE (will replace isPublic and isActive fields)....
[Trunk | Monitor Service]: uoa-authorization-library dependency added:1. pom.xml: Added dependencies for spring security and for uoa-authorization-library | [Bug fix] spring boot version set to 1.5.8 (it was accidentally set to 1.5.18 and library was not compatible)....
[Trunk | Monitor Service]: CategoryController.java & SubCategoryController.java & TopicController.java: In "onUpdateDefaultTopic()" method, when "name" is changed, update also "alias" according to default profile.
[Trunk | Monitor Service]:1. TopicController.java & CategoryController.java & SubCategoryController.java: New methods for reorder added.2. CategoryController.java: Method "checkForExceptions()" added.3. IndicatorController.java: [Bug Fix] When updating a default indicator and all indicators based on that are updated too, set description field when needed (not name again).
[Trunk | Monitor Service]: 1. Adding parameter in delete methods to delete or disconnect all profiles based on the default one that is being deleted (not for stakeholder). 2. In delete methods remove iterations (for deleting inner elements) and call "deleteTree()" method.
[Trunk | Monitor Service]:1. trunk/src/test/java/eu/dnetlib/uoamonitorservice: New folders for tests.2. ExceptionsHandler.java: Replace "log.debug" with "log.error".3. Stakeholder.java: Field 'description' and getter/ setter methods added.4. Topic.java: Field 'icon' and getter/ setter methods added | In method "copyFromDefault()", set "isActive" and "isPublic" fields of new Topic same as the values from default Topic....
[Trunk | Monitor Service]: 1. pom.xml: Comment dependency of "uoa-help-texts-library" and add dependency of "uoa-admin-tools-library" | Add dependency of "spring-boot-starter-test".2. MongoConnection.java: Replace basePackage "eu.dnetlib.uoahelptexts.dao" with "eu.dnetlib.uoaadmintoolslibrary.dao"....
[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)....
[Trunk | Monitor Service]: SectionController: [Bug fix] In method "saveSection()" (/{stakeholderId}/{topicId}/{categoryId}/{subcategoryId}/save/{index}) a. Pathvariable "index" is required - if index == -1, ignore it and add section in the end of the list....
[Trunk | Monitor Service]:1. SectionController.java: In 'saveSection()' method add in path index where section will be stored in subcategory (path: /{stakeholderId}/{topicId}/{categoryId}/{subcategoryId}/save/{index}).2. IndicatorController.java: In 'parameterMapping()' method add replacement in number url - add 'urlEncode()' helper method.
[Trunk | Monitor Service]:1. Section entity level added. Hierarchy changed from: Stakeholder > Topic > Category > SubCategory > Indicator to: Stakeholder > Topic > Category > SubCategory > Section > Indicator.2. Section.java & SectionDAO.java & MongoDBSectionDAO.java & SectionController.java: New entity 'Section', DAOs for Section, Controller for section added....
StakeholderController.java & TopicController.java & CategoryController.java & SubCategoryController.java: toggle methods for status and access added.
Indicator.java: [Bug fix]: One extra parenthesis is removed.
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....
1. IndicatorController.java: Reorder method changed (parameter is List<String> and return value is List<Indicator>).2. CategoryController.java: Default subcategory has name "Overview", alias "overview" and isDefault is true.
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....
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'....
1. Stakeholder.java: Create constructor and copy constructor & change getters-setters for 'isDeafult', 'isPublic' and 'isActive' fields.2. Topic.java: Create constructor and copy constructor & change getters-setters for 'isPublic' and 'isActive' fields.3. Category.java: Create constructor and copy constructor & change getters-setters for 'isOverview, 'isPublic' and 'isActive' fields & remove field 'description'....
Initial commit for monitor-service.
Adding the trunk and branches folders for the project
Creating a folder for the service of monitor dashboard