Commit Graph

13 Commits

Author SHA1 Message Date
Konstantina Galouni 675ea269cc Admin 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() 2023-05-03 13:13:08 +03:00
Konstantina Galouni 43a4c1a5a4 [Admin Tools | log4j2]: CommunityController.java: In method "updateCommunity()", update also portalPid in the related menu | MenuService.java: Added method "updatePid()". 2022-12-16 13:45:03 +02:00
Konstantina Galouni 5af0f6a841 Updated parent in pom.xml and moved to log4j2 2022-10-07 13:38:56 +03:00
Konstantina Galouni 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).
2022-08-09 09:44:39 +00:00
Konstantina Galouni 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".
2022-07-27 12:52:33 +00:00
Konstantinos Triantafyllou 834dcc26f0 Add get available layouts endpoint 2022-07-21 09:10:09 +00:00
Konstantinos Triantafyllou af53843d1c [Admin Tools | Trunk]: Add again role Utils. Fix curator methods 2021-02-26 10:14:16 +00:00
Konstantinos Triantafyllou 6484343d2f [Admin Tools | Trunk]: Add get managers method. Delete no needed files. 2021-02-25 19:00:05 +00:00
Konstantina Galouni 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).
2021-02-25 11:57:22 +00:00
Konstantina Galouni 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.
2020-12-04 09:56:36 +00:00
Konstantina Galouni 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). 2020-09-28 10:30:56 +00:00
Konstantina Galouni f2ca4c4275 [Trunk | Admin Tools]: Merging branch 'use-UoaAdminToolsLibrary' into trunk for revisions 58365:59468 2020-09-24 12:02:39 +00:00
Konstantina Galouni 69abc67c5c All files moved to /trunk directory (improving project structure in svn). 2020-03-31 12:02:29 +00:00