Commit Graph

7 Commits

Author SHA1 Message Date
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