diff options
Diffstat (limited to 'catalog-ui/src/app/utils/common-utils.ts')
-rw-r--r-- | catalog-ui/src/app/utils/common-utils.ts | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/catalog-ui/src/app/utils/common-utils.ts b/catalog-ui/src/app/utils/common-utils.ts index d8019d2f96..1719034354 100644 --- a/catalog-ui/src/app/utils/common-utils.ts +++ b/catalog-ui/src/app/utils/common-utils.ts @@ -1,6 +1,26 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + import {Module, AttributeModel, ResourceInstance, PropertyModel, InputFEModel} from "../models"; import {ComponentInstanceFactory} from "./component-instance-factory"; -import {PropertyBEModel, RelationshipModel} from "app/models"; +import {InputBEModel, PropertyBEModel, RelationshipModel} from "app/models"; export class CommonUtils { @@ -57,13 +77,13 @@ export class CommonUtils { return modules; }; - static initInputs(inputsObj:Array<PropertyBEModel>):Array<PropertyBEModel> { + static initInputs(inputsObj: Array<InputBEModel>): Array<InputBEModel> { - let inputs = new Array<PropertyBEModel>(); + let inputs = new Array<InputBEModel>(); if(inputsObj) { - _.forEach(inputsObj, (input:PropertyBEModel):void => { - inputs.push(new PropertyBEModel(input)); + _.forEach(inputsObj, (input: InputBEModel):void => { + inputs.push(new InputBEModel(input)); }) } |