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=========================================================
23 var DataService = function($log, DataService) {
28 getAvailableVolumeGroupList : function() {
29 return _this.availableVolumeGroupList;
31 setAvailableVolumeGroupList : function(availableVolumeGroupList) {
32 _this.availableVolumeGroupList = availableVolumeGroupList;
34 getCloudRegionTenantList : function() {
35 return _this.cloudRegionTenantList;
37 setCloudRegionTenantList : function(cloudRegionTenantList) {
38 _this.cloudRegionTenantList = cloudRegionTenantList;
40 getGlobalCustomerId : function() {
41 return _this.globalCustomerId;
43 setGlobalCustomerId : function(globalCustomerId) {
44 _this.globalCustomerId = globalCustomerId;
46 getInventoryItem : function() {
47 return _this.inventoryItem;
49 setInventoryItem : function(inventoryItem) {
50 _this.inventoryItem = inventoryItem;
52 getModelId : function() {
55 setModelId : function(modelId) {
56 _this.modelId = modelId;
58 getModelInstanceName : function() {
59 return _this.modelInstanceName;
61 setModelInstanceName : function(modelInstanceName) {
62 _this.modelInstanceName = modelInstanceName;
64 getModelInfo : function(componentId) {
65 return _this.modelInfo[componentId];
67 setModelInfo : function(componentId, modelInfo) {
68 if (_this.modelInfo === undefined) {
69 _this.modelInfo = new Object;
71 _this.modelInfo[componentId] = modelInfo;
73 getNetworkInstanceId : function() {
74 return _this.networkInstanceId;
76 setNetworkInstanceId : function(networkInstanceId) {
77 _this.networkInstanceId = networkInstanceId;
79 getServiceIdList : function() {
80 return _this.serviceIdList;
82 setServiceIdList : function(serviceIdList) {
83 _this.serviceIdList = serviceIdList;
85 getServiceInstanceId : function() {
86 return _this.serviceInstanceId;
88 setServiceInstanceId : function(serviceInstanceId) {
89 _this.serviceInstanceId = serviceInstanceId;
91 getServiceInstanceName : function() {
92 return _this.serviceInstanceName;
94 setServiceInstanceName : function(serviceInstanceName) {
95 _this.serviceInstanceName = serviceInstanceName;
97 getServiceName : function() {
98 return _this.serviceName;
100 setServiceName : function(serviceName) {
101 _this.serviceName = serviceName;
103 getServiceType : function() {
104 return _this.serviceType;
106 setServiceType : function(serviceType) {
107 _this.serviceType = serviceType;
109 getServiceUuid : function() {
110 return _this.serviceUuid;
112 setServiceUuid : function(serviceUuid) {
113 _this.serviceUuid = serviceUuid;
115 getSubscriberId : function() {
116 return _this.subscriberId;
118 setSubscriberId : function(subscriberId) {
119 _this.subscriberId = subscriberId;
121 getSubscriberName : function() {
122 return _this.subscriberName;
124 setSubscriberName : function(subscriberName) {
125 _this.subscriberName = subscriberName;
127 getSubscribers : function() {
128 return _this.subscribers;
130 setSubscribers : function(subscribers) {
131 _this.subscribers = subscribers;
133 getSubscriptionServiceTypeList : function() {
134 return _this.subscriptionServiceTypeList;
136 setSubscriptionServiceTypeList : function(subscriptionServiceTypeList) {
137 _this.subscriptionServiceTypeList = subscriptionServiceTypeList;
139 getUserParams : function() {
140 return _this.userParams;
142 setUserParams : function(userParams) {
143 _this.userParams = userParams;
145 getUserServiceInstanceName : function() {
146 return _this.userServiceInstanceName;
148 setUserServiceInstanceName : function(userServiceInstanceName) {
149 _this.userServiceInstanceName = userServiceInstanceName;
151 getVfModuleInstanceId : function() {
152 return _this.vfModuleInstanceId;
154 setVfModuleInstanceId : function(vfModuleInstanceId) {
155 _this.vfModuleInstanceId = vfModuleInstanceId;
157 getVnfInstanceId : function() {
158 return _this.vnfInstanceId;
160 setVnfInstanceId : function(vnfInstanceId) {
161 _this.vnfInstanceId = vnfInstanceId;
163 getVolumeGroupInstanceId : function() {
164 return _this.volumeGroupInstanceId;
166 setVolumeGroupInstanceId : function(volumeGroupInstanceId) {
167 _this.volumeGroupInstanceId = volumeGroupInstanceId;
169 getLcpRegion : function() {
170 return _this.lcpRegion;
172 setLcpRegion : function(lcpRegion) {
173 _this.lcpRegion = lcpRegion;
175 getTenant : function() {
178 setTenant : function(tenant) {
179 _this.tenant = tenant;
181 getTreeHandle : function() {
182 return _this.treeHandle;
184 setTreeHandle : function(treeHandle) {
185 _this.treeHandle = treeHandle;
187 setServiceInstanceToCustomer : function(serviceInstanceToCustomer) {
188 _this.serviceInstanceToCustomer = [];
189 _this.serviceInstanceToCustomer = serviceInstanceToCustomer;
191 getServiceInstanceToCustomer : function() {
192 return _this.serviceInstanceToCustomer;
197 app.factory("DataService", [ "$log", DataService ]);