Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 1 | import { Injectable } from '@angular/core'; |
| 2 | |
| 3 | @Injectable() |
| 4 | export class DataService { |
| 5 | |
| 6 | private static _availableVolumeGroupList; |
| 7 | private static _cloudRegionTenantList; |
| 8 | private static _globalCustomerId; |
| 9 | private static _customizationUUID; |
| 10 | private static _rescustomizationUUID; |
| 11 | private static _inventoryItem; |
| 12 | private static _modelId; |
| 13 | private static _modelInstanceName; |
| 14 | private static _modelInfo; |
| 15 | private static _networkInstanceId; |
| 16 | private static _serviceIdList; |
| 17 | private static _aicZones; |
| 18 | private static _aicZone; |
| 19 | private static _serviceInstanceId; |
| 20 | private static _serviceInstanceName; |
| 21 | private static _serviceName; |
| 22 | private static _serviceType; |
| 23 | private static _serviceUuid; |
| 24 | private static _serviceTypeName; |
| 25 | private static _createSubscriberName; |
| 26 | private static _uploadSupplementoryDataFile; |
| 27 | private static _supplementoryDataFile; |
| 28 | private static _subscriberId; |
| 29 | private static _loggedInUserId; |
| 30 | private static _subscriberName; |
| 31 | private static _subscribers; |
| 32 | private static _subscriptionServiceTypeList; |
| 33 | private static _userParams; |
| 34 | private static _userServiceInstanceName; |
| 35 | private static _vfModuleInstanceId; |
| 36 | private static _vnfInstanceId; |
| 37 | private static _vfModuleInstanceName; |
| 38 | private static _volumeGroupInstanceId; |
| 39 | private static _lcpRegion; |
| 40 | private static _tenant; |
| 41 | private static _treeHandle; |
| 42 | private static _serviceInstanceToCustomer; |
| 43 | private static _aLaCarte: boolean; |
| 44 | private static _macro: boolean; |
| 45 | private static _resources; |
| 46 | private static _syspropProvStatusList; |
| 47 | private static _updatedvnfProvStatus; |
| 48 | private static _arbitraryParameters; |
| 49 | private static _hideServiceFields; |
| 50 | private static _serviceProxies; |
| 51 | private static _sourceServiceProxies; |
| 52 | private static _collectorServiceProxies; |
| 53 | private static _configurationByPolicy; |
| 54 | private static _suppressRollback; |
| 55 | private static _portMirroningConfigFields; |
| 56 | private static _configurationInstanceId: string; |
| 57 | private static _configurationStatus: string; |
| 58 | private static _portStatus: string; |
| 59 | private static _portId: string; |
| 60 | private static _pnf; |
| 61 | private static _owningEntityProperties; |
| 62 | |
| 63 | static get availableVolumeGroupList() { |
| 64 | return this._availableVolumeGroupList; |
| 65 | } |
| 66 | |
| 67 | static set availableVolumeGroupList(value) { |
| 68 | this._availableVolumeGroupList = value; |
| 69 | } |
| 70 | |
| 71 | static get cloudRegionTenantList() { |
| 72 | return this._cloudRegionTenantList; |
| 73 | } |
| 74 | |
| 75 | static set cloudRegionTenantList(value) { |
| 76 | this._cloudRegionTenantList = value; |
| 77 | } |
| 78 | |
| 79 | static get globalCustomerId() { |
| 80 | return this._globalCustomerId; |
| 81 | } |
| 82 | |
| 83 | static set globalCustomerId(value) { |
| 84 | this._globalCustomerId = value; |
| 85 | } |
| 86 | |
| 87 | static get customizationUUID() { |
| 88 | return this._customizationUUID; |
| 89 | } |
| 90 | |
| 91 | static set customizationUUID(value) { |
| 92 | this._customizationUUID = value; |
| 93 | } |
| 94 | |
| 95 | static get rescustomizationUUID() { |
| 96 | return this._rescustomizationUUID; |
| 97 | } |
| 98 | |
| 99 | static set rescustomizationUUID(value) { |
| 100 | this._rescustomizationUUID = value; |
| 101 | } |
| 102 | |
| 103 | static get inventoryItem() { |
| 104 | return this._inventoryItem; |
| 105 | } |
| 106 | |
| 107 | static set inventoryItem(value) { |
| 108 | this._inventoryItem = value; |
| 109 | } |
| 110 | |
| 111 | static get modelId() { |
| 112 | return this._modelId; |
| 113 | } |
| 114 | |
| 115 | static set modelId(value) { |
| 116 | this._modelId = value; |
| 117 | } |
| 118 | |
| 119 | static get modelInstanceName() { |
| 120 | return this._modelInstanceName; |
| 121 | } |
| 122 | |
| 123 | static set modelInstanceName(value) { |
| 124 | this._modelInstanceName = value; |
| 125 | } |
| 126 | |
| 127 | static get modelInfo() { |
| 128 | return this._modelInfo; |
| 129 | } |
| 130 | |
| 131 | static set modelInfo(value) { |
| 132 | this._modelInfo = value; |
| 133 | } |
| 134 | |
| 135 | static getModelInfo(componentId) { |
| 136 | return this._modelInfo[componentId]; |
| 137 | } |
| 138 | |
| 139 | static setModelInfo(componentId, modelInfo) { |
| 140 | if (!this._modelInfo) { |
| 141 | this._modelInfo = {}; |
| 142 | } |
| 143 | this._modelInfo[componentId] = modelInfo; |
| 144 | } |
| 145 | |
| 146 | static get networkInstanceId() { |
| 147 | return this._networkInstanceId; |
| 148 | } |
| 149 | |
| 150 | static set networkInstanceId(value) { |
| 151 | this._networkInstanceId = value; |
| 152 | } |
| 153 | |
| 154 | static get serviceIdList() { |
| 155 | return this._serviceIdList; |
| 156 | } |
| 157 | |
| 158 | static set serviceIdList(value) { |
| 159 | this._serviceIdList = value; |
| 160 | } |
| 161 | |
| 162 | static get aicZones() { |
| 163 | return this._aicZones; |
| 164 | } |
| 165 | |
| 166 | static set aicZones(value) { |
| 167 | this._aicZones = value; |
| 168 | } |
| 169 | |
| 170 | static get aicZone() { |
| 171 | return this._aicZone; |
| 172 | } |
| 173 | |
| 174 | static set aicZone(value) { |
| 175 | this._aicZone = value; |
| 176 | } |
| 177 | |
| 178 | static get serviceInstanceId() { |
| 179 | return this._serviceInstanceId; |
| 180 | } |
| 181 | |
| 182 | static set serviceInstanceId(value) { |
| 183 | this._serviceInstanceId = value; |
| 184 | } |
| 185 | |
| 186 | static get serviceInstanceName() { |
| 187 | return this._serviceInstanceName; |
| 188 | } |
| 189 | |
| 190 | static set serviceInstanceName(value) { |
| 191 | this._serviceInstanceName = value; |
| 192 | } |
| 193 | |
| 194 | static get serviceName() { |
| 195 | return this._serviceName; |
| 196 | } |
| 197 | |
| 198 | static set serviceName(value) { |
| 199 | this._serviceName = value; |
| 200 | } |
| 201 | |
| 202 | static get serviceType() { |
| 203 | return this._serviceType; |
| 204 | } |
| 205 | |
| 206 | static set serviceType(value) { |
| 207 | this._serviceType = value; |
| 208 | } |
| 209 | |
| 210 | static get serviceUuid() { |
| 211 | return this._serviceUuid; |
| 212 | } |
| 213 | |
| 214 | static set serviceUuid(value) { |
| 215 | this._serviceUuid = value; |
| 216 | } |
| 217 | |
| 218 | static get serviceTypeName() { |
| 219 | return this._serviceTypeName; |
| 220 | } |
| 221 | |
| 222 | static set serviceTypeName(value) { |
| 223 | this._serviceTypeName = value; |
| 224 | } |
| 225 | |
| 226 | static get createSubscriberName() { |
| 227 | return this._createSubscriberName; |
| 228 | } |
| 229 | |
| 230 | static set createSubscriberName(value) { |
| 231 | this._createSubscriberName = value; |
| 232 | } |
| 233 | |
| 234 | static get uploadSupplementoryDataFile() { |
| 235 | return this._uploadSupplementoryDataFile; |
| 236 | } |
| 237 | |
| 238 | static set uploadSupplementoryDataFile(value) { |
| 239 | this._uploadSupplementoryDataFile = value; |
| 240 | } |
| 241 | |
| 242 | static get supplementoryDataFile() { |
| 243 | return this._supplementoryDataFile; |
| 244 | } |
| 245 | |
| 246 | static set supplementoryDataFile(value) { |
| 247 | this._supplementoryDataFile = value; |
| 248 | } |
| 249 | |
| 250 | static get subscriberId() { |
| 251 | return this._subscriberId; |
| 252 | } |
| 253 | |
| 254 | static set subscriberId(value) { |
| 255 | this._subscriberId = value; |
| 256 | } |
| 257 | |
| 258 | static get loggedInUserId() { |
| 259 | return this._loggedInUserId; |
| 260 | } |
| 261 | |
| 262 | static set loggedInUserId(value) { |
| 263 | this._loggedInUserId = value; |
| 264 | } |
| 265 | |
| 266 | static get subscriberName() { |
| 267 | return this._subscriberName; |
| 268 | } |
| 269 | |
| 270 | static set subscriberName(value) { |
| 271 | this._subscriberName = value; |
| 272 | } |
| 273 | |
| 274 | static get subscribers() { |
| 275 | return this._subscribers; |
| 276 | } |
| 277 | |
| 278 | static set subscribers(value) { |
| 279 | this._subscribers = value; |
| 280 | } |
| 281 | |
| 282 | static get subscriptionServiceTypeList() { |
| 283 | return this._subscriptionServiceTypeList; |
| 284 | } |
| 285 | |
| 286 | static set subscriptionServiceTypeList(value) { |
| 287 | this._subscriptionServiceTypeList = value; |
| 288 | } |
| 289 | |
| 290 | static get userParams() { |
| 291 | return this._userParams; |
| 292 | } |
| 293 | |
| 294 | static set userParams(value) { |
| 295 | this._userParams = value; |
| 296 | } |
| 297 | |
| 298 | static get userServiceInstanceName() { |
| 299 | return this._userServiceInstanceName; |
| 300 | } |
| 301 | |
| 302 | static set userServiceInstanceName(value) { |
| 303 | this._userServiceInstanceName = value; |
| 304 | } |
| 305 | |
| 306 | static get vfModuleInstanceId() { |
| 307 | return this._vfModuleInstanceId; |
| 308 | } |
| 309 | |
| 310 | static set vfModuleInstanceId(value) { |
| 311 | this._vfModuleInstanceId = value; |
| 312 | } |
| 313 | |
| 314 | static get vnfInstanceId() { |
| 315 | return this._vnfInstanceId; |
| 316 | } |
| 317 | |
| 318 | static set vnfInstanceId(value) { |
| 319 | this._vnfInstanceId = value; |
| 320 | } |
| 321 | |
| 322 | static get vfModuleInstanceName() { |
| 323 | return this._vfModuleInstanceName; |
| 324 | } |
| 325 | |
| 326 | static set vfModuleInstanceName(value) { |
| 327 | this._vfModuleInstanceName = value; |
| 328 | } |
| 329 | |
| 330 | static get volumeGroupInstanceId() { |
| 331 | return this._volumeGroupInstanceId; |
| 332 | } |
| 333 | |
| 334 | static set volumeGroupInstanceId(value) { |
| 335 | this._volumeGroupInstanceId = value; |
| 336 | } |
| 337 | |
| 338 | static get lcpRegion() { |
| 339 | return this._lcpRegion; |
| 340 | } |
| 341 | |
| 342 | static set lcpRegion(value) { |
| 343 | this._lcpRegion = value; |
| 344 | } |
| 345 | |
| 346 | static get tenant() { |
| 347 | return this._tenant; |
| 348 | } |
| 349 | |
| 350 | static set tenant(value) { |
| 351 | this._tenant = value; |
| 352 | } |
| 353 | |
| 354 | static get treeHandle() { |
| 355 | return this._treeHandle; |
| 356 | } |
| 357 | |
| 358 | static set treeHandle(value) { |
| 359 | this._treeHandle = value; |
| 360 | } |
| 361 | |
| 362 | static get serviceInstanceToCustomer() { |
| 363 | return this._serviceInstanceToCustomer; |
| 364 | } |
| 365 | |
| 366 | static set serviceInstanceToCustomer(value) { |
| 367 | this._serviceInstanceToCustomer = value; |
| 368 | } |
| 369 | |
| 370 | static get aLaCarte() { |
| 371 | if (!this._aLaCarte) { |
| 372 | return true; |
| 373 | } |
| 374 | return this._aLaCarte; |
| 375 | } |
| 376 | |
| 377 | static set aLaCarte(value: boolean) { |
| 378 | this._aLaCarte = value; |
| 379 | } |
| 380 | |
| 381 | static get macro() { |
| 382 | if (!this._macro) { |
| 383 | return false; |
| 384 | } |
| 385 | return this._macro; |
| 386 | } |
| 387 | |
| 388 | static set macro(value: boolean) { |
| 389 | this._macro = value; |
| 390 | } |
| 391 | |
| 392 | static get resources() { |
| 393 | return this._resources; |
| 394 | } |
| 395 | |
| 396 | static set resources(value) { |
| 397 | this._resources = value; |
| 398 | } |
| 399 | |
| 400 | static get syspropProvStatusList() { |
| 401 | return this._syspropProvStatusList; |
| 402 | } |
| 403 | |
| 404 | static set syspropProvStatusList(value) { |
| 405 | this._syspropProvStatusList = value; |
| 406 | } |
| 407 | |
| 408 | static get updatedvnfProvStatus() { |
| 409 | return this._updatedvnfProvStatus; |
| 410 | } |
| 411 | |
| 412 | static set updatedvnfProvStatus(value) { |
| 413 | this._updatedvnfProvStatus = value; |
| 414 | } |
| 415 | |
| 416 | static get arbitraryParameters() { |
| 417 | return this._arbitraryParameters; |
| 418 | } |
| 419 | |
| 420 | static set arbitraryParameters(value) { |
| 421 | this._arbitraryParameters = value; |
| 422 | } |
| 423 | |
| 424 | static get hideServiceFields() { |
| 425 | return this._hideServiceFields; |
| 426 | } |
| 427 | |
| 428 | static set hideServiceFields(value) { |
| 429 | this._hideServiceFields = value; |
| 430 | } |
| 431 | |
| 432 | static get serviceProxies() { |
| 433 | return this._serviceProxies; |
| 434 | } |
| 435 | |
| 436 | static set serviceProxies(value) { |
| 437 | this._serviceProxies = value; |
| 438 | } |
| 439 | |
| 440 | static get sourceServiceProxies() { |
| 441 | return this._sourceServiceProxies; |
| 442 | } |
| 443 | |
| 444 | static set sourceServiceProxies(value) { |
| 445 | this._sourceServiceProxies = value; |
| 446 | } |
| 447 | |
| 448 | static get collectorServiceProxies() { |
| 449 | return this._collectorServiceProxies; |
| 450 | } |
| 451 | |
| 452 | static set collectorServiceProxies(value) { |
| 453 | this._collectorServiceProxies = value; |
| 454 | } |
| 455 | |
| 456 | static get configurationByPolicy() { |
| 457 | return this._configurationByPolicy; |
| 458 | } |
| 459 | |
| 460 | static set configurationByPolicy(value) { |
| 461 | this._configurationByPolicy = value; |
| 462 | } |
| 463 | |
| 464 | static get suppressRollback() { |
| 465 | return this._suppressRollback; |
| 466 | } |
| 467 | |
| 468 | static set suppressRollback(value) { |
| 469 | this._suppressRollback = value; |
| 470 | } |
| 471 | |
| 472 | static get portMirroningConfigFields() { |
| 473 | return this._portMirroningConfigFields; |
| 474 | } |
| 475 | |
| 476 | static set portMirroningConfigFields(value) { |
| 477 | this._portMirroningConfigFields = value; |
| 478 | } |
| 479 | |
| 480 | static get configurationInstanceId(): string { |
| 481 | return this._configurationInstanceId; |
| 482 | } |
| 483 | |
| 484 | static set configurationInstanceId(value: string) { |
| 485 | this._configurationInstanceId = value; |
| 486 | } |
| 487 | |
| 488 | static get configurationStatus(): string { |
| 489 | return this._configurationStatus; |
| 490 | } |
| 491 | |
| 492 | static set configurationStatus(value: string) { |
| 493 | this._configurationStatus = value; |
| 494 | } |
| 495 | |
| 496 | static get portStatus(): string { |
| 497 | return this._portStatus; |
| 498 | } |
| 499 | |
| 500 | static set portStatus(value: string) { |
| 501 | this._portStatus = value; |
| 502 | } |
| 503 | |
| 504 | static get portId(): string { |
| 505 | return this._portId; |
| 506 | } |
| 507 | |
| 508 | static set portId(value: string) { |
| 509 | this._portId = value; |
| 510 | } |
| 511 | |
| 512 | static get pnf() { |
| 513 | return this._pnf; |
| 514 | } |
| 515 | |
| 516 | static set pnf(value) { |
| 517 | this._pnf = value; |
| 518 | } |
| 519 | |
| 520 | static get owningEntityProperties() { |
| 521 | return this._owningEntityProperties; |
| 522 | } |
| 523 | |
| 524 | static set owningEntityProperties(value) { |
| 525 | this._owningEntityProperties = value; |
| 526 | } |
| 527 | |
| 528 | } |