import {Store} from '../../../../common/core/stores/Store';
import {CBAPackage, DslDefinition} from './mapping-models/CBAPacakge.model';
-import {PackageCreationService} from './package-creation.service';
import {MetaDataTabModel} from './mapping-models/metadata/MetaDataTab.model';
-import {Observable} from 'rxjs';
-import {ResourceDictionary} from './mapping-models/ResourceDictionary.model';
-import {BluePrintDetailModel} from '../model/BluePrint.detail.model';
-import {TemplateTopology} from './mapping-models/definitions/VlbDefinition';
+import {TemplateTopology} from './mapping-models/definitions/CBADefinition';
@Injectable({
}
+ addPlans(name: string, content: string) {
+ this.setState({
+ ...this.state,
+ plans: this.state.plans.setContent(name, content)
+ });
+
+ }
+
+ addRequirements(name: string, content: string) {
+ this.setState({
+ ...this.state,
+ requirements: this.state.requirements.setContent(name, content)
+ });
+
+ }
+
removeFileFromState(name: string) {
this.state.scripts.files.delete(name);
}
}
clear() {
+ console.log('clearing the store');
this.setState(new CBAPackage());
+ console.log('it should be empty');
}
setEntryDefinition(data: string) {
templateTopology
});
}
+
+ getMetaData() {
+ return this.state.metaData;
+ }
}