From 2313e1cd86e8091bfcfe074b77e698becea8790e Mon Sep 17 00:00:00 2001 From: Martin Stockhammer Date: Wed, 4 Nov 2020 16:20:31 +0100 Subject: [PATCH] Adding permission handling to webapp --- .../archiva-web/src/app/app.component.html | 6 +- .../main/archiva-web/src/app/app.component.ts | 8 +- .../main/archiva-web/src/app/app.module.ts | 2 + .../view-permission.directive.spec.ts | 26 +++ .../directives/view-permission.directive.ts | 64 +++++++ .../archiva-web/src/app/model/access-token.ts | 3 +- .../src/app/model/operation.spec.ts | 25 +++ .../archiva-web/src/app/model/operation.ts | 24 +++ .../src/app/model/permission.spec.ts | 25 +++ .../archiva-web/src/app/model/permission.ts | 29 ++++ .../src/app/model/resource.spec.ts | 25 +++ .../archiva-web/src/app/model/resource.ts | 23 +++ .../archiva-web/src/app/model/user-info.ts | 1 - .../general/sidemenu/sidemenu.component.html | 16 +- .../general/sidemenu/sidemenu.component.ts | 7 +- .../app/services/authentication.service.ts | 55 ++++-- .../src/app/services/user.service.ts | 159 +++++++++++++++++- 17 files changed, 468 insertions(+), 30 deletions(-) create mode 100644 archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/directives/view-permission.directive.spec.ts create mode 100644 archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/directives/view-permission.directive.ts create mode 100644 archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/model/operation.spec.ts create mode 100644 archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/model/operation.ts create mode 100644 archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/model/permission.spec.ts create mode 100644 archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/model/permission.ts create mode 100644 archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/model/resource.spec.ts create mode 100644 archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/model/resource.ts diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/app.component.html b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/app.component.html index f223be39d..fd24fdc4e 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/app.component.html +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/app.component.html @@ -29,7 +29,7 @@