diff options
Diffstat (limited to 'vid-app-common')
12 files changed, 39 insertions, 38 deletions
diff --git a/vid-app-common/src/main/java/org/onap/vid/model/VidWorkflow.java b/vid-app-common/src/main/java/org/onap/vid/model/VidWorkflow.java index d0e212b98..d77a28ccd 100644 --- a/vid-app-common/src/main/java/org/onap/vid/model/VidWorkflow.java +++ b/vid-app-common/src/main/java/org/onap/vid/model/VidWorkflow.java @@ -35,6 +35,7 @@ public class VidWorkflow extends VidBaseEntity { @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "WORKFLOW_DB_ID") @JsonIgnore + @Override public Long getId() { return id; } diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-change-management/new-change-management.controller.js b/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-change-management/new-change-management.controller.js index 20e964c53..d966df8d9 100644 --- a/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-change-management/new-change-management.controller.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-change-management/new-change-management.controller.js @@ -587,18 +587,18 @@ vm.vnfs = []; vm.vfModules = []; - let vnfRole = null; + let nfRole = null; let cloudRegion = null; if ($scope.isNewFilterChangeManagmentEnabled()) { - vnfRole = vm.changeManagement.vnfType ? vm.changeManagement.vnfType : null; + nfRole = vm.changeManagement.vnfType ? vm.changeManagement.vnfType : null; cloudRegion = vm.changeManagement.cloudRegion ? vm.changeManagement.cloudRegion : null; } AaiService.getVnfsByCustomerIdAndServiceType( vm.changeManagement.subscriberId, vm.changeManagement.serviceType["service-type"], - vnfRole, + nfRole, cloudRegion, ).then(function (response) { vm.isSearchedVNF = true; diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-test-environment/new-test-environment.controller.js b/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-test-environment/new-test-environment.controller.js index 352fa2019..74bbb8840 100644 --- a/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-test-environment/new-test-environment.controller.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-test-environment/new-test-environment.controller.js @@ -55,7 +55,7 @@ vm.releaseVersions = response["release"].map(function (releaseOptions){ return releaseOptions.name;}); },COMPONENT.TENANT_ISOLATION_FAMILY); - } + }; vm.setEcompEnvironment = function (selectedIndex) { @@ -82,7 +82,7 @@ }; vm.isShowReleaseEnabled = function () { - return featureFlags.isOn(COMPONENT.FEATURE_FLAGS.FLAG_1908_RELEASE_TENANT_ISOLATION) + return featureFlags.isOn(COMPONENT.FEATURE_FLAGS.FLAG_1908_RELEASE_TENANT_ISOLATION); }; init(); diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/modals/vf-module-homing-data-action/vf-module-homing-data-action.controller.js b/vid-app-common/src/main/webapp/app/vid/scripts/modals/vf-module-homing-data-action/vf-module-homing-data-action.controller.js index 2cfcf5715..759f67dc9 100644 --- a/vid-app-common/src/main/webapp/app/vid/scripts/modals/vf-module-homing-data-action/vf-module-homing-data-action.controller.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/modals/vf-module-homing-data-action/vf-module-homing-data-action.controller.js @@ -137,13 +137,13 @@ var vfModuleActionModalController = function(COMPONENT, FIELD, $scope, $uibModal }; $scope.removeVendorFromCloudOwner = function(cloudOwner) { - return AaiService.removeVendorFromCloudOwner(cloudOwner) + return AaiService.removeVendorFromCloudOwner(cloudOwner); }; $scope.selectedLcpRegionIsMegaRegion = function() { if ($scope.regionSelection.optionId) { let cloudRegionId = DataService.getCloudOwnerAndLcpCloudRegionFromOptionId($scope.regionSelection.optionId).cloudRegionId; - return ($scope.megaRegion).indexOf(cloudRegionId) > -1 + return ($scope.megaRegion).indexOf(cloudRegionId) > -1; } else { return false; } diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/services/OwningEntityService.js b/vid-app-common/src/main/webapp/app/vid/scripts/services/OwningEntityService.js index 12fd0d042..2e470f656 100644 --- a/vid-app-common/src/main/webapp/app/vid/scripts/services/OwningEntityService.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/services/OwningEntityService.js @@ -33,7 +33,7 @@ var OwningEntityService = function ($http, $log, PropertyService, UtilityService successCallbackFunction(response.data.categoryParameters); }).catch(UtilityService.runHttpErrorHandler); } - } + }; }; appDS2.factory("OwningEntityService", ["$http", "$log", "PropertyService", diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/services/aaiService.js b/vid-app-common/src/main/webapp/app/vid/scripts/services/aaiService.js index 0e1beefb6..d3075764e 100755 --- a/vid-app-common/src/main/webapp/app/vid/scripts/services/aaiService.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/services/aaiService.js @@ -86,13 +86,13 @@ var AaiService = function ($http, $log, PropertyService, UtilityService, COMPONE }).join("&"); } - function getConfigParams(vnfRole, cloudRegion) { + function getConfigParams(nfRole, cloudRegion) { if (!featureFlags.isOn(COMPONENT.FEATURE_FLAGS.FLAG_FLASH_CLOUD_REGION_AND_NF_ROLE_OPTIONAL_SEARCH)) { return null } let data = { - vnfRole: vnfRole, + nfRole: nfRole, cloudRegion: cloudRegion, }; @@ -492,7 +492,7 @@ var AaiService = function ($http, $log, PropertyService, UtilityService, COMPONE successCallbackFunction(lcpCloudRegionTenants); }).catch(function (error) { (UtilityService.runHttpErrorHandler(error.data, error.status)); - }) + }); }, getSubscribers: function (successCallbackFunction) { $log @@ -553,7 +553,7 @@ var AaiService = function ($http, $log, PropertyService, UtilityService, COMPONE catchCallbackFunction(); } UtilityService.runHttpErrorHandler(response, status); - }) + }); }, getServices: function (successCallbackFunction) { $log @@ -646,13 +646,13 @@ var AaiService = function ($http, $log, PropertyService, UtilityService, COMPONE (UtilityService.runHttpErrorHandler); }, - getVnfsByCustomerIdAndServiceType: function (globalSubscriberId, serviceType, vnfRole, cloudRegion) { + getVnfsByCustomerIdAndServiceType: function (globalSubscriberId, serviceType, nfRole, cloudRegion) { let deferred = $q.defer(); let url = globalSubscriberId + COMPONENT.FORWARD_SLASH + serviceType const path = COMPONENT.AAI_GET_VNF_BY_CUSTOMERID_AND_SERVICETYPE + url; - let config = getConfigParams(vnfRole, cloudRegion); + let config = getConfigParams(nfRole, cloudRegion); if (UtilityService.hasContents(globalSubscriberId) && UtilityService.hasContents(serviceType)) { diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/services/componentService.js b/vid-app-common/src/main/webapp/app/vid/scripts/services/componentService.js index 0bc8f0b57..251aeef07 100755 --- a/vid-app-common/src/main/webapp/app/vid/scripts/services/componentService.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/services/componentService.js @@ -177,8 +177,8 @@ var ComponentService = function($log, COMPONENT, UtilityService) { getFieldDisplayName : function(name) {
return getDisplayName(name);
}
- }
-}
+ };
+};
appDS2.factory("ComponentService", [ "$log", "COMPONENT", "UtilityService",
ComponentService ]);
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/services/creationService.js b/vid-app-common/src/main/webapp/app/vid/scripts/services/creationService.js index 972463745..15ba51941 100755 --- a/vid-app-common/src/main/webapp/app/vid/scripts/services/creationService.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/services/creationService.js @@ -417,7 +417,7 @@ var CreationService = function($log, AaiService, AsdcService, DataService,VIDCON option = { name: constraintsArray[i][PARAMETER.VALID_VALUES][j], isDefault: false - } + }; if ( ( UtilityService.hasContents (inputs[key][PARAMETER.DEFAULT]) ) && (inputs[key][PARAMETER.DEFAULT] === constraintsArray[i][PARAMETER.VALID_VALUES][j] ) ) { option = { @@ -481,7 +481,7 @@ var CreationService = function($log, AaiService, AsdcService, DataService,VIDCON parameter.min = constraintsArray[i][PARAMETER.IN_RANGE][0]; parameter.max = constraintsArray[i][PARAMETER.IN_RANGE][1]; parameter.type = PARAMETER.NUMBER; - parameter.value = inputs[key][PARAMETER.DEFAULT] + parameter.value = inputs[key][PARAMETER.DEFAULT]; parameterList.push(parameter); parameterPushed = true; //console.log ("pushed param for in_range"); @@ -492,7 +492,7 @@ var CreationService = function($log, AaiService, AsdcService, DataService,VIDCON if ( constraintsArray[i][PARAMETER.GREATER_THAN] != null ) { parameter.type = PARAMETER.NUMBER; parameter.min = constraintsArray[i][PARAMETER.GREATER_THAN]; - parameter.value = inputs[key][PARAMETER.DEFAULT] + parameter.value = inputs[key][PARAMETER.DEFAULT]; parameterList.push(parameter); parameterPushed = true; //console.log ("pushed param for greater_than"); @@ -515,7 +515,7 @@ var CreationService = function($log, AaiService, AsdcService, DataService,VIDCON var inventoryItem = DataService.getInventoryItem(); var inventoryInfo = ComponentService.getInventoryInfo( _this.componentId, inventoryItem); - } + }; /* * The "*Mso*" functions return URL and request details that can be passed @@ -723,7 +723,7 @@ var CreationService = function($log, AaiService, AsdcService, DataService,VIDCON if(lineOfBusiness) { requestDetails.lineOfBusiness = { lineOfBusinessName: lineOfBusiness - } + }; } requestDetails.platform = { @@ -741,7 +741,7 @@ var CreationService = function($log, AaiService, AsdcService, DataService,VIDCON requestDetails.lineOfBusiness = { lineOfBusinessName: lineOfBusinessNamesString - } + }; } var platform = getValueFromList(FIELD.ID.PLATFORM, parameterList); @@ -866,7 +866,7 @@ var CreationService = function($log, AaiService, AsdcService, DataService,VIDCON "modelCustomizationId": modelInfo.customizationUuid, "modelCustomizationName": modelInfo.modelCustomizationName } - } + }; } relatedInstanceList.push({ relatedInstance : relatedInstance @@ -918,13 +918,13 @@ var CreationService = function($log, AaiService, AsdcService, DataService,VIDCON arbitraryParameters = { name: parameter.id, value: parameter.value - } + }; arbitraryArray.push(arbitraryParameters); } } } return (arbitraryArray); - } + }; var getModel = function() { AsdcService.getModel(DataService.getModelId(), function(response) { @@ -1310,8 +1310,8 @@ var CreationService = function($log, AaiService, AsdcService, DataService,VIDCON getMsoRequestDetails : getMsoRequestDetails, getMsoUrl : getMsoUrl, setInventoryInfo: setInventoryInfo - } -} + }; +}; appDS2.factory("CreationService", [ "$log", "AaiService", "AsdcService", "DataService","VIDCONFIGURATION", "ComponentService", "COMPONENT", "FIELD", "PARAMETER", diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/services/dataService.js b/vid-app-common/src/main/webapp/app/vid/scripts/services/dataService.js index 84413f890..95bdb3a14 100755 --- a/vid-app-common/src/main/webapp/app/vid/scripts/services/dataService.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/services/dataService.js @@ -43,7 +43,7 @@ var DataService = function($log, DataService) { return {
cloudOwner: cloudRegionTenant.cloudOwner,
cloudRegionId: cloudRegionTenant.cloudRegionId
- }
+ };
},
getGlobalCustomerId : function() {
return _this.globalCustomerId;
@@ -405,7 +405,7 @@ var DataService = function($log, DataService) { _this.owningEntityProperties = properties;
}
- }
+ };
};
appDS2.factory("DataService", [ "$log", DataService ]);
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/services/deleteResumeService.js b/vid-app-common/src/main/webapp/app/vid/scripts/services/deleteResumeService.js index c13c721f4..a50fb2501 100644 --- a/vid-app-common/src/main/webapp/app/vid/scripts/services/deleteResumeService.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/services/deleteResumeService.js @@ -382,7 +382,7 @@ var DeleteResumeService = function($log, AaiService, AsdcService, DataService, }; } return requestDetails; - } + }; var getLcpRegion = function() { var cloudRegionTenantList = DataService.getCloudRegionTenantList(); @@ -520,8 +520,8 @@ var DeleteResumeService = function($log, AaiService, AsdcService, DataService, getMsoRequestDetails : getMsoRequestDetails, getMsoUrl : getMsoUrl, isMacro : DataService.getMacro() - } -} + }; +}; appDS2.factory("DeleteResumeService", [ "$log", "AaiService", "AsdcService", "DataService", "ComponentService", "COMPONENT", "FIELD", diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/services/detailsService.js b/vid-app-common/src/main/webapp/app/vid/scripts/services/detailsService.js index de5e9c007..a2e20e4a2 100755 --- a/vid-app-common/src/main/webapp/app/vid/scripts/services/detailsService.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/services/detailsService.js @@ -113,8 +113,8 @@ var DetailsService = function ($log, DataService, ComponentService, COMPONENT, getSummaryList: getSummaryList,
getDetailsList: getDetailsList,
getMsoFilterString: getMsoFilterString
- }
-}
+ };
+};
appDS2.factory("DetailsService", ["$log", "DataService", "ComponentService",
"COMPONENT", "FIELD", "UtilityService", DetailsService]);
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/services/msoService.js b/vid-app-common/src/main/webapp/app/vid/scripts/services/msoService.js index 3f902e86e..ac6eeeac6 100755 --- a/vid-app-common/src/main/webapp/app/vid/scripts/services/msoService.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/services/msoService.js @@ -42,7 +42,7 @@ var MsoService = function($http, $log, $q, PropertyService, AaiService, UtilityS if (response.data.status < 200 || response.data.status > 202) {
throw {
type : FIELD.ID.MSO_FAILURE
- }
+ };
}
};
@@ -172,7 +172,7 @@ var MsoService = function($http, $log, $q, PropertyService, AaiService, UtilityS getFormattedCommonResponse : function(response) {
return UtilityService.getCurrentTime() + " HTTP Status: "
+ UtilityService.getHttpStatusText(response.data.status)
- + "\n" + angular.toJson(response.data.entity, true)
+ + "\n" + angular.toJson(response.data.entity, true);
},
checkValidStatus : checkValidStatus,
@@ -326,7 +326,7 @@ var MsoService = function($http, $log, $q, PropertyService, AaiService, UtilityS $log.debug("model info from instance", instance);
$log.debug("model info to model", modelInfo);
- return modelInfo
+ return modelInfo;
};
var payload = {
@@ -572,7 +572,7 @@ var MsoService = function($http, $log, $q, PropertyService, AaiService, UtilityS return sendPostRequestWithBody(url, payload);
}
- }
+ };
};
appDS2.factory("MsoService", MsoService );
|