Commit Graph

31 Commits

Author SHA1 Message Date
k.triantafyllou 08bf703186 [Library]: Move angular 11 to trunk. Remove no needed files. Delete angular upgrade branches
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@61381 d315682c-612b-4755-9ff5-7f18f6832af3
2021-07-14 11:19:57 +00:00
k.triantafyllou bdd90b9d6c [Library | Trunk]: Delete some unusage files
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60692 d315682c-612b-4755-9ff5-7f18f6832af3
2021-03-22 17:00:49 +00:00
k.triantafyllou 03780a4112 [Library | Trunk]: Revert role-users. Add canActivateChild on connect guards
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60540 d315682c-612b-4755-9ff5-7f18f6832af3
2021-03-01 18:44:26 +00:00
k.triantafyllou e8774312f5 [Library | Trunk]: 1. Community Service refactor. 2. Subscribe service refactor. 3. Add service on role-verification
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60453 d315682c-612b-4755-9ff5-7f18f6832af3
2021-02-19 17:50:34 +00:00
argiro.kokogiannaki 1d5c753ff6 [Library|Trunk]
code clean up:
-remove app.* files from library
-remove unused imports, code, files (Old search pages for results, dataproviders, map search page, etc)
-remove Freeguard from modules
-unsubscribe all subscriptions
-Services: configuration, isvocabularies, user management: unsubscribe from app component or the component that uses them (clearSubscriptions())
-Fetchers: unsubscribe from  the component that uses them (clearSubscriptions())




git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59816 d315682c-612b-4755-9ff5-7f18f6832af3
2020-11-11 14:43:13 +00:00
k.triantafyllou 59ff1cc209 [Library | Trunk]: Add new session methods on guards
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59232 d315682c-612b-4755-9ff5-7f18f6832af3
2020-08-06 20:01:37 +00:00
konstantina.galouni 0a1576d618 [Trunk | Library]:
1. community.service.ts: 
	a. Add BehaviorSubject for community.
	b. Method "isCommunityManager" replaced by "isCommunityManagerByState" (filtering applied in community stored in BehaviorSubject).
        c. Method "isRIType" replaced by "isRITypeByState" (filtering applied in community stored in BehaviorSubject).
        d. Method "isCommunityType" replaced by "isCommunityTypeByState" (filtering applied in community stored in BehaviorSubject).
2. connectAdminLoginGuard.guard.ts: 
	a. Get properties from environment (no service needed).
	b. Call method "isCommunityManagerByState" of CommunityService.
	c. Add "canDeactivate" method to unsubscribe (TODO: call method from routing modules).
3. connectCommunityGuard.guard.ts: 
        a. Get properties from environment (no service needed).
        b. Call method "isCommunityTypeByState" of CommunityService.
        c. Add "canDeactivate" method to unsubscribe (TODO: call method from routing modules).
4. connectRIGuard.guard.ts:
        a. Get properties from environment (no service needed).
        b. Call method "isRITypeByState" of CommunityService.
        c. Add "canDeactivate" method to unsubscribe (TODO: call method from routing modules).
5. isRouteEnabled.guard.ts: Add "canDeactivate" method to unsubscribe (TODO: call method from routing modules).
6. curator.service.ts: [Undo change of r59073] Use "useCache" property, not "useLongCache" for curators.


git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59140 d315682c-612b-4755-9ff5-7f18f6832af3
2020-07-16 23:08:10 +00:00
k.triantafyllou 34fbdcf44b [Library | Trunk]: Revert parameter to user Info back
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59041 d315682c-612b-4755-9ff5-7f18f6832af3
2020-07-02 15:02:14 +00:00
k.triantafyllou 885999c8ad [Library | Trunk]: Remove parameter from userInfo.
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59040 d315682c-612b-4755-9ff5-7f18f6832af3
2020-07-02 14:51:58 +00:00
k.triantafyllou eee4f0807e [Library | Trunk]: Change getUserInfo to be suitable for guards too.
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@57939 d315682c-612b-4755-9ff5-7f18f6832af3
2019-12-23 15:09:17 +00:00
k.triantafyllou 68ebe44682 [Library]: Check if is Client on userInfo method.
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@57547 d315682c-612b-4755-9ff5-7f18f6832af3
2019-11-08 12:07:39 +00:00
k.triantafyllou 4316c70b9a [Library]: Add check if isClient to getUserInfo
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@57545 d315682c-612b-4755-9ff5-7f18f6832af3
2019-11-08 11:01:50 +00:00
k.triantafyllou 7955acd2bc [Library]: Fix some issues on guards. Change session is Logged in to check user's token.
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@57071 d315682c-612b-4755-9ff5-7f18f6832af3
2019-09-13 09:38:21 +00:00
k.triantafyllou 98c98e6625 [Library]: Add user management service and change all session methods with new ones.
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@57058 d315682c-612b-4755-9ff5-7f18f6832af3
2019-09-13 07:01:19 +00:00
k.triantafyllou 9f3dafd895 Fix bug on adminLoginGuard wrong redirectedUrl on canLoad.
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@56976 d315682c-612b-4755-9ff5-7f18f6832af3
2019-09-05 14:02:18 +00:00
argiro.kokogiannaki f8913dfdbd [Library|Trunk]
Merge into trunk branch angular7 rev 55729




