Commit Graph

65 Commits

Author SHA1 Message Date
Konstantina Galouni 9389c43ec6 [Trunk | Admin Tools]: Curator.java & CuratorResponse.java: Rename "setAffiliation()" to "setAffiliations()". 2021-02-25 10:27:47 +00:00
Konstantina Galouni 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).
2021-02-25 10:18:49 +00:00
Konstantina Galouni 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).
2021-02-25 10:07:57 +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 f3a33d9044 [Trunk | Admin tools]: synchronize_dbs.js & migrateCommunityIn_db.js: Add auth commands for dbs with credentials. 2020-12-04 09:41:00 +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 80bf0ca415 [Trunk | Admin Tools]: Delete "CommunitySubscribersController.java" (replaced by PortalSubscribersController.java). 2020-09-24 12:09:54 +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
Konstantinos Triantafyllou 5d10423c40 [Admin Tools | Trunk]: Add on scripts new FAQs page. 2020-04-24 16:39:09 +00:00
Konstantina Galouni 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).
2020-04-14 09:48:31 +00:00
Konstantina Galouni 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).
2020-04-10 12:34:43 +00:00
Konstantina Galouni 3e494fd665 [Trunk | Admin Tools service]:
1. Statistics.java: Added "isActive" field (default value: true).
2. StatisticsController.java: Added toggleStatistics method (/statistics/{id}/toggle) for activating/ deactivating statistics.
2020-04-01 12:52:09 +00:00
Argiro Kokogiannaki a642920ba7 [Uoa-admin-tool|Trunk]
Properties: use classpath instead of path of specific tomcats
Recaptcha: add logs and catch exceptions
2020-03-31 12:36:56 +00:00
Konstantina Galouni 69abc67c5c All files moved to /trunk directory (improving project structure in svn). 2020-03-31 12:02:29 +00:00
Konstantina Galouni aa88a16e4f Creating trunk and branches folders for improving structure of svn directory. 2020-03-31 11:50:32 +00:00