diff options
author | 2020-01-30 13:52:44 +0200 | |
---|---|---|
committer | 2020-01-30 13:52:44 +0200 | |
commit | f2e85fa8183c684322f1f8a34ea9ed4d1f33b169 (patch) | |
tree | 9926717f007177b0bac7b9d84f8cff9b8ddc25f3 /cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/mapping-models/CBAPacakge.model.ts | |
parent | c9b0f84a5812459aabdf59c00265dec09d771182 (diff) |
package creation store preparation
Issue-ID: CCSDK-2050
Signed-off-by: shaaban Altanany <shaaban.eltanany.ext@orange.com>
Change-Id: Ie4dcf26a138ef5237e42eb0284269006da89d5a5
Diffstat (limited to 'cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/mapping-models/CBAPacakge.model.ts')
-rw-r--r-- | cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/mapping-models/CBAPacakge.model.ts | 40 |
1 files changed, 31 insertions, 9 deletions
diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/mapping-models/CBAPacakge.model.ts b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/mapping-models/CBAPacakge.model.ts index cbb82f118..a5f5ec70a 100644 --- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/mapping-models/CBAPacakge.model.ts +++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/mapping-models/CBAPacakge.model.ts @@ -1,19 +1,39 @@ - import {MetaDataTabModel} from './metadata/MetaDataTab.model'; export class Definition { - public files: Map<string, string> = new Map<string, string>(); - constructor(files: Map<string, string>) { - this.files = files; + public metaDataTab: MetaDataTabModel; + public imports: Map<string, string>; + + // public dslDefinition: + + constructor() { + this.imports = new Map<string, string>(); + this.metaDataTab = new MetaDataTabModel(); + } + + public setImports(key: string, value: string) { + this.imports.set(key, value); + return this; + } + + public setMetaData(metaDataTab: MetaDataTabModel) { + this.metaDataTab = metaDataTab; + return this; } + } export class Scripts { - public files: Map<string, string> = new Map<string, string>(); + public files: Map<string, string>; - constructor(files: Map<string, string>) { - this.files = files; + constructor() { + this.files = new Map<string, string>(); + } + + public setScripts(key: string, value: string) { + this.files.set(key, value); + return this; } } @@ -23,12 +43,14 @@ export class CBAPackage { public definitions: Definition; public scripts: Scripts; + constructor() { - this.definitions = new Definition(new Map<string, string>()); - this.scripts = new Scripts(new Map<string, string>()); + this.definitions = new Definition(); + this.scripts = new Scripts(); this.metaData = new MetaDataTabModel(); } + } |