git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@55964 d315682c-612b-4755-9ff5-7f18f6832af3
2019-06-03 13:20:36 +00:00
k.triantafyllou 10051a303e [Trunk|Library]: connectCommunityGuard has been added it for check if type is community. Change community error page message
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@54965 d315682c-612b-4755-9ff5-7f18f6832af3
2019-03-07 15:43:54 +00:00
k.triantafyllou ac0c8181e3 [Trunk|Library]: Fix CanLoad guards to get community from document(Can be used only in browser platform)
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@54960 d315682c-612b-4755-9ff5-7f18f6832af3
2019-03-04 13:23:01 +00:00
k.triantafyllou 5d5f39be19 [Trunk|Library]: 1. Add static function to find community from url path. 2. Community guards can now be used as CanLoad guards using functionality of getCommunityFromPath(look at 1).
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@54915 d315682c-612b-4755-9ff5-7f18f6832af3
2019-02-27 10:39:13 +00:00
k.triantafyllou 75533e17bf [Trunk|Library]: CanLoad does not work in connect guards, maybe it works in angular 6
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@54912 d315682c-612b-4755-9ff5-7f18f6832af3
2019-02-26 15:25:52 +00:00
k.triantafyllou 0bddc14435 [Trunk|Library]: All guards implement CanLoad. Need to be tested! CanActivate is now enabled
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@54906 d315682c-612b-4755-9ff5-7f18f6832af3
2019-02-26 13:57:04 +00:00
k.triantafyllou 9627d08570 Duplicated code blocks has been cleaned in library
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@54903 d315682c-612b-4755-9ff5-7f18f6832af3
2019-02-25 15:28:14 +00:00
konstantina.galouni c6b84c171e [trunk]: Remove unnecessary logs from library.
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@54775 d315682c-612b-4755-9ff5-7f18f6832af3
2019-02-14 10:15:44 +00:00
k.triantafyllou e73b632bc3 Login Guards implement now CanLoad
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@54649 d315682c-612b-4755-9ff5-7f18f6832af3
2019-01-25 11:18:38 +00:00
konstantina.galouni 9f688a2946 Rename 'ErrorCodes' class to 'LoginErrorCodes' of login/utils/guardHelper.class.ts
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@53612 d315682c-612b-4755-9ff5-7f18f6832af3
2018-11-01 17:20:05 +00:00
argiro.kokogiannaki d5b745fc65 Single Sign On: Changing cookie names, format, remove unused methods
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@52451 d315682c-612b-4755-9ff5-7f18f6832af3
2018-06-12 11:15:42 +00:00
argiro.kokogiannaki fb8d203f41 Add guard for subscribers, remove unused property properties from guards, read properties properly from guard
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@51826 d315682c-612b-4755-9ff5-7f18f6832af3
2018-04-16 11:49:35 +00:00
konstantina.galouni 8c8e9ca79c 1. Change the way variable of type 'EnvProperties' is accessed in guards.
2. Add <ng-content> in modal of openaireLibrary. (e.g. for nested component)


git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@51672 d315682c-612b-4755-9ff5-7f18f6832af3
2018-04-04 16:01:57 +00:00
konstantina.galouni 30f9ee87a7 1. Pass argument of type: EnvProperties in connect services (used for cache).
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@51662 d315682c-612b-4755-9ff5-7f18f6832af3
2018-04-04 14:05:26 +00:00
argiro.kokogiannaki 5139077569 add function for separeate roles in Session| add isCommunityRI method in community service and RIGuard || change admin guard to be only administrator | add claims curator guard|
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@51526 d315682c-612b-4755-9ff5-7f18f6832af3
2018-03-27 08:22:55 +00:00
argiro.kokogiannaki fbcec793bc Add a mathod in community service to check if a user is a manager of a community| change connectAdminLoginGuard to really ask for a community manager| correct some links in properties json
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@51261 d315682c-612b-4755-9ff5-7f18f6832af3
2018-03-15 09:53:07 +00:00