2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.onap.so.bpmn.servicedecomposition.tasks;
23 import java.util.ArrayList;
24 import java.util.Arrays;
25 import java.util.List;
27 import java.util.Optional;
29 import org.modelmapper.ModelMapper;
30 import org.modelmapper.convention.MatchingStrategies;
31 import org.onap.so.bpmn.servicedecomposition.bbobjects.AllottedResource;
32 import org.onap.so.bpmn.servicedecomposition.bbobjects.CloudRegion;
33 import org.onap.so.bpmn.servicedecomposition.bbobjects.Collection;
34 import org.onap.so.bpmn.servicedecomposition.bbobjects.Configuration;
35 import org.onap.so.bpmn.servicedecomposition.bbobjects.CtagAssignment;
36 import org.onap.so.bpmn.servicedecomposition.bbobjects.Customer;
37 import org.onap.so.bpmn.servicedecomposition.bbobjects.Entitlement;
38 import org.onap.so.bpmn.servicedecomposition.bbobjects.Evc;
39 import org.onap.so.bpmn.servicedecomposition.bbobjects.ForwarderEvc;
40 import org.onap.so.bpmn.servicedecomposition.bbobjects.GenericVnf;
41 import org.onap.so.bpmn.servicedecomposition.bbobjects.L3Network;
42 import org.onap.so.bpmn.servicedecomposition.bbobjects.LagInterface;
43 import org.onap.so.bpmn.servicedecomposition.bbobjects.LineOfBusiness;
44 import org.onap.so.bpmn.servicedecomposition.bbobjects.NetworkPolicy;
45 import org.onap.so.bpmn.servicedecomposition.bbobjects.OwningEntity;
46 import org.onap.so.bpmn.servicedecomposition.bbobjects.Platform;
47 import org.onap.so.bpmn.servicedecomposition.bbobjects.Project;
48 import org.onap.so.bpmn.servicedecomposition.bbobjects.RouteTableReference;
49 import org.onap.so.bpmn.servicedecomposition.bbobjects.SegmentationAssignment;
50 import org.onap.so.bpmn.servicedecomposition.bbobjects.ServiceInstance;
51 import org.onap.so.bpmn.servicedecomposition.bbobjects.ServiceSubscription;
52 import org.onap.so.bpmn.servicedecomposition.bbobjects.Subnet;
53 import org.onap.so.bpmn.servicedecomposition.bbobjects.VfModule;
54 import org.onap.so.bpmn.servicedecomposition.bbobjects.VolumeGroup;
55 import org.onap.so.bpmn.servicedecomposition.entities.ResourceKey;
56 import org.onap.so.bpmn.servicedecomposition.generalobjects.License;
57 import org.onap.so.bpmn.servicedecomposition.generalobjects.OrchestrationContext;
58 import org.onap.so.bpmn.servicedecomposition.generalobjects.RequestContext;
59 import org.onap.so.bpmn.servicedecomposition.generalobjects.RequestParameters;
60 import org.onap.so.bpmn.servicedecomposition.modelinfo.ModelInfoCollection;
61 import org.onap.so.bpmn.servicedecomposition.modelinfo.ModelInfoConfiguration;
62 import org.onap.so.bpmn.servicedecomposition.modelinfo.ModelInfoGenericVnf;
63 import org.onap.so.bpmn.servicedecomposition.modelinfo.ModelInfoInstanceGroup;
64 import org.onap.so.bpmn.servicedecomposition.modelinfo.ModelInfoNetwork;
65 import org.onap.so.bpmn.servicedecomposition.modelinfo.ModelInfoServiceInstance;
66 import org.onap.so.bpmn.servicedecomposition.modelinfo.ModelInfoVfModule;
67 import org.onap.so.db.catalog.beans.CollectionNetworkResourceCustomization;
68 import org.onap.so.db.catalog.beans.CollectionResource;
69 import org.onap.so.db.catalog.beans.CollectionResourceCustomization;
70 import org.onap.so.db.catalog.beans.CollectionResourceInstanceGroupCustomization;
71 import org.onap.so.db.catalog.beans.ConfigurationResourceCustomization;
72 import org.onap.so.db.catalog.beans.InstanceGroup;
73 import org.onap.so.db.catalog.beans.InstanceGroupType;
74 import org.onap.so.db.catalog.beans.NetworkResourceCustomization;
75 import org.onap.so.db.catalog.beans.OrchestrationStatus;
76 import org.onap.so.db.catalog.beans.Service;
77 import org.onap.so.db.catalog.beans.VfModuleCustomization;
78 import org.onap.so.db.catalog.beans.VnfResourceCustomization;
79 import org.onap.so.logger.MsoLogger;
80 import org.onap.so.serviceinstancebeans.CloudConfiguration;
81 import org.onap.so.serviceinstancebeans.RequestDetails;
82 import org.springframework.stereotype.Component;
84 @Component("BBInputSetupMapperLayer")
85 public class BBInputSetupMapperLayer {
87 private static final MsoLogger msoLogger = MsoLogger.getMsoLogger(MsoLogger.Catalog.BPEL,
88 BBInputSetupMapperLayer.class);
90 private ModelMapper modelMapper = new ModelMapper();
92 public Customer mapAAICustomer(org.onap.aai.domain.yang.Customer customerAAI) {
93 return modelMapper.map(customerAAI, Customer.class);
96 public ServiceSubscription mapAAIServiceSubscription(
97 org.onap.aai.domain.yang.ServiceSubscription serviceSubscriptionAAI) {
98 return modelMapper.map(serviceSubscriptionAAI, ServiceSubscription.class);
101 protected Project mapAAIProject(org.onap.aai.domain.yang.Project aaiProject) {
102 return modelMapper.map(aaiProject, Project.class);
105 protected OwningEntity mapAAIOwningEntity(org.onap.aai.domain.yang.OwningEntity aaiOwningEntity) {
106 return modelMapper.map(aaiOwningEntity, OwningEntity.class);
109 protected Platform mapAAIPlatform(org.onap.aai.domain.yang.Platform aaiPlatform) {
110 return modelMapper.map(aaiPlatform, Platform.class);
113 protected LineOfBusiness mapAAILineOfBusiness(org.onap.aai.domain.yang.LineOfBusiness aaiLineOfBusiness) {
114 return modelMapper.map(aaiLineOfBusiness, LineOfBusiness.class);
117 protected SegmentationAssignment mapAAISegmentationAssignment(
118 org.onap.aai.domain.yang.SegmentationAssignment aaiSegmentationAssignment) {
119 return modelMapper.map(aaiSegmentationAssignment, SegmentationAssignment.class);
122 protected CtagAssignment mapAAICtagAssignment(org.onap.aai.domain.yang.CtagAssignment aaiCtagAssignment) {
123 return modelMapper.map(aaiCtagAssignment, CtagAssignment.class);
126 protected Subnet mapAAISubnet(org.onap.aai.domain.yang.Subnet aaiSubnet) {
127 return modelMapper.map(aaiSubnet, Subnet.class);
130 protected License mapAAILicense(org.onap.aai.domain.yang.License aaiLicense) {
131 return modelMapper.map(aaiLicense, License.class);
134 protected Entitlement mapAAIEntitlement(org.onap.aai.domain.yang.Entitlement aaiEntitlement) {
135 return modelMapper.map(aaiEntitlement, Entitlement.class);
138 protected LagInterface mapAAILagInterface(org.onap.aai.domain.yang.LagInterface aaiLagInterface) {
139 return modelMapper.map(aaiLagInterface, LagInterface.class);
142 protected VfModule mapAAIVfModule(org.onap.aai.domain.yang.VfModule aaiVfModule) {
143 VfModule vfModule = modelMapper.map(aaiVfModule, VfModule.class);
144 vfModule.setOrchestrationStatus(this.mapOrchestrationStatusFromAAI(aaiVfModule.getOrchestrationStatus()));
148 public NetworkPolicy mapAAINetworkPolicy(org.onap.aai.domain.yang.NetworkPolicy aaiNetworkPolicy) {
149 return modelMapper.map(aaiNetworkPolicy, NetworkPolicy.class);
152 protected VolumeGroup mapAAIVolumeGroup(org.onap.aai.domain.yang.VolumeGroup aaiVolumeGroup) {
153 VolumeGroup volumeGroup = modelMapper.map(aaiVolumeGroup, VolumeGroup.class);
154 volumeGroup.setOrchestrationStatus(this.mapOrchestrationStatusFromAAI(aaiVolumeGroup.getOrchestrationStatus()));
158 protected void setPlatformAndLOBIntoServiceInstance(Platform platformMSO, LineOfBusiness lineOfBusinessMSO,
159 ServiceInstance serviceInstance, Map<ResourceKey, String> resourcesToBeOrchestrated) {
160 String vnfId = resourcesToBeOrchestrated.get(ResourceKey.GENERIC_VNF_ID);
161 if (vnfId != null && !serviceInstance.getVnfs().isEmpty()) {
162 for (GenericVnf vnf : serviceInstance.getVnfs()) {
163 if (vnf.getVnfId().equalsIgnoreCase(vnfId)) {
164 vnf.setPlatform(platformMSO);
165 vnf.setLineOfBusiness(lineOfBusinessMSO);
172 public ModelInfoServiceInstance mapCatalogServiceIntoServiceInstance(Service service) {
173 return modelMapper.map(service, ModelInfoServiceInstance.class);
176 protected ModelInfoInstanceGroup mapCatalogInstanceGroupToInstanceGroup(CollectionResourceCustomization collectionCust, InstanceGroup instanceGroup) {
177 ModelInfoInstanceGroup modelInfoInstanceGroup = modelMapper.map(instanceGroup, ModelInfoInstanceGroup.class);
178 if(instanceGroup.getType().equals(InstanceGroupType.L3_NETWORK))
179 modelInfoInstanceGroup.setType(ModelInfoInstanceGroup.TYPE_L3_NETWORK);
181 modelInfoInstanceGroup.setType(ModelInfoInstanceGroup.TYPE_VNFC);
182 if(collectionCust != null) {
183 List<CollectionResourceInstanceGroupCustomization> instanceGroupCustList = instanceGroup.getCollectionInstanceGroupCustomizations();
184 for(CollectionResourceInstanceGroupCustomization collectionInsatnceGroupCust : instanceGroupCustList) {
185 if(collectionInsatnceGroupCust.getModelCustomizationUUID().equalsIgnoreCase(collectionCust.getModelCustomizationUUID())) {
186 modelInfoInstanceGroup.setFunction(collectionInsatnceGroupCust.getFunction());
187 modelInfoInstanceGroup.setDescription(collectionInsatnceGroupCust.getDescription());
192 return modelInfoInstanceGroup;
195 protected ModelInfoCollection mapCatalogCollectionToCollection(CollectionResourceCustomization collectionCust,
196 CollectionResource collectionResource) {
197 ModelInfoCollection modelInfoCollection = new ModelInfoCollection();
198 modelInfoCollection.setCollectionFunction(collectionCust.getFunction());
199 modelInfoCollection.setCollectionRole(collectionCust.getRole());
200 modelInfoCollection.setCollectionType(collectionCust.getType());
201 modelInfoCollection.setDescription(collectionResource.getDescription());
202 modelInfoCollection.setModelInvariantUUID(collectionResource.getModelInvariantUUID());
203 modelInfoCollection.setModelVersionId(collectionResource.getModelUUID());
204 return modelInfoCollection;
207 public ServiceInstance mapAAIServiceInstanceIntoServiceInstance(
208 org.onap.aai.domain.yang.ServiceInstance aaiServiceInstance) {
209 ServiceInstance serviceInstance = modelMapper.map(aaiServiceInstance, ServiceInstance.class);
210 if (aaiServiceInstance.getAllottedResources() != null) {
211 for (org.onap.aai.domain.yang.AllottedResource allottedResource : aaiServiceInstance.getAllottedResources()
212 .getAllottedResource()) {
213 serviceInstance.getAllottedResources().add(mapAAIAllottedResource(allottedResource));
216 serviceInstance.setOrchestrationStatus(
217 this.mapOrchestrationStatusFromAAI(aaiServiceInstance.getOrchestrationStatus()));
218 return serviceInstance;
221 protected AllottedResource mapAAIAllottedResource(org.onap.aai.domain.yang.AllottedResource aaiAllottedResource) {
222 AllottedResource allottedResource = modelMapper.map(aaiAllottedResource, AllottedResource.class);
223 return allottedResource;
226 protected L3Network mapAAIL3Network(org.onap.aai.domain.yang.L3Network aaiL3Network) {
227 L3Network network = modelMapper.map(aaiL3Network, L3Network.class);
228 mapAllSubnetsIntoL3Network(aaiL3Network, network);
229 mapAllCtagAssignmentsIntoL3Network(aaiL3Network, network);
230 mapAllSegmentationAssignmentsIntoL3Network(aaiL3Network, network);
231 network.setOrchestrationStatus(this.mapOrchestrationStatusFromAAI(aaiL3Network.getOrchestrationStatus()));
235 protected void mapAllSegmentationAssignmentsIntoL3Network(org.onap.aai.domain.yang.L3Network aaiL3Network,
237 if (aaiL3Network.getSegmentationAssignments() != null) {
238 for (org.onap.aai.domain.yang.SegmentationAssignment aaiSegmentationAssignment : aaiL3Network
239 .getSegmentationAssignments().getSegmentationAssignment()) {
240 network.getSegmentationAssignments().add(mapAAISegmentationAssignment(aaiSegmentationAssignment));
245 protected void mapAllCtagAssignmentsIntoL3Network(org.onap.aai.domain.yang.L3Network aaiL3Network,
247 if (aaiL3Network.getCtagAssignments() != null) {
248 for (org.onap.aai.domain.yang.CtagAssignment aaiCtagAssignment : aaiL3Network.getCtagAssignments()
249 .getCtagAssignment()) {
250 network.getCtagAssignments().add(mapAAICtagAssignment(aaiCtagAssignment));
255 protected void mapAllSubnetsIntoL3Network(org.onap.aai.domain.yang.L3Network aaiL3Network, L3Network network) {
256 if (aaiL3Network.getSubnets() != null) {
257 for (org.onap.aai.domain.yang.Subnet aaiSubnet : aaiL3Network.getSubnets().getSubnet()) {
258 network.getSubnets().add(mapAAISubnet(aaiSubnet));
263 protected GenericVnf mapAAIGenericVnfIntoGenericVnf(org.onap.aai.domain.yang.GenericVnf aaiGenericVnf) {
264 GenericVnf genericVnf = modelMapper.map(aaiGenericVnf, GenericVnf.class);
265 mapAllVfModulesIntoGenericVnf(aaiGenericVnf, genericVnf);
266 mapAllLagInterfacesIntoGenericVnf(aaiGenericVnf, genericVnf);
267 mapAllEntitlementsIntoGenericVnf(aaiGenericVnf, genericVnf);
268 mapAllLicensesIntoGenericVnf(aaiGenericVnf, genericVnf);
269 genericVnf.setOrchestrationStatus(this.mapOrchestrationStatusFromAAI(aaiGenericVnf.getOrchestrationStatus()));
273 protected void mapAllLicensesIntoGenericVnf(org.onap.aai.domain.yang.GenericVnf aaiGenericVnf,
274 GenericVnf genericVnf) {
275 if (aaiGenericVnf.getLicenses() != null) {
276 for (org.onap.aai.domain.yang.License aaiLicense : aaiGenericVnf.getLicenses().getLicense()) {
277 genericVnf.setLicense(mapAAILicense(aaiLicense));
282 protected void mapAllEntitlementsIntoGenericVnf(org.onap.aai.domain.yang.GenericVnf aaiGenericVnf,
283 GenericVnf genericVnf) {
284 if (aaiGenericVnf.getEntitlements() != null) {
285 for (org.onap.aai.domain.yang.Entitlement aaiEntitlement : aaiGenericVnf.getEntitlements()
287 genericVnf.getEntitlements().add(mapAAIEntitlement(aaiEntitlement));
292 protected void mapAllLagInterfacesIntoGenericVnf(org.onap.aai.domain.yang.GenericVnf aaiGenericVnf,
293 GenericVnf genericVnf) {
294 if (aaiGenericVnf.getLagInterfaces() != null) {
295 for (org.onap.aai.domain.yang.LagInterface aaiLagInterface : aaiGenericVnf.getLagInterfaces()
296 .getLagInterface()) {
297 genericVnf.getLagInterfaces().add(mapAAILagInterface(aaiLagInterface));
302 protected void mapAllVfModulesIntoGenericVnf(org.onap.aai.domain.yang.GenericVnf aaiGenericVnf,
303 GenericVnf genericVnf) {
304 if (aaiGenericVnf.getVfModules() != null) {
305 for (org.onap.aai.domain.yang.VfModule aaiVfModule : aaiGenericVnf.getVfModules().getVfModule()) {
306 VfModule vfModule = mapAAIVfModule(aaiVfModule);
307 genericVnf.getVfModules().add(vfModule);
312 public OrchestrationStatus mapOrchestrationStatusFromAAI(String orchestrationStatus) {
314 Optional<OrchestrationStatus> result = Arrays.asList(OrchestrationStatus.values()).stream()
315 .filter(item -> item.fuzzyMap(orchestrationStatus))
318 return result.orElse(null);
322 public RequestContext mapRequestContext(RequestDetails requestDetails) {
323 RequestContext context = new RequestContext();
324 modelMapper.map(requestDetails.getRequestInfo(), context);
325 org.onap.so.serviceinstancebeans.RequestParameters requestParameters = requestDetails.getRequestParameters();
326 if (null != requestParameters) {
327 context.setSubscriptionServiceType(requestParameters.getSubscriptionServiceType());
328 context.setRequestParameters(this.mapRequestParameters(requestDetails.getRequestParameters()));
333 protected RequestParameters mapRequestParameters(org.onap.so.serviceinstancebeans.RequestParameters requestParameters) {
334 RequestParameters requestParams = new RequestParameters();
335 requestParams.setaLaCarte(requestParameters.getALaCarte());
336 requestParams.setSubscriptionServiceType(requestParameters.getSubscriptionServiceType());
337 requestParams.setUserParams(requestParameters.getUserParams());
338 return requestParams;
341 protected OrchestrationContext mapOrchestrationContext(RequestDetails requestDetails) {
342 OrchestrationContext context = new OrchestrationContext();
343 context.setIsRollbackEnabled((requestDetails.getRequestInfo().getSuppressRollback()));
347 protected CloudRegion mapCloudRegion(CloudConfiguration cloudConfiguration, org.onap.aai.domain.yang.CloudRegion aaiCloudRegion, String cloudOwner) {
348 CloudRegion cloudRegion = new CloudRegion();
349 if(cloudConfiguration != null)
350 cloudRegion = modelMapper.map(cloudConfiguration, CloudRegion.class);
351 if(aaiCloudRegion != null)
352 modelMapper.map(aaiCloudRegion, cloudRegion);
353 if(cloudOwner != null)
354 cloudRegion.setCloudOwner(cloudOwner);
358 protected Collection mapAAICollectionIntoCollection(org.onap.aai.domain.yang.Collection aaiCollection) {
359 Collection collection = new Collection();
360 collection.setId(aaiCollection.getCollectionId());
361 collection.setOrchestrationStatus(this.mapOrchestrationStatusFromAAI(aaiCollection.getOrchestrationStatus()));
365 protected org.onap.so.bpmn.servicedecomposition.bbobjects.InstanceGroup mapAAIInstanceGroupIntoInstanceGroup(
366 org.onap.aai.domain.yang.InstanceGroup aaiInstanceGroup) {
367 return modelMapper.map(aaiInstanceGroup,
368 org.onap.so.bpmn.servicedecomposition.bbobjects.InstanceGroup.class);
371 public RouteTableReference mapAAIRouteTableReferenceIntoRouteTableReference(
372 org.onap.aai.domain.yang.RouteTableReference aaiRouteTableReference) {
373 return modelMapper.map(aaiRouteTableReference, RouteTableReference.class);
376 protected ModelInfoNetwork mapCatalogNetworkToNetwork(NetworkResourceCustomization networkResourceCustomization) {
377 modelMapper.getConfiguration().setMatchingStrategy(MatchingStrategies.STRICT);
378 ModelInfoNetwork modelInfoNetwork = modelMapper.map(networkResourceCustomization, ModelInfoNetwork.class);
379 modelMapper.map(networkResourceCustomization.getNetworkResource(), modelInfoNetwork);
380 modelMapper.getConfiguration().setMatchingStrategy(MatchingStrategies.STANDARD);
381 return modelInfoNetwork;
384 protected ModelInfoGenericVnf mapCatalogVnfToVnf(VnfResourceCustomization vnfResourceCustomization) {
385 ModelInfoGenericVnf modelInfoVnf = modelMapper.map(vnfResourceCustomization, ModelInfoGenericVnf.class);
386 modelMapper.map(vnfResourceCustomization.getVnfResources(), modelInfoVnf);
390 protected ModelInfoVfModule mapCatalogVfModuleToVfModule(VfModuleCustomization vfResourceCustomization) {
391 ModelInfoVfModule modelInfoVfModule = modelMapper.map(vfResourceCustomization, ModelInfoVfModule.class);
392 modelMapper.map(vfResourceCustomization.getVfModule(), modelInfoVfModule);
393 return modelInfoVfModule;
396 protected Platform mapRequestPlatform(org.onap.so.serviceinstancebeans.Platform platform) {
397 return modelMapper.map(platform, Platform.class);
400 protected LineOfBusiness mapRequestLineOfBusiness(
401 org.onap.so.serviceinstancebeans.LineOfBusiness lineOfBusiness) {
402 return modelMapper.map(lineOfBusiness, LineOfBusiness.class);
405 public Configuration mapAAIConfiguration(org.onap.aai.domain.yang.Configuration configurationAAI) {
406 modelMapper.getConfiguration().setMatchingStrategy(MatchingStrategies.STRICT);
407 Configuration configuration = modelMapper.map(configurationAAI, Configuration.class);
408 modelMapper.getConfiguration().setMatchingStrategy(MatchingStrategies.STANDARD);
409 configuration.getForwarderEvcs().addAll(mapAllForwarderEvcs(configurationAAI));
410 configuration.getEvcs().addAll(mapAllEvcs(configurationAAI));
411 configuration.setOrchestrationStatus(this.mapOrchestrationStatusFromAAI(configurationAAI.getOrchestrationStatus()));
412 return configuration;
415 protected List<Evc> mapAllEvcs(org.onap.aai.domain.yang.Configuration configurationAAI) {
416 List<Evc> listOfEvcs = new ArrayList<>();
417 if (configurationAAI.getEvcs() != null) {
418 for (org.onap.aai.domain.yang.Evc aaiEvc : configurationAAI.getEvcs().getEvc()) {
419 listOfEvcs.add(mapEvc(aaiEvc));
425 protected Evc mapEvc(org.onap.aai.domain.yang.Evc aaiEvc) {
426 return modelMapper.map(aaiEvc, Evc.class);
429 protected List<ForwarderEvc> mapAllForwarderEvcs(org.onap.aai.domain.yang.Configuration configurationAAI) {
430 List<ForwarderEvc> listOfForwarderEvcs = new ArrayList<>();
431 if (configurationAAI.getForwarderEvcs() != null) {
432 for (org.onap.aai.domain.yang.ForwarderEvc aaiForwarderEvc : configurationAAI.getForwarderEvcs().getForwarderEvc()) {
433 listOfForwarderEvcs.add(mapForwarderEvc(aaiForwarderEvc));
436 return listOfForwarderEvcs;
439 protected ForwarderEvc mapForwarderEvc(org.onap.aai.domain.yang.ForwarderEvc aaiForwarderEvc) {
440 return modelMapper.map(aaiForwarderEvc, ForwarderEvc.class);
443 protected OwningEntity mapRequestOwningEntity(org.onap.so.serviceinstancebeans.OwningEntity owningEntity) {
444 return modelMapper.map(owningEntity, OwningEntity.class);
447 protected Project mapRequestProject(org.onap.so.serviceinstancebeans.Project project) {
448 return modelMapper.map(project, Project.class);
451 protected ModelInfoConfiguration mapCatalogConfigurationToConfiguration(
452 ConfigurationResourceCustomization configurationResourceCustomization) {
453 ModelInfoConfiguration modelInfoConfiguration = new ModelInfoConfiguration();
454 modelInfoConfiguration.setModelVersionId(configurationResourceCustomization.getConfigurationResource().getModelUUID());
455 modelInfoConfiguration.setModelCustomizationId(configurationResourceCustomization.getModelCustomizationUUID());
456 modelInfoConfiguration.setModelInvariantId(configurationResourceCustomization.getConfigurationResource().getModelInvariantUUID());
457 return modelInfoConfiguration;
460 public NetworkResourceCustomization mapCollectionNetworkResourceCustToNetworkResourceCust(
461 CollectionNetworkResourceCustomization collectionNetworkResourceCust) {
462 return modelMapper.map(collectionNetworkResourceCust, NetworkResourceCustomization.class);