675ea269ccAdmin Tools | log4j2: pom.xml: Updated version of uoa-admin-tools-library to 1.0.7 (previous 1.0.6) | CommunityController.java & ConnectController.java & ExploreController.java: In methods of update portal, if pid was changed, call also pageService.updatePid()
#1
Konstantina Galouni2023-05-03 13:13:08 +0300
58f6612945[Admin Tools | log4j2]: MenuService.java: [Bug fix] Method "updatePid()" needs to update portalPid in menu and menu items.Konstantina Galouni2022-12-16 14:04:57 +0200
43a4c1a5a4[Admin Tools | log4j2]: CommunityController.java: In method "updateCommunity()", update also portalPid in the related menu | MenuService.java: Added method "updatePid()".Konstantina Galouni2022-12-16 13:45:03 +0200
4f62befa74[Admin Tools | log4j2]: Allow curators with profile to be invisible in the Gateway | Dynamically align custom menu. 1. Curator.java & CuratorResponse.java: Added field private boolean visible = true; to allow curators have a profile but not be visible in the Gateway. 2. CuratorService.java: In method "getCurators()" called by /{pid}/curator, return curators that have a profile and the profile is visible. 3. MenuAlignment.java: Enum created for menu alignment options. 4. Menu.java & MenuFull.java: Added field public MenuAlignment featuredAlignment = MenuAlignment.CENTER; to allow dynamic alignment of the Gateway custom menu. 5. MenuController.java: Added api method "alignMenu()" (/community/{pid}/menu/align), to change alignment of the custom menu. 6. MenuService.java: Added method "alignMenu()" | Set featuredAlignment field (default to "CENTER").Konstantina Galouni2022-12-09 15:01:00 +0200
6e14c0b41b[Admin tools | Trunk]: Added endpoing for purging browser cache. 1. admintools.properties: Added property "admintool.cache.url". 2. BrowserCacheConfig.java: Added config for browser cache properties. 3. UoaAdminToolsApplication.java: In EnableConfigurationProperties added BrowserCacheConfig. 4. BrowserCacheController.java: Added class and method "purge()" (/cache/{pid}) for purging browser cache for a specific community.Konstantina Galouni2022-08-11 12:50:59 +0000
b5de59ee75[Admin Tools | Trunk]: 1. pom.xml: Increased version. 2. LayoutDAO.java & MongoDBLayoutDAO.java: Updated return type of "findByPortalPid()" to be List<Layout>. 3. LayoutService.java: Updated all usages of "findByPortalPid()" | In "save()" method, if there is one existing Layout for this pid already, set id to update layout instead of saving a new one. 4. CommunityController.java: Added method "deleteLayoutForCommunity()" (DELETE /community/{pid}/layout). 5. ConnectController.java: Added methods for "connect" and "default" pids: "getLayoutForConnect()" (GET /connect/{pid}/layout - no authorization), "updateLayoutForConnect()" (POST /connect/{pid}/layout), "deleteLayoutForConnect()" (DELETE /connect/{pid}/layout).Konstantina Galouni2022-08-09 09:44:39 +0000
99e01c7662[Admin Tools | Trunk]: pom.xml: Increased version to 2.0.3 | ManagerService.java: Change response in method "getManagers()" to get them via role management instead of user management.Konstantina Galouni2022-07-29 09:45:45 +0000
a9cc44c443[Trunk | Admin Tools]: Updated version of admin-tools-library | Updated structure of dynamic Menus. 1. pom.xml: Updated version of admin-tools-library to 1.0.5 (used to be 1.0.4). 2. Added Menu.java, MenuFull.java, MenuDAO.java, MongoDBMenuDAO.java. 3. CommunityController.java: On method "deleteCommunities()", delete also dynamic Menus for these pids. 4. Renamed MenuItemController.java to MenuController.java & added or updated methods to get/save/delete/toggle Menu structure instead of MenuItems. 5. Renamed MenuItemService.java to MenuService.java & added or updated methods to get/save/delete Menu structure instead of MenuItems. 6. MenuItem.java & MenuItemFull.java: Added field "String target;" (values _self or _blank) & field "Boolean isFeatured = false;". 7. UoaAdminToolsApplicationTests.java: Added test for sending email. 8. Layout.java: Added field "Date date".Konstantina Galouni2022-07-27 12:52:33 +0000
fbd8be51a0[Trunk | Admin Tools]: pom.xml: Updated to 2.0.1-SNAPSHOT current version and to 1.0.3 uoa-admin-tools-library.Konstantina Galouni2021-11-30 12:03:11 +0000
9412df30a0[Trunk | Admin Tools Service]: 1. pom.xml: a. Updated version of "uoa-admin-tools-library" from 1.0.1 to 1.0.2 b. Added <repositories> tag with http://maven.research-infrastructures.eu/nexus/content/repositories/dnet45-releases url for released libraries. 2. GlobalVars.java: Added field "version" (version of project in pom). 3. AdminToolsCheckDeployController.java: Expose globalBars.version in /health_check/advanced. 4. admintools.properties: Added admintool.globalVars.version=@version@ (initialized by pom version).Konstantina Galouni2021-11-17 23:11:44 +0000
84d0d916b7[Trunk | Admin Tools]: pom.xml: Update parent from "spring-boot-starter-parent" to "dnet45-parent" ==> add <dependencyManagement> and "maven-war-plugin" and comment "spring-boot-maven-plugin".Konstantina Galouni2021-10-05 21:06:45 +0000
7e5d71828e[Trunk | Admin Tools Service]: 1. pom.xml: a. Added timestamp in properties. b. In <build> added <resources> with filtering set to true. 2. GlobalVars.java: Added GlobalVars class for date of deploy & date of build. 3. UoaAdminToolsApplication.java: a. Added @PropertySource("classpath:authorization.properties") and @PropertySource("classpath:admintoolslibrary.properties"). b. In @EnableConfigurationProperties added GlobalVars.class. 4. AdminToolsCheckDeployController.java: Added exposing date of deploy and date of build. 5. admintools.properties: Added property admintool.globalVars.buildDate=@timestamp@.Konstantina Galouni2021-09-15 22:02:16 +0000
6f16710191[Trunk | Admin Tools]: update_db.js: [Bug fix] Add Home page of communities by updating "portal" collection (not "community) | call "addHomePageInCommunities()" independently (not from other function).Konstantina Galouni2021-06-04 14:56:48 +0000
c40385090c[Trunk | Admin Tools]: update_db.js: Updated default footer div helptext for communities.Konstantina Galouni2021-06-04 09:54:06 +0000
f30a0d8a80[Trunk | Admin Tools]: update_db.js: a. In function addPiwik(), add new communities (galaxy, gortriple, neanias-underwater, pending piwik: embrc). b. New functions for footer divId & div helptexts (connect & communities): addFooterDivIdForConnect(), addFooterDivIdForCommunities(), addFooterHelpTextForConnect(), addFooterHelpTextForCommunities().Konstantina Galouni2021-06-04 09:36:06 +0000
b2254975da[Trunk | Admin Tools]: 1. AdminToolsCheckDeployController.java: a. In "hello()" method added @RequestMapping (except for existing ""), "/health_check". b. Added method "checkEverything()" (/health_chech/advanced) only accessible by PORTAL ADMINS which checks connection with db and prints properties. 2. Layout.java: Commented all fields for layout configuration (e.g. mainColor, buttons,...) and added an Object layoutOptions which includes any required options.Konstantina Galouni2021-04-22 09:07:08 +0000
c4f63e0d78[Trunk | Admin Tools]: AdminToolsCheckDeployController.java: [NEW] Controller added and "hello()" method (@RequestMapping(value = "", method = RequestMethod.GET)) which just prints and returns a greeting message.Konstantina Galouni2021-03-24 10:27:57 +0000
0f14a41d6f[Trunk | Admin Tools]: EmailController.java: Added method "notifyNewManager()" (/notifyNewManager) to send a wellcome email to a new manager (recipient not by portal - user is sending email to himself).Konstantina Galouni2021-03-04 16:22:37 +0000
ac370aa055[Trunk | Admin Tools]: 1. CuratorResponse.java: Remove "email" field. 2. EmailController.java: a.Replace methods "notifyNewManagers()" (/notifyForNewManagers/{pid}) and "notifyForNewSubscribers()" (/notifyForNewSuscribers/{pid}) with "notifyManagers()" (/notifyManagers/{pid}/{newRoleType}), where newRoleType is "manager" or "subscriber". b. Method notifyManagers() finds manager emails by calling registry service - stop getting them from portals inside Email object.Konstantina Galouni2021-02-26 14:54:17 +0000
6c452b5433[Trunk | Admin Tools]: 1. pom.xml: Added dependency for spring security. 2. UoaAdminToolsApplication.java: Import AuthorizationConfiguration.class | Remove SecurityConfig.class from @EnableConfigurationProperties. 3. UoaAdminToolsConfiguration.java: Comment "addInterceptors()" method calling AuthorizationHandler with SecurityConfig. 4. SecurityConfig.java & AuthorizationHandler.java & AuthorizationUtils.java & CommunityInfo.java & UserInfo.java: Commented all contents of these files (files will be deleted in coming commit). 5. PortalSubscribersController.java: Comment imports from commeted files. 6. Notifications.java: Added field "aaiId" get getters and setters. 7. NotificationsController.java: a. Method "getNotifications()" is replaced by "getNotificationsForUser()" (/community/{pid}/notifications) - returns notification settings only for user who made the request (uoa-authorization-li$ b. Path changed for method "getNotifications()": /community/{pid}/notifications/all c. Remove "@RequestBody String email" parameter from method "deleteNotification()" - get email from user who made the request (uoa-authorization-library). d. In method "saveNotification()" get aaiId and email from user who made the request (uoa-authorization-library). e. Added checks and throw Exceptions in all methods. f. Added @PreAuthorize Portal Admins: "getNotifications()" (/community/{pid}/notifications/all) Portal Admins - Curators - Managers: "getNotificationsForUser()" (/community/{pid}/notifications), "deleteNotification()" (/community/{pid}/notifications), "saveNotification()" (/communit$ 8. ExploreController.java: a. Added checks and throw Exceptions in all methods. b. Added @PreAuthorize Portal Admins: "updateExplore()" (/explore/update), "insertExplore()" (/explore/save), "deleteExplore()" (/explore/delete). 9. ConnectController.java: a. Added checks and throw Exceptions in all methods. b. Added @PreAuthorize Portal Admins: "updateConnect()" (/connect/update), "insertConnect()" (/connect/save), "deleteConnect()" (/connect/delete). c. Commented methods "getLayoutForConnect()" and "updateLayoutForConnect()" (/connect/{pid}/layout). 10. CommunityController.java: a. Added checks and throw Exceptions in all methods. b. Added @PreAuthorize Portal Admins: "updateCommunity()" (/community/update), "insertCommunity()" (/community/save), "deleteCommunity()" (/community/delete). Portal Admin - Curators - Managers: "updateLayoutForCommunity()" (/community/{pid}/layout). 11. CuratorController.java: a. In "insertCurator() (/curator) set _id field with aaiId from user who made the request (uoa-authorization-library). b. Added @PreAuthorize Authenticated users: "getCuratorById()" (/curator/{id}), "insertCurator()" (/curator). Portal Admins: "deleteCurators()" (/curator).Konstantina Galouni2021-02-25 11:57:22 +0000
40b7fa40cd[Trunk | Admin Tools]: 1. SubscriberController.java & PortalSubscribersController.java: Commented POST/ DELETE methods from controllers related to subscribers (these files will be deleted after migration of roles to AAI). 2. StatisticsController.java: Commented all methods (file and statistics schema in general need update - currently not working).Konstantina Galouni2021-02-25 10:43:53 +0000
f4960df528[Trunk | Admin Tools]: 1. update_db.js: Added method to add Piwik ids for each community (check ids before running it). 2. migrateCommunityIn_db.js: Added method to migrate curators (there was an error with null fields - UI needs them empty strings).Konstantina Galouni2021-02-25 10:18:49 +0000
8c3db8e451[Trunk | Admin Tools]: 1. Deleted folder "responses" with all its files (moved to uoa-admin-tools-library in r60105). 2. Deleted file "SimpleErrorController.java" (moved to uoa-admin-tools-library in r60105).Konstantina Galouni2021-02-25 10:07:57 +0000
5f2bc1fdfb[Trunk | Admin tools]: 1. NotificationsService.java: [NEW] service for notifications with updatePid and deleteByPid methods. 2. LayoutService.java & StatisticsService.java & SubscriberService.java: Logs added. 3. CommunityController.java: a. [Bug fix] On "updateCommunity()" (/update) method update pid for related notifications, layout, statistics and subscribers (old_pid had the value of new_pid, not the old one). b. Add update pid for notifications when updating portal pid | Delete related notifications by pid when deleting a portal.Konstantina Galouni2020-12-04 09:56:36 +0000
f3a33d9044[Trunk | Admin tools]: synchronize_dbs.js & migrateCommunityIn_db.js: Add auth commands for dbs with credentials.Konstantina Galouni2020-12-04 09:41:00 +0000
7db56cee72[Trunk | Admin Tools]: CommunityController.java: in "getAllCommunities()" method, change @RequestMapping value from "/" to "" (in url no need to add / in the end to match this method).Konstantina Galouni2020-09-28 10:30:56 +0000
c65b205365[Trunk | Admin Tools Service]: 1. SingleValueWrapperResponse.java: Generic class SingleValueWrapperResponse created, with field "value" of type defined when instance is created (used for returning single value from API methods). 2. CommunitySubscribersController.java: In method "getNumberOfSubscribersPerCommunity()" (/community/{pid}/subscribers/count) return SingleValueWrapperResponse<Integer> (Used to return Integer but it is not always considered as valid JSON).Konstantina Galouni2020-04-14 09:48:31 +0000
04d9e7a91f[Trunk | Admin Tools Service]: 1. admintools.properties & UoaAdminToolsApplication.java: Uncomment admintools.properties and ignore if @PropertySource for dnet-override.properties not found, to let tests runs. 2. Subscriber.java: Add default constructor and constructor with email parameter. 3. CommunitySubscribersController.java: a. Autowire SecurityConfig to let methods get UserInfo via token. b. Add GET method "getNumberOfSubscribersPerCommunity()" (/community/{pid}/subscribers/count). c. Add GET methos "getIsSubscribedToCommunity()" (/community/{pid}/is-subscriber): Return true/ false and gets user email via token in @RequestHeader("X-XSRF-TOKEN"). d. Method "addSubscriberInCommunity()" renamed to "addSubscriberInCommunityByEmail()" | Method "deleteSubscriberFromCommunity()" renamed to "deleteSubscriberFromCommunityByEmail()". e. Add POST methods "addSubscriberInCommunity()" (/community/{pid}/subscriber) and "deleteSubscriberFromCommunity()" (/community/{pid}/subscriber/delete): Return true/ false and get user email via token in @RequestHeader("X-XSRF-TOKEN"). f. Method getCommunitiesPerSubcriber(@RequestParam(value="email", required = true) String email) --> getCommunitiesPerSubcriber(@RequestHeader("X-XSRF-TOKEN") String token): Get user email via token in @RequestHeader("X-XSRF-TOKEN"). 4. update_db.js: a. Add method "createNewPagesForConnect()": adds page "/publications" for connect (enabled). b. Add method "createNewPagesForCommunities()": adds pages "/content" (enabled), "/projects" (disabled), "/national-bulletins" (disabled), "/subjects"(disabled) for communities. c. Add method "removeContentPolicyPageAndAddHelpTextInCommunitiesSourcesPage()": remove old "/content" connect page and move its contents to new "/content" for every community (NOT connect & openaire).Konstantina Galouni2020-04-10 12:34:43 +0000