diff --git a/README.md b/README.md index 72fa13c..b16f5c7 100644 --- a/README.md +++ b/README.md @@ -1 +1,7 @@ -# codbex-methods \ No newline at end of file +# codbex-methods + +Methods Management Application + +### Model + +![model](images/methods-model.png) diff --git a/codbex-methods/codbex-methods.edm b/codbex-methods/codbex-methods.edm index fd41c2f..3d839ef 100644 --- a/codbex-methods/codbex-methods.edm +++ b/codbex-methods/codbex-methods.edm @@ -1,10 +1,10 @@ - + - + @@ -15,5 +15,5 @@ - + \ No newline at end of file diff --git a/codbex-methods/codbex-methods.gen b/codbex-methods/codbex-methods.gen index e9cecbd..36c0917 100644 --- a/codbex-methods/codbex-methods.gen +++ b/codbex-methods/codbex-methods.gen @@ -7,7 +7,18 @@ "dataSource": "DefaultDB", "fileName": "codbex-methods", "genFolderName": "codbex-methods", - "roles": [], + "roles": [ + { + "entityName": "PaymentMethod", + "roleRead": "codbex-methods.PaymentMethod.PaymentMethodReadOnly", + "roleWrite": "codbex-methods.PaymentMethod.PaymentMethodFullAccess" + }, + { + "entityName": "SentMethod", + "roleRead": "codbex-methods.SentMethod.SentMethodReadOnly", + "roleWrite": "codbex-methods.SentMethod.SentMethodFullAccess" + } + ], "projectName": "codbex-methods", "workspaceName": "workspace", "filePath": "codbex-methods.model", @@ -92,7 +103,7 @@ "dataName": "PAYMENTMETHOD", "dataQuery": "", "description": "Manage entity PaymentMethod", - "generateDefaultRoles": "false", + "generateDefaultRoles": "true", "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE", @@ -106,6 +117,8 @@ "perspectiveName": "PaymentMethod", "perspectiveOrder": "100", "perspectiveRole": "", + "roleRead": "codbex-methods.PaymentMethod.PaymentMethodReadOnly", + "roleWrite": "codbex-methods.PaymentMethod.PaymentMethodFullAccess", "title": "PaymentMethod", "tooltip": "PaymentMethod", "type": "SETTING", @@ -173,7 +186,7 @@ "dataName": "SENTMETHOD", "dataQuery": "", "description": "Manage entity SentMethod", - "generateDefaultRoles": "false", + "generateDefaultRoles": "true", "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE", @@ -187,6 +200,8 @@ "perspectiveName": "SentMethod", "perspectiveOrder": "200", "perspectiveRole": "", + "roleRead": "codbex-methods.SentMethod.SentMethodReadOnly", + "roleWrite": "codbex-methods.SentMethod.SentMethodFullAccess", "title": "SentMethod", "tooltip": "SentMethod", "type": "SETTING", diff --git a/codbex-methods/codbex-methods.model b/codbex-methods/codbex-methods.model index e170d1c..0fed3b6 100644 --- a/codbex-methods/codbex-methods.model +++ b/codbex-methods/codbex-methods.model @@ -36,7 +36,7 @@ "dataName": "PAYMENTMETHOD", "dataQuery": "", "description": "Manage entity PaymentMethod", - "generateDefaultRoles": "false", + "generateDefaultRoles": "true", "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE", @@ -50,6 +50,8 @@ "perspectiveName": "PaymentMethod", "perspectiveOrder": "100", "perspectiveRole": "", + "roleRead": "codbex-methods.PaymentMethod.PaymentMethodReadOnly", + "roleWrite": "codbex-methods.PaymentMethod.PaymentMethodFullAccess", "title": "PaymentMethod", "tooltip": "PaymentMethod", "type": "SETTING" @@ -89,7 +91,7 @@ "dataName": "SENTMETHOD", "dataQuery": "", "description": "Manage entity SentMethod", - "generateDefaultRoles": "false", + "generateDefaultRoles": "true", "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE", @@ -103,6 +105,8 @@ "perspectiveName": "SentMethod", "perspectiveOrder": "200", "perspectiveRole": "", + "roleRead": "codbex-methods.SentMethod.SentMethodReadOnly", + "roleWrite": "codbex-methods.SentMethod.SentMethodFullAccess", "title": "SentMethod", "tooltip": "SentMethod", "type": "SETTING" diff --git a/codbex-methods/gen/codbex-methods/api/PaymentMethod/PaymentMethodService.ts b/codbex-methods/gen/codbex-methods/api/PaymentMethod/PaymentMethodService.ts index ce22952..fb82494 100644 --- a/codbex-methods/gen/codbex-methods/api/PaymentMethod/PaymentMethodService.ts +++ b/codbex-methods/gen/codbex-methods/api/PaymentMethod/PaymentMethodService.ts @@ -1,6 +1,8 @@ import { Controller, Get, Post, Put, Delete, response } from "sdk/http" import { Extensions } from "sdk/extensions" import { PaymentMethodRepository, PaymentMethodEntityOptions } from "../../dao/PaymentMethod/PaymentMethodRepository"; +import { user } from "sdk/security" +import { ForbiddenError } from "../utils/ForbiddenError"; import { ValidationError } from "../utils/ValidationError"; import { HttpUtils } from "../utils/HttpUtils"; @@ -14,6 +16,7 @@ class PaymentMethodService { @Get("/") public getAll(_: any, ctx: any) { try { + this.checkPermissions("read"); const options: PaymentMethodEntityOptions = { $limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : undefined, $offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : undefined @@ -28,6 +31,7 @@ class PaymentMethodService { @Post("/") public create(entity: any) { try { + this.checkPermissions("write"); this.validateEntity(entity); entity.Id = this.repository.create(entity); response.setHeader("Content-Location", "/services/ts/codbex-methods/gen/codbex-methods/api/PaymentMethod/PaymentMethodService.ts/" + entity.Id); @@ -41,6 +45,7 @@ class PaymentMethodService { @Get("/count") public count() { try { + this.checkPermissions("read"); return this.repository.count(); } catch (error: any) { this.handleError(error); @@ -50,6 +55,7 @@ class PaymentMethodService { @Post("/count") public countWithFilter(filter: any) { try { + this.checkPermissions("read"); return this.repository.count(filter); } catch (error: any) { this.handleError(error); @@ -59,6 +65,7 @@ class PaymentMethodService { @Post("/search") public search(filter: any) { try { + this.checkPermissions("read"); return this.repository.findAll(filter); } catch (error: any) { this.handleError(error); @@ -68,6 +75,7 @@ class PaymentMethodService { @Get("/:id") public getById(_: any, ctx: any) { try { + this.checkPermissions("read"); const id = parseInt(ctx.pathParameters.id); const entity = this.repository.findById(id); if (entity) { @@ -83,6 +91,7 @@ class PaymentMethodService { @Put("/:id") public update(entity: any, ctx: any) { try { + this.checkPermissions("write"); entity.Id = ctx.pathParameters.id; this.validateEntity(entity); this.repository.update(entity); @@ -95,6 +104,7 @@ class PaymentMethodService { @Delete("/:id") public deleteById(_: any, ctx: any) { try { + this.checkPermissions("write"); const id = ctx.pathParameters.id; const entity = this.repository.findById(id); if (entity) { @@ -118,6 +128,15 @@ class PaymentMethodService { } } + private checkPermissions(operationType: string) { + if (operationType === "read" && !(user.isInRole("codbex-methods.PaymentMethod.PaymentMethodReadOnly") || user.isInRole("codbex-methods.PaymentMethod.PaymentMethodFullAccess"))) { + throw new ForbiddenError(); + } + if (operationType === "write" && !user.isInRole("codbex-methods.PaymentMethod.PaymentMethodFullAccess")) { + throw new ForbiddenError(); + } + } + private validateEntity(entity: any): void { if (entity.Name?.length > 20) { throw new ValidationError(`The 'Name' exceeds the maximum length of [20] characters`); diff --git a/codbex-methods/gen/codbex-methods/api/SentMethod/SentMethodService.ts b/codbex-methods/gen/codbex-methods/api/SentMethod/SentMethodService.ts index f3df4ae..acb018a 100644 --- a/codbex-methods/gen/codbex-methods/api/SentMethod/SentMethodService.ts +++ b/codbex-methods/gen/codbex-methods/api/SentMethod/SentMethodService.ts @@ -1,6 +1,8 @@ import { Controller, Get, Post, Put, Delete, response } from "sdk/http" import { Extensions } from "sdk/extensions" import { SentMethodRepository, SentMethodEntityOptions } from "../../dao/SentMethod/SentMethodRepository"; +import { user } from "sdk/security" +import { ForbiddenError } from "../utils/ForbiddenError"; import { ValidationError } from "../utils/ValidationError"; import { HttpUtils } from "../utils/HttpUtils"; @@ -14,6 +16,7 @@ class SentMethodService { @Get("/") public getAll(_: any, ctx: any) { try { + this.checkPermissions("read"); const options: SentMethodEntityOptions = { $limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : undefined, $offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : undefined @@ -28,6 +31,7 @@ class SentMethodService { @Post("/") public create(entity: any) { try { + this.checkPermissions("write"); this.validateEntity(entity); entity.Id = this.repository.create(entity); response.setHeader("Content-Location", "/services/ts/codbex-methods/gen/codbex-methods/api/SentMethod/SentMethodService.ts/" + entity.Id); @@ -41,6 +45,7 @@ class SentMethodService { @Get("/count") public count() { try { + this.checkPermissions("read"); return this.repository.count(); } catch (error: any) { this.handleError(error); @@ -50,6 +55,7 @@ class SentMethodService { @Post("/count") public countWithFilter(filter: any) { try { + this.checkPermissions("read"); return this.repository.count(filter); } catch (error: any) { this.handleError(error); @@ -59,6 +65,7 @@ class SentMethodService { @Post("/search") public search(filter: any) { try { + this.checkPermissions("read"); return this.repository.findAll(filter); } catch (error: any) { this.handleError(error); @@ -68,6 +75,7 @@ class SentMethodService { @Get("/:id") public getById(_: any, ctx: any) { try { + this.checkPermissions("read"); const id = parseInt(ctx.pathParameters.id); const entity = this.repository.findById(id); if (entity) { @@ -83,6 +91,7 @@ class SentMethodService { @Put("/:id") public update(entity: any, ctx: any) { try { + this.checkPermissions("write"); entity.Id = ctx.pathParameters.id; this.validateEntity(entity); this.repository.update(entity); @@ -95,6 +104,7 @@ class SentMethodService { @Delete("/:id") public deleteById(_: any, ctx: any) { try { + this.checkPermissions("write"); const id = ctx.pathParameters.id; const entity = this.repository.findById(id); if (entity) { @@ -118,6 +128,15 @@ class SentMethodService { } } + private checkPermissions(operationType: string) { + if (operationType === "read" && !(user.isInRole("codbex-methods.SentMethod.SentMethodReadOnly") || user.isInRole("codbex-methods.SentMethod.SentMethodFullAccess"))) { + throw new ForbiddenError(); + } + if (operationType === "write" && !user.isInRole("codbex-methods.SentMethod.SentMethodFullAccess")) { + throw new ForbiddenError(); + } + } + private validateEntity(entity: any): void { if (entity.Name?.length > 20) { throw new ValidationError(`The 'Name' exceeds the maximum length of [20] characters`); diff --git a/codbex-methods/gen/codbex-methods/index.html b/codbex-methods/gen/codbex-methods/index.html index 46abb36..5e68abc 100644 --- a/codbex-methods/gen/codbex-methods/index.html +++ b/codbex-methods/gen/codbex-methods/index.html @@ -49,7 +49,7 @@ .constant('extensionPoint', { perspectives: "codbex-methods", views: "codbex-methods-view", - dialogWindows: "codbex-methods-dialog-window" + dialogWindows: "dialog-window" }) .config(["messageHubProvider", function (messageHubProvider) { messageHubProvider.eventIdPrefix = 'codbex-methods.launchpad.Home'; diff --git a/codbex-methods/gen/codbex-methods/roles/default-roles.roles b/codbex-methods/gen/codbex-methods/roles/default-roles.roles index 32960f8..795598b 100644 --- a/codbex-methods/gen/codbex-methods/roles/default-roles.roles +++ b/codbex-methods/gen/codbex-methods/roles/default-roles.roles @@ -1,2 +1,18 @@ [ + { + "name": "codbex-methods.PaymentMethod.PaymentMethodReadOnly", + "description": "A role that grants read only permission for PaymentMethod." + }, + { + "name": "codbex-methods.PaymentMethod.PaymentMethodFullAccess", + "description": "A role that grants full access for PaymentMethod." + }, + { + "name": "codbex-methods.SentMethod.SentMethodReadOnly", + "description": "A role that grants read only permission for SentMethod." + }, + { + "name": "codbex-methods.SentMethod.SentMethodFullAccess", + "description": "A role that grants full access for SentMethod." + } ] \ No newline at end of file diff --git a/codbex-methods/gen/codbex-methods/ui/PaymentMethod/PaymentMethod/dialog-filter/view.extension b/codbex-methods/gen/codbex-methods/ui/PaymentMethod/PaymentMethod/dialog-filter/view.extension index 5fed98c..89347f4 100644 --- a/codbex-methods/gen/codbex-methods/ui/PaymentMethod/PaymentMethod/dialog-filter/view.extension +++ b/codbex-methods/gen/codbex-methods/ui/PaymentMethod/PaymentMethod/dialog-filter/view.extension @@ -1,5 +1,6 @@ { "module": "codbex-methods/gen/codbex-methods/ui/PaymentMethod/PaymentMethod/dialog-filter/view.js", - "extensionPoint": "codbex-methods-dialog-window", - "description": "codbex-methods - Application Dialog Window" + "extensionPoint": "dialog-window", + "description": "codbex-methods - Application Dialog Window", + "role": "codbex-methods.PaymentMethod.PaymentMethodReadOnly,codbex-methods.PaymentMethod.PaymentMethodFullAccess" } \ No newline at end of file diff --git a/codbex-methods/gen/codbex-methods/ui/PaymentMethod/PaymentMethod/dialog-window/view.extension b/codbex-methods/gen/codbex-methods/ui/PaymentMethod/PaymentMethod/dialog-window/view.extension index 324ee28..b649633 100644 --- a/codbex-methods/gen/codbex-methods/ui/PaymentMethod/PaymentMethod/dialog-window/view.extension +++ b/codbex-methods/gen/codbex-methods/ui/PaymentMethod/PaymentMethod/dialog-window/view.extension @@ -1,5 +1,6 @@ { "module": "codbex-methods/gen/codbex-methods/ui/PaymentMethod/PaymentMethod/dialog-window/view.js", - "extensionPoint": "codbex-methods-dialog-window", - "description": "codbex-methods - Application Dialog Window" + "extensionPoint": "dialog-window", + "description": "codbex-methods - Application Dialog Window", + "role": "codbex-methods.PaymentMethod.PaymentMethodReadOnly,codbex-methods.PaymentMethod.PaymentMethodFullAccess" } \ No newline at end of file diff --git a/codbex-methods/gen/codbex-methods/ui/PaymentMethod/PaymentMethod/tile-portal.extension b/codbex-methods/gen/codbex-methods/ui/PaymentMethod/PaymentMethod/tile-portal.extension index e13a7a1..624aac2 100644 --- a/codbex-methods/gen/codbex-methods/ui/PaymentMethod/PaymentMethod/tile-portal.extension +++ b/codbex-methods/gen/codbex-methods/ui/PaymentMethod/PaymentMethod/tile-portal.extension @@ -1,5 +1,6 @@ { "module": "codbex-methods/gen/codbex-methods/ui/PaymentMethod/PaymentMethod/tile.js", "extensionPoint": "portal-tile", - "description": "codbex-methods - Application Tile" + "description": "codbex-methods - Application Tile", + "role": "codbex-methods.PaymentMethod.PaymentMethodReadOnly,codbex-methods.PaymentMethod.PaymentMethodFullAccess" } \ No newline at end of file diff --git a/codbex-methods/gen/codbex-methods/ui/PaymentMethod/PaymentMethod/tile.extension b/codbex-methods/gen/codbex-methods/ui/PaymentMethod/PaymentMethod/tile.extension index f422298..6044636 100644 --- a/codbex-methods/gen/codbex-methods/ui/PaymentMethod/PaymentMethod/tile.extension +++ b/codbex-methods/gen/codbex-methods/ui/PaymentMethod/PaymentMethod/tile.extension @@ -1,5 +1,6 @@ { "module": "codbex-methods/gen/codbex-methods/ui/PaymentMethod/PaymentMethod/tile.js", "extensionPoint": "codbex-methods-tile", - "description": "codbex-methods - Application Tile" + "description": "codbex-methods - Application Tile", + "role": "codbex-methods.PaymentMethod.PaymentMethodReadOnly,codbex-methods.PaymentMethod.PaymentMethodFullAccess" } \ No newline at end of file diff --git a/codbex-methods/gen/codbex-methods/ui/PaymentMethod/PaymentMethod/view.extension b/codbex-methods/gen/codbex-methods/ui/PaymentMethod/PaymentMethod/view.extension index c10a250..54ab31c 100644 --- a/codbex-methods/gen/codbex-methods/ui/PaymentMethod/PaymentMethod/view.extension +++ b/codbex-methods/gen/codbex-methods/ui/PaymentMethod/PaymentMethod/view.extension @@ -1,5 +1,6 @@ { "module": "codbex-methods/gen/codbex-methods/ui/PaymentMethod/PaymentMethod/view.js", "extensionPoint": "codbex-methods-view", - "description": "codbex-methods - Application View" + "description": "codbex-methods - Application View", + "role": "codbex-methods.PaymentMethod.PaymentMethodReadOnly,codbex-methods.PaymentMethod.PaymentMethodFullAccess" } \ No newline at end of file diff --git a/codbex-methods/gen/codbex-methods/ui/PaymentMethod/perspective.js b/codbex-methods/gen/codbex-methods/ui/PaymentMethod/perspective.js index 619003d..fab8db8 100644 --- a/codbex-methods/gen/codbex-methods/ui/PaymentMethod/perspective.js +++ b/codbex-methods/gen/codbex-methods/ui/PaymentMethod/perspective.js @@ -7,8 +7,8 @@ const perspectiveData = { id: 'PaymentMethod', name: 'PaymentMethod', link: '/services/web/codbex-methods/gen/codbex-methods/ui/PaymentMethod/index.html', - order: 100, - icon: '/services/web/resources/unicons/archive.svg', + order: '100', + icon: '/services/web/resources/unicons/archive.svg' }; if (typeof exports !== 'undefined') { diff --git a/codbex-methods/gen/codbex-methods/ui/SentMethod/SentMethod/dialog-filter/view.extension b/codbex-methods/gen/codbex-methods/ui/SentMethod/SentMethod/dialog-filter/view.extension index afd1d1d..2ae319a 100644 --- a/codbex-methods/gen/codbex-methods/ui/SentMethod/SentMethod/dialog-filter/view.extension +++ b/codbex-methods/gen/codbex-methods/ui/SentMethod/SentMethod/dialog-filter/view.extension @@ -1,5 +1,6 @@ { "module": "codbex-methods/gen/codbex-methods/ui/SentMethod/SentMethod/dialog-filter/view.js", - "extensionPoint": "codbex-methods-dialog-window", - "description": "codbex-methods - Application Dialog Window" + "extensionPoint": "dialog-window", + "description": "codbex-methods - Application Dialog Window", + "role": "codbex-methods.SentMethod.SentMethodReadOnly,codbex-methods.SentMethod.SentMethodFullAccess" } \ No newline at end of file diff --git a/codbex-methods/gen/codbex-methods/ui/SentMethod/SentMethod/dialog-window/view.extension b/codbex-methods/gen/codbex-methods/ui/SentMethod/SentMethod/dialog-window/view.extension index e0208c5..876e69f 100644 --- a/codbex-methods/gen/codbex-methods/ui/SentMethod/SentMethod/dialog-window/view.extension +++ b/codbex-methods/gen/codbex-methods/ui/SentMethod/SentMethod/dialog-window/view.extension @@ -1,5 +1,6 @@ { "module": "codbex-methods/gen/codbex-methods/ui/SentMethod/SentMethod/dialog-window/view.js", - "extensionPoint": "codbex-methods-dialog-window", - "description": "codbex-methods - Application Dialog Window" + "extensionPoint": "dialog-window", + "description": "codbex-methods - Application Dialog Window", + "role": "codbex-methods.SentMethod.SentMethodReadOnly,codbex-methods.SentMethod.SentMethodFullAccess" } \ No newline at end of file diff --git a/codbex-methods/gen/codbex-methods/ui/SentMethod/SentMethod/tile-portal.extension b/codbex-methods/gen/codbex-methods/ui/SentMethod/SentMethod/tile-portal.extension index b997c12..deb3f30 100644 --- a/codbex-methods/gen/codbex-methods/ui/SentMethod/SentMethod/tile-portal.extension +++ b/codbex-methods/gen/codbex-methods/ui/SentMethod/SentMethod/tile-portal.extension @@ -1,5 +1,6 @@ { "module": "codbex-methods/gen/codbex-methods/ui/SentMethod/SentMethod/tile.js", "extensionPoint": "portal-tile", - "description": "codbex-methods - Application Tile" + "description": "codbex-methods - Application Tile", + "role": "codbex-methods.SentMethod.SentMethodReadOnly,codbex-methods.SentMethod.SentMethodFullAccess" } \ No newline at end of file diff --git a/codbex-methods/gen/codbex-methods/ui/SentMethod/SentMethod/tile.extension b/codbex-methods/gen/codbex-methods/ui/SentMethod/SentMethod/tile.extension index 5fc0de8..96c4596 100644 --- a/codbex-methods/gen/codbex-methods/ui/SentMethod/SentMethod/tile.extension +++ b/codbex-methods/gen/codbex-methods/ui/SentMethod/SentMethod/tile.extension @@ -1,5 +1,6 @@ { "module": "codbex-methods/gen/codbex-methods/ui/SentMethod/SentMethod/tile.js", "extensionPoint": "codbex-methods-tile", - "description": "codbex-methods - Application Tile" + "description": "codbex-methods - Application Tile", + "role": "codbex-methods.SentMethod.SentMethodReadOnly,codbex-methods.SentMethod.SentMethodFullAccess" } \ No newline at end of file diff --git a/codbex-methods/gen/codbex-methods/ui/SentMethod/SentMethod/view.extension b/codbex-methods/gen/codbex-methods/ui/SentMethod/SentMethod/view.extension index 65f4d27..7adde32 100644 --- a/codbex-methods/gen/codbex-methods/ui/SentMethod/SentMethod/view.extension +++ b/codbex-methods/gen/codbex-methods/ui/SentMethod/SentMethod/view.extension @@ -1,5 +1,6 @@ { "module": "codbex-methods/gen/codbex-methods/ui/SentMethod/SentMethod/view.js", "extensionPoint": "codbex-methods-view", - "description": "codbex-methods - Application View" + "description": "codbex-methods - Application View", + "role": "codbex-methods.SentMethod.SentMethodReadOnly,codbex-methods.SentMethod.SentMethodFullAccess" } \ No newline at end of file diff --git a/codbex-methods/gen/codbex-methods/ui/SentMethod/perspective.js b/codbex-methods/gen/codbex-methods/ui/SentMethod/perspective.js index 632d361..d13af93 100644 --- a/codbex-methods/gen/codbex-methods/ui/SentMethod/perspective.js +++ b/codbex-methods/gen/codbex-methods/ui/SentMethod/perspective.js @@ -7,8 +7,8 @@ const perspectiveData = { id: 'SentMethod', name: 'SentMethod', link: '/services/web/codbex-methods/gen/codbex-methods/ui/SentMethod/index.html', - order: 200, - icon: '/services/web/resources/unicons/archive.svg', + order: '200', + icon: '/services/web/resources/unicons/archive.svg' }; if (typeof exports !== 'undefined') { diff --git a/codbex-methods/gen/codbex-methods/ui/launchpad/dialog-window.extensionpoint b/codbex-methods/gen/codbex-methods/ui/launchpad/dialog-window.extensionpoint index 5c543e5..c4bd708 100644 --- a/codbex-methods/gen/codbex-methods/ui/launchpad/dialog-window.extensionpoint +++ b/codbex-methods/gen/codbex-methods/ui/launchpad/dialog-window.extensionpoint @@ -1,4 +1,4 @@ { - "name": "codbex-methods-dialog-window", + "name": "dialog-window", "description": "codbex-methods - Extension Point for the Application Dialog Window Providers" } \ No newline at end of file diff --git a/codbex-methods/navigations/payment-method/navigation.extension b/codbex-methods/navigations/payment-method/navigation.extension index c54274c..409fe51 100644 --- a/codbex-methods/navigations/payment-method/navigation.extension +++ b/codbex-methods/navigations/payment-method/navigation.extension @@ -1,5 +1,6 @@ { "extensionPoint": "dashboard-navigations", "module": "codbex-methods/navigations/payment-method/service.js", - "description": "Payment Method Navigation" + "description": "Payment Method Navigation", + "role": "codbex-methods.PaymentMethod.PaymentMethodReadOnly,codbex-methods.PaymentMethod.PaymentMethodFullAccess" } \ No newline at end of file diff --git a/codbex-methods/navigations/sent-method/navigation.extension b/codbex-methods/navigations/sent-method/navigation.extension index 9999333..5df91dc 100644 --- a/codbex-methods/navigations/sent-method/navigation.extension +++ b/codbex-methods/navigations/sent-method/navigation.extension @@ -1,5 +1,6 @@ { "extensionPoint": "dashboard-navigations", "module": "codbex-methods/navigations/sent-method/service.js", - "description": "Sent Method Navigation" + "description": "Sent Method Navigation", + "role": "codbex-methods.SentMethod.SentMethodFullAccess,codbex-methods.SentMethod.SentMethodReadOnly" } \ No newline at end of file diff --git a/images/methods-model.png b/images/methods-model.png new file mode 100644 index 0000000..5701fe7 Binary files /dev/null and b/images/methods-model.png differ