diff --git a/README.md b/README.md index 5cefe5c..752b730 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,7 @@ ### Model -![model](images/payments-model.png) - +![payments](images/payments-model.png) ### Application #### Launchpad @@ -21,4 +20,4 @@ ![settings](images/payments-settings.png) -![report](images/payments-payment-record-report.png) \ No newline at end of file +![report](images/payments-payment-record-report.png) diff --git a/codbex-payments/codbex-payments.edm b/codbex-payments/codbex-payments.edm index 1c52b2c..a9ed50d 100644 --- a/codbex-payments/codbex-payments.edm +++ b/codbex-payments/codbex-payments.edm @@ -1,6 +1,6 @@ - + @@ -18,7 +18,7 @@ - + @@ -35,7 +35,7 @@ - + @@ -51,7 +51,7 @@ - + @@ -96,7 +96,7 @@ - + @@ -106,13 +106,13 @@ - + - + @@ -147,7 +147,7 @@ - + @@ -187,5 +187,5 @@ - + \ No newline at end of file diff --git a/codbex-payments/codbex-payments.gen b/codbex-payments/codbex-payments.gen index 88b6fd9..21d0c5c 100644 --- a/codbex-payments/codbex-payments.gen +++ b/codbex-payments/codbex-payments.gen @@ -7,6 +7,48 @@ "dataSource": "DefaultDB", "fileName": "codbex-payments", "genFolderName": "codbex-payments", + "roles": [ + { + "entityName": "CustomerPayment", + "roleRead": "codbex-payments.CustomerPayment.CustomerPaymentReadOnly", + "roleWrite": "codbex-payments.CustomerPayment.CustomerPaymentFullAccess" + }, + { + "entityName": "SupplierPayment", + "roleRead": "codbex-payments.SupplierPayment.SupplierPaymentReadOnly", + "roleWrite": "codbex-payments.SupplierPayment.SupplierPaymentFullAccess" + }, + { + "entityName": "EmployeePayment", + "roleRead": "codbex-payments.EmployeePayment.EmployeePaymentReadOnly", + "roleWrite": "codbex-payments.EmployeePayment.EmployeePaymentFullAccess" + }, + { + "entityName": "PaymentRecord", + "roleRead": "codbex-payments.PaymentRecord.PaymentRecordReadOnly", + "roleWrite": "codbex-payments.PaymentRecord.PaymentRecordFullAccess" + }, + { + "entityName": "PaymentRecordDirection", + "roleRead": "codbex-payments.Settings.PaymentRecordDirectionReadOnly", + "roleWrite": "codbex-payments.Settings.PaymentRecordDirectionFullAccess" + }, + { + "entityName": "PaymentStatus", + "roleRead": "codbex-payments.Settings.PaymentStatusReadOnly", + "roleWrite": "codbex-payments.Settings.PaymentStatusFullAccess" + }, + { + "entityName": "PaymentType", + "roleRead": "codbex-payments.Settings.PaymentTypeReadOnly", + "roleWrite": "codbex-payments.Settings.PaymentTypeFullAccess" + }, + { + "entityName": "PaymentAdjustment", + "roleRead": "codbex-payments.PaymentAdjustment.PaymentAdjustmentReadOnly", + "roleWrite": "codbex-payments.PaymentAdjustment.PaymentAdjustmentFullAccess" + } + ], "projectName": "codbex-payments", "workspaceName": "workspace", "filePath": "codbex-payments.model", @@ -240,7 +282,6 @@ "role": "" } }, - "roles": [], "models": [ { "properties": [ @@ -674,7 +715,9 @@ "dataName": "CUSTOMERPAYMENT", "dataQuery": "", "description": "Manage entity CustomerPayment", - "generateDefaultRoles": "false", + "feedPassword": "YWRtaW4=", + "feedUsername": "YWRtaW4=", + "generateDefaultRoles": "true", "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "importsCode": "import { NumberGeneratorService } from \"/codbex-number-generator/service/generator\";", @@ -689,6 +732,8 @@ "perspectiveName": "CustomerPayment", "perspectiveOrder": "10", "perspectiveRole": "", + "roleRead": "codbex-payments.CustomerPayment.CustomerPaymentReadOnly", + "roleWrite": "codbex-payments.CustomerPayment.CustomerPaymentFullAccess", "title": "CustomerPayment", "tooltip": "CustomerPayment", "type": "PRIMARY", @@ -1477,7 +1522,9 @@ "dataName": "SUPPLIERPAYMENT", "dataQuery": "", "description": "Manage entity SupplierPayment", - "generateDefaultRoles": "false", + "feedPassword": "YWRtaW4=", + "feedUsername": "YWRtaW4=", + "generateDefaultRoles": "true", "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "importsCode": "import { NumberGeneratorService } from \"/codbex-number-generator/service/generator\";", @@ -1492,6 +1539,8 @@ "perspectiveName": "SupplierPayment", "perspectiveOrder": "20", "perspectiveRole": "", + "roleRead": "codbex-payments.SupplierPayment.SupplierPaymentReadOnly", + "roleWrite": "codbex-payments.SupplierPayment.SupplierPaymentFullAccess", "title": "SupplierPayment", "tooltip": "SupplierPayment", "type": "PRIMARY", @@ -2270,7 +2319,9 @@ "dataName": "EMPLOYEEPAYMENT", "dataQuery": "", "description": "Manage entity EmployeePayment", - "generateDefaultRoles": "false", + "feedPassword": "YWRtaW4=", + "feedUsername": "YWRtaW4=", + "generateDefaultRoles": "true", "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "importsCode": "import { NumberGeneratorService } from \"/codbex-number-generator/service/generator\";", @@ -2285,6 +2336,8 @@ "perspectiveName": "EmployeePayment", "perspectiveOrder": "30", "perspectiveRole": "", + "roleRead": "codbex-payments.EmployeePayment.EmployeePaymentReadOnly", + "roleWrite": "codbex-payments.EmployeePayment.EmployeePaymentFullAccess", "title": "EmployeePayment", "tooltip": "EmployeePayment", "type": "PRIMARY", @@ -3112,7 +3165,9 @@ "dataName": "PAYMENTRECORD", "dataQuery": "", "description": "Manage entity PaymentRecord", - "generateDefaultRoles": "false", + "feedPassword": "YWRtaW4=", + "feedUsername": "YWRtaW4=", + "generateDefaultRoles": "true", "generateReport": "true", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE_MASTER", @@ -3126,6 +3181,8 @@ "perspectiveName": "PaymentRecord", "perspectiveOrder": "40", "perspectiveRole": "", + "roleRead": "codbex-payments.PaymentRecord.PaymentRecordReadOnly", + "roleWrite": "codbex-payments.PaymentRecord.PaymentRecordFullAccess", "title": "PaymentRecord", "tooltip": "PaymentRecord", "type": "PRIMARY", @@ -4196,7 +4253,9 @@ "dataName": "PAYMENTRECORDDIRECTION", "dataQuery": "", "description": "Manage entity PaymentRecordDirection", - "generateDefaultRoles": "false", + "feedPassword": "YWRtaW4=", + "feedUsername": "YWRtaW4=", + "generateDefaultRoles": "true", "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE", @@ -4210,6 +4269,8 @@ "perspectiveName": "Settings", "perspectiveOrder": "999", "perspectiveRole": "", + "roleRead": "codbex-payments.Settings.PaymentRecordDirectionReadOnly", + "roleWrite": "codbex-payments.Settings.PaymentRecordDirectionFullAccess", "title": "PaymentRecordDirection", "tooltip": "PaymentRecordDirection", "type": "SETTING", @@ -4277,7 +4338,9 @@ "dataName": "PAYMENTSTATUS", "dataQuery": "", "description": "Manage entity PaymentStatus", - "generateDefaultRoles": "false", + "feedPassword": "YWRtaW4=", + "feedUsername": "YWRtaW4=", + "generateDefaultRoles": "true", "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE", @@ -4291,6 +4354,8 @@ "perspectiveName": "Settings", "perspectiveOrder": "999", "perspectiveRole": "", + "roleRead": "codbex-payments.Settings.PaymentStatusReadOnly", + "roleWrite": "codbex-payments.Settings.PaymentStatusFullAccess", "title": "PaymentStatus", "tooltip": "PaymentStatus", "type": "SETTING", @@ -4358,7 +4423,9 @@ "dataName": "PAYMENTTYPE", "dataQuery": "", "description": "Manage entity PaymentType", - "generateDefaultRoles": "false", + "feedPassword": "YWRtaW4=", + "feedUsername": "YWRtaW4=", + "generateDefaultRoles": "true", "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE", @@ -4372,6 +4439,8 @@ "perspectiveName": "Settings", "perspectiveOrder": "999", "perspectiveRole": "", + "roleRead": "codbex-payments.Settings.PaymentTypeReadOnly", + "roleWrite": "codbex-payments.Settings.PaymentTypeFullAccess", "title": "PaymentType", "tooltip": "PaymentType", "type": "SETTING", @@ -5003,7 +5072,9 @@ "dataName": "PAYMENTADJUSTMENT", "dataQuery": "", "description": "Manage entity PaymentAdjustment", - "generateDefaultRoles": "false", + "feedPassword": "YWRtaW4=", + "feedUsername": "YWRtaW4=", + "generateDefaultRoles": "true", "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE_MASTER", @@ -5017,6 +5088,8 @@ "perspectiveName": "PaymentAdjustment", "perspectiveOrder": "110", "perspectiveRole": "", + "roleRead": "codbex-payments.PaymentAdjustment.PaymentAdjustmentReadOnly", + "roleWrite": "codbex-payments.PaymentAdjustment.PaymentAdjustmentFullAccess", "title": "PaymentAdjustment", "tooltip": "PaymentAdjustment", "type": "PRIMARY", diff --git a/codbex-payments/codbex-payments.model b/codbex-payments/codbex-payments.model index 3d10c82..c1a4a70 100644 --- a/codbex-payments/codbex-payments.model +++ b/codbex-payments/codbex-payments.model @@ -250,7 +250,9 @@ "dataName": "CUSTOMERPAYMENT", "dataQuery": "", "description": "Manage entity CustomerPayment", - "generateDefaultRoles": "false", + "feedPassword": "YWRtaW4=", + "feedUsername": "YWRtaW4=", + "generateDefaultRoles": "true", "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "importsCode": "aW1wb3J0IHsgTnVtYmVyR2VuZXJhdG9yU2VydmljZSB9IGZyb20gIi9jb2RiZXgtbnVtYmVyLWdlbmVyYXRvci9zZXJ2aWNlL2dlbmVyYXRvciI7", @@ -265,6 +267,8 @@ "perspectiveName": "CustomerPayment", "perspectiveOrder": "10", "perspectiveRole": "", + "roleRead": "codbex-payments.CustomerPayment.CustomerPaymentReadOnly", + "roleWrite": "codbex-payments.CustomerPayment.CustomerPaymentFullAccess", "title": "CustomerPayment", "tooltip": "CustomerPayment", "type": "PRIMARY" @@ -499,7 +503,9 @@ "dataName": "SUPPLIERPAYMENT", "dataQuery": "", "description": "Manage entity SupplierPayment", - "generateDefaultRoles": "false", + "feedPassword": "YWRtaW4=", + "feedUsername": "YWRtaW4=", + "generateDefaultRoles": "true", "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "importsCode": "aW1wb3J0IHsgTnVtYmVyR2VuZXJhdG9yU2VydmljZSB9IGZyb20gIi9jb2RiZXgtbnVtYmVyLWdlbmVyYXRvci9zZXJ2aWNlL2dlbmVyYXRvciI7", @@ -514,6 +520,8 @@ "perspectiveName": "SupplierPayment", "perspectiveOrder": "20", "perspectiveRole": "", + "roleRead": "codbex-payments.SupplierPayment.SupplierPaymentReadOnly", + "roleWrite": "codbex-payments.SupplierPayment.SupplierPaymentFullAccess", "title": "SupplierPayment", "tooltip": "SupplierPayment", "type": "PRIMARY" @@ -730,7 +738,9 @@ "dataName": "EMPLOYEEPAYMENT", "dataQuery": "", "description": "Manage entity EmployeePayment", - "generateDefaultRoles": "false", + "feedPassword": "YWRtaW4=", + "feedUsername": "YWRtaW4=", + "generateDefaultRoles": "true", "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "importsCode": "aW1wb3J0IHsgTnVtYmVyR2VuZXJhdG9yU2VydmljZSB9IGZyb20gIi9jb2RiZXgtbnVtYmVyLWdlbmVyYXRvci9zZXJ2aWNlL2dlbmVyYXRvciI7", @@ -745,6 +755,8 @@ "perspectiveName": "EmployeePayment", "perspectiveOrder": "30", "perspectiveRole": "", + "roleRead": "codbex-payments.EmployeePayment.EmployeePaymentReadOnly", + "roleWrite": "codbex-payments.EmployeePayment.EmployeePaymentFullAccess", "title": "EmployeePayment", "tooltip": "EmployeePayment", "type": "PRIMARY" @@ -1009,7 +1021,9 @@ "dataName": "PAYMENTRECORD", "dataQuery": "", "description": "Manage entity PaymentRecord", - "generateDefaultRoles": "false", + "feedPassword": "YWRtaW4=", + "feedUsername": "YWRtaW4=", + "generateDefaultRoles": "true", "generateReport": "true", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE_MASTER", @@ -1023,6 +1037,8 @@ "perspectiveName": "PaymentRecord", "perspectiveOrder": "40", "perspectiveRole": "", + "roleRead": "codbex-payments.PaymentRecord.PaymentRecordReadOnly", + "roleWrite": "codbex-payments.PaymentRecord.PaymentRecordFullAccess", "title": "PaymentRecord", "tooltip": "PaymentRecord", "type": "PRIMARY" @@ -1399,7 +1415,9 @@ "dataName": "PAYMENTRECORDDIRECTION", "dataQuery": "", "description": "Manage entity PaymentRecordDirection", - "generateDefaultRoles": "false", + "feedPassword": "YWRtaW4=", + "feedUsername": "YWRtaW4=", + "generateDefaultRoles": "true", "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE", @@ -1413,6 +1431,8 @@ "perspectiveName": "Settings", "perspectiveOrder": "999", "perspectiveRole": "", + "roleRead": "codbex-payments.Settings.PaymentRecordDirectionReadOnly", + "roleWrite": "codbex-payments.Settings.PaymentRecordDirectionFullAccess", "title": "PaymentRecordDirection", "tooltip": "PaymentRecordDirection", "type": "SETTING" @@ -1452,7 +1472,9 @@ "dataName": "PAYMENTSTATUS", "dataQuery": "", "description": "Manage entity PaymentStatus", - "generateDefaultRoles": "false", + "feedPassword": "YWRtaW4=", + "feedUsername": "YWRtaW4=", + "generateDefaultRoles": "true", "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE", @@ -1466,6 +1488,8 @@ "perspectiveName": "Settings", "perspectiveOrder": "999", "perspectiveRole": "", + "roleRead": "codbex-payments.Settings.PaymentStatusReadOnly", + "roleWrite": "codbex-payments.Settings.PaymentStatusFullAccess", "title": "PaymentStatus", "tooltip": "PaymentStatus", "type": "SETTING" @@ -1505,7 +1529,9 @@ "dataName": "PAYMENTTYPE", "dataQuery": "", "description": "Manage entity PaymentType", - "generateDefaultRoles": "false", + "feedPassword": "YWRtaW4=", + "feedUsername": "YWRtaW4=", + "generateDefaultRoles": "true", "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE", @@ -1519,6 +1545,8 @@ "perspectiveName": "Settings", "perspectiveOrder": "999", "perspectiveRole": "", + "roleRead": "codbex-payments.Settings.PaymentTypeReadOnly", + "roleWrite": "codbex-payments.Settings.PaymentTypeFullAccess", "title": "PaymentType", "tooltip": "PaymentType", "type": "SETTING" @@ -1893,7 +1921,9 @@ "dataName": "PAYMENTADJUSTMENT", "dataQuery": "", "description": "Manage entity PaymentAdjustment", - "generateDefaultRoles": "false", + "feedPassword": "YWRtaW4=", + "feedUsername": "YWRtaW4=", + "generateDefaultRoles": "true", "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE_MASTER", @@ -1907,6 +1937,8 @@ "perspectiveName": "PaymentAdjustment", "perspectiveOrder": "110", "perspectiveRole": "", + "roleRead": "codbex-payments.PaymentAdjustment.PaymentAdjustmentReadOnly", + "roleWrite": "codbex-payments.PaymentAdjustment.PaymentAdjustmentFullAccess", "title": "PaymentAdjustment", "tooltip": "PaymentAdjustment", "type": "PRIMARY" diff --git a/codbex-payments/gen/codbex-payments/api/CustomerPayment/CustomerPaymentService.ts b/codbex-payments/gen/codbex-payments/api/CustomerPayment/CustomerPaymentService.ts index ab09e08..32abd1f 100644 --- a/codbex-payments/gen/codbex-payments/api/CustomerPayment/CustomerPaymentService.ts +++ b/codbex-payments/gen/codbex-payments/api/CustomerPayment/CustomerPaymentService.ts @@ -1,6 +1,8 @@ import { Controller, Get, Post, Put, Delete, response } from "sdk/http" import { Extensions } from "sdk/extensions" import { CustomerPaymentRepository, CustomerPaymentEntityOptions } from "../../dao/CustomerPayment/CustomerPaymentRepository"; +import { user } from "sdk/security" +import { ForbiddenError } from "../utils/ForbiddenError"; import { ValidationError } from "../utils/ValidationError"; import { HttpUtils } from "../utils/HttpUtils"; // custom imports @@ -16,6 +18,7 @@ class CustomerPaymentService { @Get("/") public getAll(_: any, ctx: any) { try { + this.checkPermissions("read"); const options: CustomerPaymentEntityOptions = { $limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : undefined, $offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : undefined @@ -30,6 +33,7 @@ class CustomerPaymentService { @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-payments/gen/codbex-payments/api/CustomerPayment/CustomerPaymentService.ts/" + entity.Id); @@ -43,6 +47,7 @@ class CustomerPaymentService { @Get("/count") public count() { try { + this.checkPermissions("read"); return this.repository.count(); } catch (error: any) { this.handleError(error); @@ -52,6 +57,7 @@ class CustomerPaymentService { @Post("/count") public countWithFilter(filter: any) { try { + this.checkPermissions("read"); return this.repository.count(filter); } catch (error: any) { this.handleError(error); @@ -61,6 +67,7 @@ class CustomerPaymentService { @Post("/search") public search(filter: any) { try { + this.checkPermissions("read"); return this.repository.findAll(filter); } catch (error: any) { this.handleError(error); @@ -70,6 +77,7 @@ class CustomerPaymentService { @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) { @@ -85,6 +93,7 @@ class CustomerPaymentService { @Put("/:id") public update(entity: any, ctx: any) { try { + this.checkPermissions("write"); entity.Id = ctx.pathParameters.id; this.validateEntity(entity); this.repository.update(entity); @@ -97,6 +106,7 @@ class CustomerPaymentService { @Delete("/:id") public deleteById(_: any, ctx: any) { try { + this.checkPermissions("write"); const id = ctx.pathParameters.id; const entity = this.repository.findById(id); if (entity) { @@ -120,6 +130,15 @@ class CustomerPaymentService { } } + private checkPermissions(operationType: string) { + if (operationType === "read" && !(user.isInRole("codbex-payments.CustomerPayment.CustomerPaymentReadOnly") || user.isInRole("codbex-payments.CustomerPayment.CustomerPaymentFullAccess"))) { + throw new ForbiddenError(); + } + if (operationType === "write" && !user.isInRole("codbex-payments.CustomerPayment.CustomerPaymentFullAccess")) { + throw new ForbiddenError(); + } + } + private validateEntity(entity: any): void { if (entity.Customer === null || entity.Customer === undefined) { throw new ValidationError(`The 'Customer' property is required, provide a valid value`); diff --git a/codbex-payments/gen/codbex-payments/api/EmployeePayment/EmployeePaymentService.ts b/codbex-payments/gen/codbex-payments/api/EmployeePayment/EmployeePaymentService.ts index 7e57221..67c7522 100644 --- a/codbex-payments/gen/codbex-payments/api/EmployeePayment/EmployeePaymentService.ts +++ b/codbex-payments/gen/codbex-payments/api/EmployeePayment/EmployeePaymentService.ts @@ -1,6 +1,8 @@ import { Controller, Get, Post, Put, Delete, response } from "sdk/http" import { Extensions } from "sdk/extensions" import { EmployeePaymentRepository, EmployeePaymentEntityOptions } from "../../dao/EmployeePayment/EmployeePaymentRepository"; +import { user } from "sdk/security" +import { ForbiddenError } from "../utils/ForbiddenError"; import { ValidationError } from "../utils/ValidationError"; import { HttpUtils } from "../utils/HttpUtils"; // custom imports @@ -16,6 +18,7 @@ class EmployeePaymentService { @Get("/") public getAll(_: any, ctx: any) { try { + this.checkPermissions("read"); const options: EmployeePaymentEntityOptions = { $limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : undefined, $offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : undefined @@ -30,6 +33,7 @@ class EmployeePaymentService { @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-payments/gen/codbex-payments/api/EmployeePayment/EmployeePaymentService.ts/" + entity.Id); @@ -43,6 +47,7 @@ class EmployeePaymentService { @Get("/count") public count() { try { + this.checkPermissions("read"); return this.repository.count(); } catch (error: any) { this.handleError(error); @@ -52,6 +57,7 @@ class EmployeePaymentService { @Post("/count") public countWithFilter(filter: any) { try { + this.checkPermissions("read"); return this.repository.count(filter); } catch (error: any) { this.handleError(error); @@ -61,6 +67,7 @@ class EmployeePaymentService { @Post("/search") public search(filter: any) { try { + this.checkPermissions("read"); return this.repository.findAll(filter); } catch (error: any) { this.handleError(error); @@ -70,6 +77,7 @@ class EmployeePaymentService { @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) { @@ -85,6 +93,7 @@ class EmployeePaymentService { @Put("/:id") public update(entity: any, ctx: any) { try { + this.checkPermissions("write"); entity.Id = ctx.pathParameters.id; this.validateEntity(entity); this.repository.update(entity); @@ -97,6 +106,7 @@ class EmployeePaymentService { @Delete("/:id") public deleteById(_: any, ctx: any) { try { + this.checkPermissions("write"); const id = ctx.pathParameters.id; const entity = this.repository.findById(id); if (entity) { @@ -120,6 +130,15 @@ class EmployeePaymentService { } } + private checkPermissions(operationType: string) { + if (operationType === "read" && !(user.isInRole("codbex-payments.EmployeePayment.EmployeePaymentReadOnly") || user.isInRole("codbex-payments.EmployeePayment.EmployeePaymentFullAccess"))) { + throw new ForbiddenError(); + } + if (operationType === "write" && !user.isInRole("codbex-payments.EmployeePayment.EmployeePaymentFullAccess")) { + throw new ForbiddenError(); + } + } + private validateEntity(entity: any): void { if (entity.Date === null || entity.Date === undefined) { throw new ValidationError(`The 'Date' property is required, provide a valid value`); diff --git a/codbex-payments/gen/codbex-payments/api/PaymentAdjustment/PaymentAdjustmentService.ts b/codbex-payments/gen/codbex-payments/api/PaymentAdjustment/PaymentAdjustmentService.ts index f3c6c55..5353541 100644 --- a/codbex-payments/gen/codbex-payments/api/PaymentAdjustment/PaymentAdjustmentService.ts +++ b/codbex-payments/gen/codbex-payments/api/PaymentAdjustment/PaymentAdjustmentService.ts @@ -1,6 +1,8 @@ import { Controller, Get, Post, Put, Delete, response } from "sdk/http" import { Extensions } from "sdk/extensions" import { PaymentAdjustmentRepository, PaymentAdjustmentEntityOptions } from "../../dao/PaymentAdjustment/PaymentAdjustmentRepository"; +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 PaymentAdjustmentService { @Get("/") public getAll(_: any, ctx: any) { try { + this.checkPermissions("read"); const options: PaymentAdjustmentEntityOptions = { $limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : undefined, $offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : undefined @@ -28,6 +31,7 @@ class PaymentAdjustmentService { @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-payments/gen/codbex-payments/api/PaymentAdjustment/PaymentAdjustmentService.ts/" + entity.Id); @@ -41,6 +45,7 @@ class PaymentAdjustmentService { @Get("/count") public count() { try { + this.checkPermissions("read"); return this.repository.count(); } catch (error: any) { this.handleError(error); @@ -50,6 +55,7 @@ class PaymentAdjustmentService { @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 PaymentAdjustmentService { @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 PaymentAdjustmentService { @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 PaymentAdjustmentService { @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 PaymentAdjustmentService { @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 PaymentAdjustmentService { } } + private checkPermissions(operationType: string) { + if (operationType === "read" && !(user.isInRole("codbex-payments.PaymentAdjustment.PaymentAdjustmentReadOnly") || user.isInRole("codbex-payments.PaymentAdjustment.PaymentAdjustmentFullAccess"))) { + throw new ForbiddenError(); + } + if (operationType === "write" && !user.isInRole("codbex-payments.PaymentAdjustment.PaymentAdjustmentFullAccess")) { + throw new ForbiddenError(); + } + } + private validateEntity(entity: any): void { if (entity.Date === null || entity.Date === undefined) { throw new ValidationError(`The 'Date' property is required, provide a valid value`); diff --git a/codbex-payments/gen/codbex-payments/api/PaymentRecord/PaymentRecordService.ts b/codbex-payments/gen/codbex-payments/api/PaymentRecord/PaymentRecordService.ts index 4aa092a..674be07 100644 --- a/codbex-payments/gen/codbex-payments/api/PaymentRecord/PaymentRecordService.ts +++ b/codbex-payments/gen/codbex-payments/api/PaymentRecord/PaymentRecordService.ts @@ -1,6 +1,8 @@ import { Controller, Get, Post, Put, Delete, response } from "sdk/http" import { Extensions } from "sdk/extensions" import { PaymentRecordRepository, PaymentRecordEntityOptions } from "../../dao/PaymentRecord/PaymentRecordRepository"; +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 PaymentRecordService { @Get("/") public getAll(_: any, ctx: any) { try { + this.checkPermissions("read"); const options: PaymentRecordEntityOptions = { $limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : undefined, $offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : undefined @@ -28,6 +31,7 @@ class PaymentRecordService { @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-payments/gen/codbex-payments/api/PaymentRecord/PaymentRecordService.ts/" + entity.Id); @@ -41,6 +45,7 @@ class PaymentRecordService { @Get("/count") public count() { try { + this.checkPermissions("read"); return this.repository.count(); } catch (error: any) { this.handleError(error); @@ -50,6 +55,7 @@ class PaymentRecordService { @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 PaymentRecordService { @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 PaymentRecordService { @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 PaymentRecordService { @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 PaymentRecordService { @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 PaymentRecordService { } } + private checkPermissions(operationType: string) { + if (operationType === "read" && !(user.isInRole("codbex-payments.PaymentRecord.PaymentRecordReadOnly") || user.isInRole("codbex-payments.PaymentRecord.PaymentRecordFullAccess"))) { + throw new ForbiddenError(); + } + if (operationType === "write" && !user.isInRole("codbex-payments.PaymentRecord.PaymentRecordFullAccess")) { + throw new ForbiddenError(); + } + } + private validateEntity(entity: any): void { if (entity.Date === null || entity.Date === undefined) { throw new ValidationError(`The 'Date' property is required, provide a valid value`); diff --git a/codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionService.ts b/codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionService.ts index ad4a65c..0ea21f7 100644 --- a/codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionService.ts +++ b/codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionService.ts @@ -1,6 +1,8 @@ import { Controller, Get, Post, Put, Delete, response } from "sdk/http" import { Extensions } from "sdk/extensions" import { PaymentRecordDirectionRepository, PaymentRecordDirectionEntityOptions } from "../../dao/Settings/PaymentRecordDirectionRepository"; +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 PaymentRecordDirectionService { @Get("/") public getAll(_: any, ctx: any) { try { + this.checkPermissions("read"); const options: PaymentRecordDirectionEntityOptions = { $limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : undefined, $offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : undefined @@ -28,6 +31,7 @@ class PaymentRecordDirectionService { @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-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionService.ts/" + entity.Id); @@ -41,6 +45,7 @@ class PaymentRecordDirectionService { @Get("/count") public count() { try { + this.checkPermissions("read"); return this.repository.count(); } catch (error: any) { this.handleError(error); @@ -50,6 +55,7 @@ class PaymentRecordDirectionService { @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 PaymentRecordDirectionService { @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 PaymentRecordDirectionService { @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 PaymentRecordDirectionService { @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 PaymentRecordDirectionService { @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 PaymentRecordDirectionService { } } + private checkPermissions(operationType: string) { + if (operationType === "read" && !(user.isInRole("codbex-payments.Settings.PaymentRecordDirectionReadOnly") || user.isInRole("codbex-payments.Settings.PaymentRecordDirectionFullAccess"))) { + throw new ForbiddenError(); + } + if (operationType === "write" && !user.isInRole("codbex-payments.Settings.PaymentRecordDirectionFullAccess")) { + 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-payments/gen/codbex-payments/api/Settings/PaymentStatusService.ts b/codbex-payments/gen/codbex-payments/api/Settings/PaymentStatusService.ts index f34dc14..cfdd94c 100644 --- a/codbex-payments/gen/codbex-payments/api/Settings/PaymentStatusService.ts +++ b/codbex-payments/gen/codbex-payments/api/Settings/PaymentStatusService.ts @@ -1,6 +1,8 @@ import { Controller, Get, Post, Put, Delete, response } from "sdk/http" import { Extensions } from "sdk/extensions" import { PaymentStatusRepository, PaymentStatusEntityOptions } from "../../dao/Settings/PaymentStatusRepository"; +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 PaymentStatusService { @Get("/") public getAll(_: any, ctx: any) { try { + this.checkPermissions("read"); const options: PaymentStatusEntityOptions = { $limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : undefined, $offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : undefined @@ -28,6 +31,7 @@ class PaymentStatusService { @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-payments/gen/codbex-payments/api/Settings/PaymentStatusService.ts/" + entity.Id); @@ -41,6 +45,7 @@ class PaymentStatusService { @Get("/count") public count() { try { + this.checkPermissions("read"); return this.repository.count(); } catch (error: any) { this.handleError(error); @@ -50,6 +55,7 @@ class PaymentStatusService { @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 PaymentStatusService { @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 PaymentStatusService { @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 PaymentStatusService { @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 PaymentStatusService { @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 PaymentStatusService { } } + private checkPermissions(operationType: string) { + if (operationType === "read" && !(user.isInRole("codbex-payments.Settings.PaymentStatusReadOnly") || user.isInRole("codbex-payments.Settings.PaymentStatusFullAccess"))) { + throw new ForbiddenError(); + } + if (operationType === "write" && !user.isInRole("codbex-payments.Settings.PaymentStatusFullAccess")) { + 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-payments/gen/codbex-payments/api/Settings/PaymentTypeService.ts b/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeService.ts index e28e92b..777f06b 100644 --- a/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeService.ts +++ b/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeService.ts @@ -1,6 +1,8 @@ import { Controller, Get, Post, Put, Delete, response } from "sdk/http" import { Extensions } from "sdk/extensions" import { PaymentTypeRepository, PaymentTypeEntityOptions } from "../../dao/Settings/PaymentTypeRepository"; +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 PaymentTypeService { @Get("/") public getAll(_: any, ctx: any) { try { + this.checkPermissions("read"); const options: PaymentTypeEntityOptions = { $limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : undefined, $offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : undefined @@ -28,6 +31,7 @@ class PaymentTypeService { @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-payments/gen/codbex-payments/api/Settings/PaymentTypeService.ts/" + entity.Id); @@ -41,6 +45,7 @@ class PaymentTypeService { @Get("/count") public count() { try { + this.checkPermissions("read"); return this.repository.count(); } catch (error: any) { this.handleError(error); @@ -50,6 +55,7 @@ class PaymentTypeService { @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 PaymentTypeService { @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 PaymentTypeService { @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 PaymentTypeService { @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 PaymentTypeService { @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 PaymentTypeService { } } + private checkPermissions(operationType: string) { + if (operationType === "read" && !(user.isInRole("codbex-payments.Settings.PaymentTypeReadOnly") || user.isInRole("codbex-payments.Settings.PaymentTypeFullAccess"))) { + throw new ForbiddenError(); + } + if (operationType === "write" && !user.isInRole("codbex-payments.Settings.PaymentTypeFullAccess")) { + 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-payments/gen/codbex-payments/api/SupplierPayment/SupplierPaymentService.ts b/codbex-payments/gen/codbex-payments/api/SupplierPayment/SupplierPaymentService.ts index dcefdd8..adeaaf2 100644 --- a/codbex-payments/gen/codbex-payments/api/SupplierPayment/SupplierPaymentService.ts +++ b/codbex-payments/gen/codbex-payments/api/SupplierPayment/SupplierPaymentService.ts @@ -1,6 +1,8 @@ import { Controller, Get, Post, Put, Delete, response } from "sdk/http" import { Extensions } from "sdk/extensions" import { SupplierPaymentRepository, SupplierPaymentEntityOptions } from "../../dao/SupplierPayment/SupplierPaymentRepository"; +import { user } from "sdk/security" +import { ForbiddenError } from "../utils/ForbiddenError"; import { ValidationError } from "../utils/ValidationError"; import { HttpUtils } from "../utils/HttpUtils"; // custom imports @@ -16,6 +18,7 @@ class SupplierPaymentService { @Get("/") public getAll(_: any, ctx: any) { try { + this.checkPermissions("read"); const options: SupplierPaymentEntityOptions = { $limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : undefined, $offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : undefined @@ -30,6 +33,7 @@ class SupplierPaymentService { @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-payments/gen/codbex-payments/api/SupplierPayment/SupplierPaymentService.ts/" + entity.Id); @@ -43,6 +47,7 @@ class SupplierPaymentService { @Get("/count") public count() { try { + this.checkPermissions("read"); return this.repository.count(); } catch (error: any) { this.handleError(error); @@ -52,6 +57,7 @@ class SupplierPaymentService { @Post("/count") public countWithFilter(filter: any) { try { + this.checkPermissions("read"); return this.repository.count(filter); } catch (error: any) { this.handleError(error); @@ -61,6 +67,7 @@ class SupplierPaymentService { @Post("/search") public search(filter: any) { try { + this.checkPermissions("read"); return this.repository.findAll(filter); } catch (error: any) { this.handleError(error); @@ -70,6 +77,7 @@ class SupplierPaymentService { @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) { @@ -85,6 +93,7 @@ class SupplierPaymentService { @Put("/:id") public update(entity: any, ctx: any) { try { + this.checkPermissions("write"); entity.Id = ctx.pathParameters.id; this.validateEntity(entity); this.repository.update(entity); @@ -97,6 +106,7 @@ class SupplierPaymentService { @Delete("/:id") public deleteById(_: any, ctx: any) { try { + this.checkPermissions("write"); const id = ctx.pathParameters.id; const entity = this.repository.findById(id); if (entity) { @@ -120,6 +130,15 @@ class SupplierPaymentService { } } + private checkPermissions(operationType: string) { + if (operationType === "read" && !(user.isInRole("codbex-payments.SupplierPayment.SupplierPaymentReadOnly") || user.isInRole("codbex-payments.SupplierPayment.SupplierPaymentFullAccess"))) { + throw new ForbiddenError(); + } + if (operationType === "write" && !user.isInRole("codbex-payments.SupplierPayment.SupplierPaymentFullAccess")) { + throw new ForbiddenError(); + } + } + private validateEntity(entity: any): void { if (entity.Date === null || entity.Date === undefined) { throw new ValidationError(`The 'Date' property is required, provide a valid value`); diff --git a/codbex-payments/gen/codbex-payments/index.html b/codbex-payments/gen/codbex-payments/index.html index 3cb9a65..96c995a 100644 --- a/codbex-payments/gen/codbex-payments/index.html +++ b/codbex-payments/gen/codbex-payments/index.html @@ -49,7 +49,7 @@ .constant('extensionPoint', { perspectives: "codbex-payments", views: "codbex-payments-view", - dialogWindows: "codbex-payments-dialog-window" + dialogWindows: "dialog-window" }) .config(["messageHubProvider", function (messageHubProvider) { messageHubProvider.eventIdPrefix = 'codbex-payments.launchpad.Home'; diff --git a/codbex-payments/gen/codbex-payments/roles/default-roles.roles b/codbex-payments/gen/codbex-payments/roles/default-roles.roles index 32960f8..65d5912 100644 --- a/codbex-payments/gen/codbex-payments/roles/default-roles.roles +++ b/codbex-payments/gen/codbex-payments/roles/default-roles.roles @@ -1,2 +1,66 @@ [ + { + "name": "codbex-payments.CustomerPayment.CustomerPaymentReadOnly", + "description": "A role that grants read only permission for CustomerPayment." + }, + { + "name": "codbex-payments.CustomerPayment.CustomerPaymentFullAccess", + "description": "A role that grants full access for CustomerPayment." + }, + { + "name": "codbex-payments.SupplierPayment.SupplierPaymentReadOnly", + "description": "A role that grants read only permission for SupplierPayment." + }, + { + "name": "codbex-payments.SupplierPayment.SupplierPaymentFullAccess", + "description": "A role that grants full access for SupplierPayment." + }, + { + "name": "codbex-payments.EmployeePayment.EmployeePaymentReadOnly", + "description": "A role that grants read only permission for EmployeePayment." + }, + { + "name": "codbex-payments.EmployeePayment.EmployeePaymentFullAccess", + "description": "A role that grants full access for EmployeePayment." + }, + { + "name": "codbex-payments.PaymentRecord.PaymentRecordReadOnly", + "description": "A role that grants read only permission for PaymentRecord." + }, + { + "name": "codbex-payments.PaymentRecord.PaymentRecordFullAccess", + "description": "A role that grants full access for PaymentRecord." + }, + { + "name": "codbex-payments.Settings.PaymentRecordDirectionReadOnly", + "description": "A role that grants read only permission for PaymentRecordDirection." + }, + { + "name": "codbex-payments.Settings.PaymentRecordDirectionFullAccess", + "description": "A role that grants full access for PaymentRecordDirection." + }, + { + "name": "codbex-payments.Settings.PaymentStatusReadOnly", + "description": "A role that grants read only permission for PaymentStatus." + }, + { + "name": "codbex-payments.Settings.PaymentStatusFullAccess", + "description": "A role that grants full access for PaymentStatus." + }, + { + "name": "codbex-payments.Settings.PaymentTypeReadOnly", + "description": "A role that grants read only permission for PaymentType." + }, + { + "name": "codbex-payments.Settings.PaymentTypeFullAccess", + "description": "A role that grants full access for PaymentType." + }, + { + "name": "codbex-payments.PaymentAdjustment.PaymentAdjustmentReadOnly", + "description": "A role that grants read only permission for PaymentAdjustment." + }, + { + "name": "codbex-payments.PaymentAdjustment.PaymentAdjustmentFullAccess", + "description": "A role that grants full access for PaymentAdjustment." + } ] \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-filter/view.extension b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-filter/view.extension index a72a3fa..118568f 100644 --- a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-filter/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-filter/view.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-filter/view.js", - "extensionPoint": "codbex-payments-dialog-window", - "description": "codbex-payments - Application Dialog Window" + "extensionPoint": "dialog-window", + "description": "codbex-payments - Application Dialog Window", + "role": "codbex-payments.CustomerPayment.CustomerPaymentReadOnly,codbex-payments.CustomerPayment.CustomerPaymentFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-window/view.extension b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-window/view.extension index 684d030..09a790e 100644 --- a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-window/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-window/view.extension @@ -1,5 +1,6 @@ { "module": "{{projectName}}/gen/{{genFolderName}}/ui/{{perspectiveName}}/{{name}}/dialog-window/view.js", "extensionPoint": "dialog-window", - "description": "{{projectName}} - Application Dialog Window" + "description": "{{projectName}} - Application Dialog Window", + "role": "codbex-payments.CustomerPayment.CustomerPaymentReadOnly,codbex-payments.CustomerPayment.CustomerPaymentFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-window/view.js b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-window/view.js index 0d908da..3270554 100644 --- a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-window/view.js +++ b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-window/view.js @@ -8,6 +8,9 @@ const viewData = { label: "CustomerPayment", link: "/services/web/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-window/index.html", perspectiveName: "CustomerPayment", + roles: [ + "codbex-payments.CustomerPayment.CustomerPaymentReadOnly", + ] }; if (typeof exports !== 'undefined') { diff --git a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/main-details/view.extension b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/main-details/view.extension index 22e52f3..1a2d1a5 100644 --- a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/main-details/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/main-details/view.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/main-details/view.js", "extensionPoint": "codbex-payments-view", - "description": "codbex-payments - Application View - Main Details" + "description": "codbex-payments - Application View - Main Details", + "role": "codbex-payments.CustomerPayment.CustomerPaymentReadOnly,codbex-payments.CustomerPayment.CustomerPaymentFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/tile-portal.extension b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/tile-portal.extension index b80bba2..104ecc7 100644 --- a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/tile-portal.extension +++ b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/tile-portal.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/tile.js", "extensionPoint": "portal-tile", - "description": "codbex-payments - Application Tile" + "description": "codbex-payments - Application Tile", + "role": "codbex-payments.CustomerPayment.CustomerPaymentReadOnly,codbex-payments.CustomerPayment.CustomerPaymentFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/tile.extension b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/tile.extension index f8ca47f..ca5a1a3 100644 --- a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/tile.extension +++ b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/tile.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/tile.js", "extensionPoint": "codbex-payments-tile", - "description": "codbex-payments - Application Tile" + "description": "codbex-payments - Application Tile", + "role": "codbex-payments.CustomerPayment.CustomerPaymentReadOnly,codbex-payments.CustomerPayment.CustomerPaymentFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/view.extension b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/view.extension index a950f3a..6071b66 100644 --- a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/view.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/view.js", "extensionPoint": "codbex-payments-view", - "description": "codbex-payments - Application View" + "description": "codbex-payments - Application View", + "role": "codbex-payments.CustomerPayment.CustomerPaymentReadOnly,codbex-payments.CustomerPayment.CustomerPaymentFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/perspective.js b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/perspective.js index 7444182..8738afb 100644 --- a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/perspective.js +++ b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/perspective.js @@ -7,8 +7,8 @@ const perspectiveData = { id: 'CustomerPayment', name: 'CustomerPayment', link: '/services/web/codbex-payments/gen/codbex-payments/ui/CustomerPayment/index.html', - order: 10, - icon: '/services/web/resources/unicons/usd-square.svg', + order: '10', + icon: '/services/web/resources/unicons/usd-square.svg' }; if (typeof exports !== 'undefined') { diff --git a/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/dialog-filter/view.extension b/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/dialog-filter/view.extension index 8f465f7..cac4c96 100644 --- a/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/dialog-filter/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/dialog-filter/view.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/dialog-filter/view.js", - "extensionPoint": "codbex-payments-dialog-window", - "description": "codbex-payments - Application Dialog Window" + "extensionPoint": "dialog-window", + "description": "codbex-payments - Application Dialog Window", + "role": "codbex-payments.EmployeePayment.EmployeePaymentReadOnly,codbex-payments.EmployeePayment.EmployeePaymentFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/dialog-window/view.extension b/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/dialog-window/view.extension index 684d030..d763f11 100644 --- a/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/dialog-window/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/dialog-window/view.extension @@ -1,5 +1,6 @@ { "module": "{{projectName}}/gen/{{genFolderName}}/ui/{{perspectiveName}}/{{name}}/dialog-window/view.js", "extensionPoint": "dialog-window", - "description": "{{projectName}} - Application Dialog Window" + "description": "{{projectName}} - Application Dialog Window", + "role": "codbex-payments.EmployeePayment.EmployeePaymentReadOnly,codbex-payments.EmployeePayment.EmployeePaymentFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/dialog-window/view.js b/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/dialog-window/view.js index 2bffcb1..475db54 100644 --- a/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/dialog-window/view.js +++ b/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/dialog-window/view.js @@ -8,6 +8,9 @@ const viewData = { label: "EmployeePayment", link: "/services/web/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/dialog-window/index.html", perspectiveName: "EmployeePayment", + roles: [ + "codbex-payments.EmployeePayment.EmployeePaymentReadOnly", + ] }; if (typeof exports !== 'undefined') { diff --git a/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/main-details/view.extension b/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/main-details/view.extension index 64ee369..7712a64 100644 --- a/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/main-details/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/main-details/view.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/main-details/view.js", "extensionPoint": "codbex-payments-view", - "description": "codbex-payments - Application View - Main Details" + "description": "codbex-payments - Application View - Main Details", + "role": "codbex-payments.EmployeePayment.EmployeePaymentReadOnly,codbex-payments.EmployeePayment.EmployeePaymentFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/tile-portal.extension b/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/tile-portal.extension index d5b629d..1c86a3c 100644 --- a/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/tile-portal.extension +++ b/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/tile-portal.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/tile.js", "extensionPoint": "portal-tile", - "description": "codbex-payments - Application Tile" + "description": "codbex-payments - Application Tile", + "role": "codbex-payments.EmployeePayment.EmployeePaymentReadOnly,codbex-payments.EmployeePayment.EmployeePaymentFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/tile.extension b/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/tile.extension index 733314c..ab6f811 100644 --- a/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/tile.extension +++ b/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/tile.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/tile.js", "extensionPoint": "codbex-payments-tile", - "description": "codbex-payments - Application Tile" + "description": "codbex-payments - Application Tile", + "role": "codbex-payments.EmployeePayment.EmployeePaymentReadOnly,codbex-payments.EmployeePayment.EmployeePaymentFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/view.extension b/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/view.extension index f4d195c..18978e0 100644 --- a/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/view.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/view.js", "extensionPoint": "codbex-payments-view", - "description": "codbex-payments - Application View" + "description": "codbex-payments - Application View", + "role": "codbex-payments.EmployeePayment.EmployeePaymentReadOnly,codbex-payments.EmployeePayment.EmployeePaymentFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/EmployeePayment/perspective.js b/codbex-payments/gen/codbex-payments/ui/EmployeePayment/perspective.js index 4966d49..f8045c0 100644 --- a/codbex-payments/gen/codbex-payments/ui/EmployeePayment/perspective.js +++ b/codbex-payments/gen/codbex-payments/ui/EmployeePayment/perspective.js @@ -7,8 +7,8 @@ const perspectiveData = { id: 'EmployeePayment', name: 'EmployeePayment', link: '/services/web/codbex-payments/gen/codbex-payments/ui/EmployeePayment/index.html', - order: 30, - icon: '/services/web/resources/unicons/folder-check.svg', + order: '30', + icon: '/services/web/resources/unicons/folder-check.svg' }; if (typeof exports !== 'undefined') { diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/dialog-filter/view.extension b/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/dialog-filter/view.extension index 6f0c149..211ae9c 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/dialog-filter/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/dialog-filter/view.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/dialog-filter/view.js", - "extensionPoint": "codbex-payments-dialog-window", - "description": "codbex-payments - Application Dialog Window" + "extensionPoint": "dialog-window", + "description": "codbex-payments - Application Dialog Window", + "role": "codbex-payments.PaymentAdjustment.PaymentAdjustmentReadOnly,codbex-payments.PaymentAdjustment.PaymentAdjustmentFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/dialog-window/view.extension b/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/dialog-window/view.extension index 684d030..7dcec2b 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/dialog-window/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/dialog-window/view.extension @@ -1,5 +1,6 @@ { "module": "{{projectName}}/gen/{{genFolderName}}/ui/{{perspectiveName}}/{{name}}/dialog-window/view.js", "extensionPoint": "dialog-window", - "description": "{{projectName}} - Application Dialog Window" + "description": "{{projectName}} - Application Dialog Window", + "role": "codbex-payments.PaymentAdjustment.PaymentAdjustmentReadOnly,codbex-payments.PaymentAdjustment.PaymentAdjustmentFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/dialog-window/view.js b/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/dialog-window/view.js index cb7eec7..0cb88ee 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/dialog-window/view.js +++ b/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/dialog-window/view.js @@ -8,6 +8,9 @@ const viewData = { label: "PaymentAdjustment", link: "/services/web/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/dialog-window/index.html", perspectiveName: "PaymentAdjustment", + roles: [ + "codbex-payments.PaymentAdjustment.PaymentAdjustmentReadOnly", + ] }; if (typeof exports !== 'undefined') { diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/main-details/view.extension b/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/main-details/view.extension index 37c1371..1fc6775 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/main-details/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/main-details/view.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/main-details/view.js", "extensionPoint": "codbex-payments-view", - "description": "codbex-payments - Application View - Main Details" + "description": "codbex-payments - Application View - Main Details", + "role": "codbex-payments.PaymentAdjustment.PaymentAdjustmentReadOnly,codbex-payments.PaymentAdjustment.PaymentAdjustmentFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/tile-portal.extension b/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/tile-portal.extension index cf2abb9..90d2f30 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/tile-portal.extension +++ b/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/tile-portal.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/tile.js", "extensionPoint": "portal-tile", - "description": "codbex-payments - Application Tile" + "description": "codbex-payments - Application Tile", + "role": "codbex-payments.PaymentAdjustment.PaymentAdjustmentReadOnly,codbex-payments.PaymentAdjustment.PaymentAdjustmentFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/tile.extension b/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/tile.extension index 2c61a1a..c3213cf 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/tile.extension +++ b/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/tile.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/tile.js", "extensionPoint": "codbex-payments-tile", - "description": "codbex-payments - Application Tile" + "description": "codbex-payments - Application Tile", + "role": "codbex-payments.PaymentAdjustment.PaymentAdjustmentReadOnly,codbex-payments.PaymentAdjustment.PaymentAdjustmentFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/view.extension b/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/view.extension index c3ebe4a..3a45e30 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/view.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/view.js", "extensionPoint": "codbex-payments-view", - "description": "codbex-payments - Application View" + "description": "codbex-payments - Application View", + "role": "codbex-payments.PaymentAdjustment.PaymentAdjustmentReadOnly,codbex-payments.PaymentAdjustment.PaymentAdjustmentFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/perspective.js b/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/perspective.js index 9d38cfa..eb1cfa2 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/perspective.js +++ b/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/perspective.js @@ -7,8 +7,8 @@ const perspectiveData = { id: 'PaymentAdjustment', name: 'PaymentAdjustment', link: '/services/web/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/index.html', - order: 110, - icon: '/services/web/resources/unicons/paypal.svg', + order: '110', + icon: '/services/web/resources/unicons/paypal.svg' }; if (typeof exports !== 'undefined') { diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-filter/view.extension b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-filter/view.extension index fb731f3..d55c0f6 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-filter/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-filter/view.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-filter/view.js", - "extensionPoint": "codbex-payments-dialog-window", - "description": "codbex-payments - Application Dialog Window" + "extensionPoint": "dialog-window", + "description": "codbex-payments - Application Dialog Window", + "role": "codbex-payments.PaymentRecord.PaymentRecordReadOnly,codbex-payments.PaymentRecord.PaymentRecordFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-window/view.extension b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-window/view.extension index 684d030..59566a9 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-window/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-window/view.extension @@ -1,5 +1,6 @@ { "module": "{{projectName}}/gen/{{genFolderName}}/ui/{{perspectiveName}}/{{name}}/dialog-window/view.js", "extensionPoint": "dialog-window", - "description": "{{projectName}} - Application Dialog Window" + "description": "{{projectName}} - Application Dialog Window", + "role": "codbex-payments.PaymentRecord.PaymentRecordReadOnly,codbex-payments.PaymentRecord.PaymentRecordFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-window/view.js b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-window/view.js index 267185d..daf7cb1 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-window/view.js +++ b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-window/view.js @@ -8,6 +8,9 @@ const viewData = { label: "PaymentRecord", link: "/services/web/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-window/index.html", perspectiveName: "PaymentRecord", + roles: [ + "codbex-payments.PaymentRecord.PaymentRecordReadOnly", + ] }; if (typeof exports !== 'undefined') { diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/main-details/view.extension b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/main-details/view.extension index 807e76e..aa16960 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/main-details/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/main-details/view.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/main-details/view.js", "extensionPoint": "codbex-payments-view", - "description": "codbex-payments - Application View - Main Details" + "description": "codbex-payments - Application View - Main Details", + "role": "codbex-payments.PaymentRecord.PaymentRecordReadOnly,codbex-payments.PaymentRecord.PaymentRecordFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/tile-portal.extension b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/tile-portal.extension index 41b7ee3..cc4420c 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/tile-portal.extension +++ b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/tile-portal.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/tile.js", "extensionPoint": "portal-tile", - "description": "codbex-payments - Application Tile" + "description": "codbex-payments - Application Tile", + "role": "codbex-payments.PaymentRecord.PaymentRecordReadOnly,codbex-payments.PaymentRecord.PaymentRecordFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/tile.extension b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/tile.extension index 4f9f9bd..24eb085 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/tile.extension +++ b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/tile.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/tile.js", "extensionPoint": "codbex-payments-tile", - "description": "codbex-payments - Application Tile" + "description": "codbex-payments - Application Tile", + "role": "codbex-payments.PaymentRecord.PaymentRecordReadOnly,codbex-payments.PaymentRecord.PaymentRecordFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/view.extension b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/view.extension index 7fd3d91..653d55e 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/view.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/view.js", "extensionPoint": "codbex-payments-view", - "description": "codbex-payments - Application View" + "description": "codbex-payments - Application View", + "role": "codbex-payments.PaymentRecord.PaymentRecordReadOnly,codbex-payments.PaymentRecord.PaymentRecordFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/perspective.js b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/perspective.js index b1547af..b8d3564 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/perspective.js +++ b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/perspective.js @@ -7,8 +7,8 @@ const perspectiveData = { id: 'PaymentRecord', name: 'PaymentRecord', link: '/services/web/codbex-payments/gen/codbex-payments/ui/PaymentRecord/index.html', - order: 40, - icon: '/services/web/resources/unicons/align-justify.svg', + order: '40', + icon: '/services/web/resources/unicons/align-justify.svg' }; if (typeof exports !== 'undefined') { diff --git a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-filter/view.extension b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-filter/view.extension index 00b007a..f7f146d 100644 --- a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-filter/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-filter/view.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-filter/view.js", "extensionPoint": "dialog-window", - "description": "codbex-payments - Application Dialog Window" + "description": "codbex-payments - Application Dialog Window", + "role": "codbex-payments.PaymentRecord.PaymentRecordReadOnly" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-filter/view.js b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-filter/view.js index db35157..b50d6ba 100644 --- a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-filter/view.js +++ b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-filter/view.js @@ -7,7 +7,7 @@ const viewData = { id: "PaymentRecord-Report-filter", label: "PaymentRecord Rerport Filter", link: "/services/web/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-filter/index.html", - perspectiveName: "Reports", + perspectiveName: "Reports" }; if (typeof exports !== 'undefined') { diff --git a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-print/print.extension b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-print/print.extension index 51e5d40..849eb26 100644 --- a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-print/print.extension +++ b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-print/print.extension @@ -1,5 +1,6 @@ { "extensionPoint": "codbex-payments-custom-action", "module": "codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-print/print.js", - "description": "Print PaymentRecord Report" + "description": "Print PaymentRecord Report", + "role": "codbex-payments.PaymentRecord.PaymentRecordReadOnly" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-window/view.extension b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-window/view.extension index 460e1a7..093df10 100644 --- a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-window/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-window/view.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-window/view.js", "extensionPoint": "dialog-window", - "description": "codbex-payments - Application Dialog Window" + "description": "codbex-payments - Application Dialog Window", + "role": "codbex-payments.PaymentRecord.PaymentRecordReadOnly" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-window/view.js b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-window/view.js index a47c2ee..5f45a75 100644 --- a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-window/view.js +++ b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-window/view.js @@ -7,7 +7,7 @@ const viewData = { id: "PaymentRecord-Report-details", label: "PaymentRecord Report", link: "/services/web/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-window/index.html", - perspectiveName: "Reports", + perspectiveName: "Reports" }; if (typeof exports !== 'undefined') { diff --git a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/tile-portal.extension b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/tile-portal.extension index eb50c2a..df620aa 100644 --- a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/tile-portal.extension +++ b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/tile-portal.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/tile.js", "extensionPoint": "portal-tile", - "description": "codbex-payments - Application Tile" + "description": "codbex-payments - Application Tile", + "role": "codbex-payments.PaymentRecord.PaymentRecordReadOnly" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/tile.extension b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/tile.extension index 5c05129..014fe97 100644 --- a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/tile.extension +++ b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/tile.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/tile.js", "extensionPoint": "codbex-payments-tile", - "description": "codbex-payments - Application Tile" + "description": "codbex-payments - Application Tile", + "role": "codbex-payments.PaymentRecord.PaymentRecordReadOnly" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/tile.js b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/tile.js index 564a53b..3b289c3 100644 --- a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/tile.js +++ b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/tile.js @@ -14,6 +14,6 @@ exports.getTile = function () { icon: "/services/web/resources/unicons/file.svg", location: "/services/web/codbex-payments/gen/codbex-payments/ui/Reports/index.html", order: "100", - groupOrder: "999", + groupOrder: "999" }; }; diff --git a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/view.extension b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/view.extension index 66c4af9..1a26fe7 100644 --- a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/view.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/view.js", "extensionPoint": "codbex-payments-view", - "description": "codbex-payments - Application View" + "description": "codbex-payments - Application View", + "role": "codbex-payments.PaymentRecord.PaymentRecordReadOnly" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/view.js b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/view.js index bfbaddb..676fa87 100644 --- a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/view.js +++ b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/view.js @@ -9,7 +9,7 @@ const viewData = { factory: "frame", region: "center", link: "/services/web/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/index.html", - perspectiveName: "Reports", + perspectiveName: "Reports" }; if (typeof exports !== 'undefined') { diff --git a/codbex-payments/gen/codbex-payments/ui/Reports/index.html b/codbex-payments/gen/codbex-payments/ui/Reports/index.html index 83fbbdc..0ce7142 100644 --- a/codbex-payments/gen/codbex-payments/ui/Reports/index.html +++ b/codbex-payments/gen/codbex-payments/ui/Reports/index.html @@ -52,7 +52,7 @@ .constant('extensionPoint', { perspectives: 'codbex-payments', views: 'codbex-payments-view', - dialogWindows: 'codbex-payments-dialog-window' + dialogWindows: 'dialog-window' }) .controller('ApplicationController', ['$scope', 'messageHub', 'Extensions', function ($scope, messageHub, Extensions) { $scope.state = { diff --git a/codbex-payments/gen/codbex-payments/ui/Reports/perspective.js b/codbex-payments/gen/codbex-payments/ui/Reports/perspective.js index a347e1b..53fc0b4 100644 --- a/codbex-payments/gen/codbex-payments/ui/Reports/perspective.js +++ b/codbex-payments/gen/codbex-payments/ui/Reports/perspective.js @@ -8,7 +8,7 @@ const perspectiveData = { name: 'Reports', link: '/services/web/codbex-payments/gen/codbex-payments/ui/Reports/index.html', order: 999, - icon: '/services/web/resources/unicons/dashboard.svg', + icon: '/services/web/resources/unicons/dashboard.svg' }; if (typeof exports !== 'undefined') { diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-filter/view.extension b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-filter/view.extension index 85b232a..34cca3b 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-filter/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-filter/view.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-filter/view.js", - "extensionPoint": "codbex-payments-dialog-window", - "description": "codbex-payments - Application Dialog Window" + "extensionPoint": "dialog-window", + "description": "codbex-payments - Application Dialog Window", + "role": "codbex-payments.Settings.PaymentRecordDirectionReadOnly,codbex-payments.Settings.PaymentRecordDirectionFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-window/view.extension b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-window/view.extension index c9ef6ac..244ac26 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-window/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-window/view.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-window/view.js", - "extensionPoint": "codbex-payments-dialog-window", - "description": "codbex-payments - Application Dialog Window" + "extensionPoint": "dialog-window", + "description": "codbex-payments - Application Dialog Window", + "role": "codbex-payments.Settings.PaymentRecordDirectionReadOnly,codbex-payments.Settings.PaymentRecordDirectionFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/tile-portal.extension b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/tile-portal.extension index d7547f1..4b9fdcb 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/tile-portal.extension +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/tile-portal.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/tile.js", "extensionPoint": "portal-tile", - "description": "codbex-payments - Application Tile" + "description": "codbex-payments - Application Tile", + "role": "codbex-payments.Settings.PaymentRecordDirectionReadOnly,codbex-payments.Settings.PaymentRecordDirectionFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/tile.extension b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/tile.extension index 10e65fa..e719b72 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/tile.extension +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/tile.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/tile.js", "extensionPoint": "codbex-payments-tile", - "description": "codbex-payments - Application Tile" + "description": "codbex-payments - Application Tile", + "role": "codbex-payments.Settings.PaymentRecordDirectionReadOnly,codbex-payments.Settings.PaymentRecordDirectionFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/view.extension b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/view.extension index 1c29383..31010d4 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/view.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/view.js", "extensionPoint": "codbex-payments-view", - "description": "codbex-payments - Application View" + "description": "codbex-payments - Application View", + "role": "codbex-payments.Settings.PaymentRecordDirectionReadOnly,codbex-payments.Settings.PaymentRecordDirectionFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-filter/view.extension b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-filter/view.extension index 2cca69e..b6ba135 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-filter/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-filter/view.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-filter/view.js", - "extensionPoint": "codbex-payments-dialog-window", - "description": "codbex-payments - Application Dialog Window" + "extensionPoint": "dialog-window", + "description": "codbex-payments - Application Dialog Window", + "role": "codbex-payments.Settings.PaymentStatusReadOnly,codbex-payments.Settings.PaymentStatusFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-window/view.extension b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-window/view.extension index e3a5244..ec75995 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-window/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-window/view.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-window/view.js", - "extensionPoint": "codbex-payments-dialog-window", - "description": "codbex-payments - Application Dialog Window" + "extensionPoint": "dialog-window", + "description": "codbex-payments - Application Dialog Window", + "role": "codbex-payments.Settings.PaymentStatusReadOnly,codbex-payments.Settings.PaymentStatusFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/tile-portal.extension b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/tile-portal.extension index fbeef75..b540724 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/tile-portal.extension +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/tile-portal.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/tile.js", "extensionPoint": "portal-tile", - "description": "codbex-payments - Application Tile" + "description": "codbex-payments - Application Tile", + "role": "codbex-payments.Settings.PaymentStatusReadOnly,codbex-payments.Settings.PaymentStatusFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/tile.extension b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/tile.extension index b79cc27..1823a11 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/tile.extension +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/tile.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/tile.js", "extensionPoint": "codbex-payments-tile", - "description": "codbex-payments - Application Tile" + "description": "codbex-payments - Application Tile", + "role": "codbex-payments.Settings.PaymentStatusReadOnly,codbex-payments.Settings.PaymentStatusFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/view.extension b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/view.extension index ca87978..01aea08 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/view.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/view.js", "extensionPoint": "codbex-payments-view", - "description": "codbex-payments - Application View" + "description": "codbex-payments - Application View", + "role": "codbex-payments.Settings.PaymentStatusReadOnly,codbex-payments.Settings.PaymentStatusFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/dialog-filter/view.extension b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/dialog-filter/view.extension index fd788ca..a16eafe 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/dialog-filter/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/dialog-filter/view.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/dialog-filter/view.js", - "extensionPoint": "codbex-payments-dialog-window", - "description": "codbex-payments - Application Dialog Window" + "extensionPoint": "dialog-window", + "description": "codbex-payments - Application Dialog Window", + "role": "codbex-payments.Settings.PaymentTypeReadOnly,codbex-payments.Settings.PaymentTypeFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/dialog-window/view.extension b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/dialog-window/view.extension index c2e9825..b5bf966 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/dialog-window/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/dialog-window/view.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/dialog-window/view.js", - "extensionPoint": "codbex-payments-dialog-window", - "description": "codbex-payments - Application Dialog Window" + "extensionPoint": "dialog-window", + "description": "codbex-payments - Application Dialog Window", + "role": "codbex-payments.Settings.PaymentTypeReadOnly,codbex-payments.Settings.PaymentTypeFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/tile-portal.extension b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/tile-portal.extension index a0ce65a..b75b19b 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/tile-portal.extension +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/tile-portal.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/tile.js", "extensionPoint": "portal-tile", - "description": "codbex-payments - Application Tile" + "description": "codbex-payments - Application Tile", + "role": "codbex-payments.Settings.PaymentTypeReadOnly,codbex-payments.Settings.PaymentTypeFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/tile.extension b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/tile.extension index 2f3f00c..2e8a1ce 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/tile.extension +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/tile.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/tile.js", "extensionPoint": "codbex-payments-tile", - "description": "codbex-payments - Application Tile" + "description": "codbex-payments - Application Tile", + "role": "codbex-payments.Settings.PaymentTypeReadOnly,codbex-payments.Settings.PaymentTypeFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/view.extension b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/view.extension index 87ed9c2..115291d 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/view.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/view.js", "extensionPoint": "codbex-payments-view", - "description": "codbex-payments - Application View" + "description": "codbex-payments - Application View", + "role": "codbex-payments.Settings.PaymentTypeReadOnly,codbex-payments.Settings.PaymentTypeFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/perspective.js b/codbex-payments/gen/codbex-payments/ui/Settings/perspective.js index d6c647e..828dbb7 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/perspective.js +++ b/codbex-payments/gen/codbex-payments/ui/Settings/perspective.js @@ -7,8 +7,8 @@ const perspectiveData = { id: 'Settings', name: 'Settings', link: '/services/web/codbex-payments/gen/codbex-payments/ui/Settings/index.html', - order: 999, - icon: '/services/web/resources/unicons/wrench.svg', + order: '999', + icon: '/services/web/resources/unicons/wrench.svg' }; if (typeof exports !== 'undefined') { diff --git a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-filter/view.extension b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-filter/view.extension index f023ea1..ebd374e 100644 --- a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-filter/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-filter/view.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-filter/view.js", - "extensionPoint": "codbex-payments-dialog-window", - "description": "codbex-payments - Application Dialog Window" + "extensionPoint": "dialog-window", + "description": "codbex-payments - Application Dialog Window", + "role": "codbex-payments.SupplierPayment.SupplierPaymentReadOnly,codbex-payments.SupplierPayment.SupplierPaymentFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-window/view.extension b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-window/view.extension index 684d030..c5c55a3 100644 --- a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-window/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-window/view.extension @@ -1,5 +1,6 @@ { "module": "{{projectName}}/gen/{{genFolderName}}/ui/{{perspectiveName}}/{{name}}/dialog-window/view.js", "extensionPoint": "dialog-window", - "description": "{{projectName}} - Application Dialog Window" + "description": "{{projectName}} - Application Dialog Window", + "role": "codbex-payments.SupplierPayment.SupplierPaymentReadOnly,codbex-payments.SupplierPayment.SupplierPaymentFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-window/view.js b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-window/view.js index c1fad46..773663e 100644 --- a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-window/view.js +++ b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-window/view.js @@ -8,6 +8,9 @@ const viewData = { label: "SupplierPayment", link: "/services/web/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-window/index.html", perspectiveName: "SupplierPayment", + roles: [ + "codbex-payments.SupplierPayment.SupplierPaymentReadOnly", + ] }; if (typeof exports !== 'undefined') { diff --git a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/main-details/view.extension b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/main-details/view.extension index 81c7683..50fbe97 100644 --- a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/main-details/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/main-details/view.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/main-details/view.js", "extensionPoint": "codbex-payments-view", - "description": "codbex-payments - Application View - Main Details" + "description": "codbex-payments - Application View - Main Details", + "role": "codbex-payments.SupplierPayment.SupplierPaymentReadOnly,codbex-payments.SupplierPayment.SupplierPaymentFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/tile-portal.extension b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/tile-portal.extension index 98ad78c..a3dd1a1 100644 --- a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/tile-portal.extension +++ b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/tile-portal.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/tile.js", "extensionPoint": "portal-tile", - "description": "codbex-payments - Application Tile" + "description": "codbex-payments - Application Tile", + "role": "codbex-payments.SupplierPayment.SupplierPaymentReadOnly,codbex-payments.SupplierPayment.SupplierPaymentFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/tile.extension b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/tile.extension index eacea7b..8b67649 100644 --- a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/tile.extension +++ b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/tile.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/tile.js", "extensionPoint": "codbex-payments-tile", - "description": "codbex-payments - Application Tile" + "description": "codbex-payments - Application Tile", + "role": "codbex-payments.SupplierPayment.SupplierPaymentReadOnly,codbex-payments.SupplierPayment.SupplierPaymentFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/view.extension b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/view.extension index 00010a8..5ccb416 100644 --- a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/view.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/view.js", "extensionPoint": "codbex-payments-view", - "description": "codbex-payments - Application View" + "description": "codbex-payments - Application View", + "role": "codbex-payments.SupplierPayment.SupplierPaymentReadOnly,codbex-payments.SupplierPayment.SupplierPaymentFullAccess" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/perspective.js b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/perspective.js index 3b00fd1..859255a 100644 --- a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/perspective.js +++ b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/perspective.js @@ -7,8 +7,8 @@ const perspectiveData = { id: 'SupplierPayment', name: 'SupplierPayment', link: '/services/web/codbex-payments/gen/codbex-payments/ui/SupplierPayment/index.html', - order: 20, - icon: '/services/web/resources/unicons/box.svg', + order: '20', + icon: '/services/web/resources/unicons/box.svg' }; if (typeof exports !== 'undefined') { diff --git a/codbex-payments/gen/codbex-payments/ui/launchpad/dialog-window.extensionpoint b/codbex-payments/gen/codbex-payments/ui/launchpad/dialog-window.extensionpoint index 3b8cdcd..c0f69ad 100644 --- a/codbex-payments/gen/codbex-payments/ui/launchpad/dialog-window.extensionpoint +++ b/codbex-payments/gen/codbex-payments/ui/launchpad/dialog-window.extensionpoint @@ -1,4 +1,4 @@ { - "name": "codbex-payments-dialog-window", + "name": "dialog-window", "description": "codbex-payments - Extension Point for the Application Dialog Window Providers" } \ No newline at end of file diff --git a/codbex-payments/navigations/customer-payments/navigation.extension b/codbex-payments/navigations/customer-payments/navigation.extension index 02b1bf9..00b4966 100644 --- a/codbex-payments/navigations/customer-payments/navigation.extension +++ b/codbex-payments/navigations/customer-payments/navigation.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/navigations/customer-payments/service.js", "extensionPoint": "dashboard-navigations", - "description": "Customer Payments Navigation" + "description": "Customer Payments Navigation", + "role": "codbex-payments.CustomerPayment.CustomerPaymentReadOnly,codbex-payments.CustomerPayment.CustomerPaymentFullAccess" } \ No newline at end of file diff --git a/codbex-payments/navigations/employee-payments/navigation.extension b/codbex-payments/navigations/employee-payments/navigation.extension index a2a7b5b..f0cdb81 100644 --- a/codbex-payments/navigations/employee-payments/navigation.extension +++ b/codbex-payments/navigations/employee-payments/navigation.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/navigations/employee-payments/service.js", "extensionPoint": "dashboard-navigations", - "description": "Employee Payments Navigation" + "description": "Employee Payments Navigation", + "role": "codbex-payments.EmployeePayment.EmployeePaymentReadOnly,codbex-payments.EmployeePayment.EmployeePaymentFullAcces" } \ No newline at end of file diff --git a/codbex-payments/navigations/payment-adjustments/navigation.extension b/codbex-payments/navigations/payment-adjustments/navigation.extension index 1241682..8713370 100644 --- a/codbex-payments/navigations/payment-adjustments/navigation.extension +++ b/codbex-payments/navigations/payment-adjustments/navigation.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/navigations/payment-adjustments/service.js", "extensionPoint": "dashboard-navigations", - "description": "Payment Adjustments Navigation" + "description": "Payment Adjustments Navigation", + "role": "codbex-payments.PaymentAdjustment.PaymentAdjustmentReadOnly,codbex-payments.PaymentAdjustment.PaymentAdjustmentFullAccess" } \ No newline at end of file diff --git a/codbex-payments/navigations/supplier-payments/navigation.extension b/codbex-payments/navigations/supplier-payments/navigation.extension index eda641b..79bc088 100644 --- a/codbex-payments/navigations/supplier-payments/navigation.extension +++ b/codbex-payments/navigations/supplier-payments/navigation.extension @@ -1,5 +1,6 @@ { "module": "codbex-payments/navigations/supplier-payments/service.js", "extensionPoint": "dashboard-navigations", - "description": "Supplier Payments Navigation" + "description": "Supplier Payments Navigation", + "role": "codbex-payments.SupplierPayment.SupplierPaymentReadOnly,codbex-payments.SupplierPayment.SupplierPaymentFullAccess" } \ No newline at end of file diff --git a/images/payments-model.png b/images/payments-model.png index 446baba..564b9aa 100644 Binary files a/images/payments-model.png and b/images/payments-model.png differ