[VID-3] Setting docker image tag
[vid.git] / vid / src / main / webapp / app / vid / scripts / services / dataService.js
1 /*-
2  * ============LICENSE_START=======================================================
3  * VID
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
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
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=========================================================
19  */
20
21 "use strict";
22
23 var DataService = function($log, DataService) {
24
25         var _this = this;
26
27         return {
28                 getAvailableVolumeGroupList : function() {
29                         return _this.availableVolumeGroupList;
30                 },
31                 setAvailableVolumeGroupList : function(availableVolumeGroupList) {
32                         _this.availableVolumeGroupList = availableVolumeGroupList;
33                 },
34                 getCloudRegionTenantList : function() {
35                         return _this.cloudRegionTenantList;
36                 },
37                 setCloudRegionTenantList : function(cloudRegionTenantList) {
38                         _this.cloudRegionTenantList = cloudRegionTenantList;
39                 },
40                 getGlobalCustomerId : function() {
41                         return _this.globalCustomerId;
42                 },
43                 setGlobalCustomerId : function(globalCustomerId) {
44                         _this.globalCustomerId = globalCustomerId;
45                 },
46                 getInventoryItem : function() {
47                         return _this.inventoryItem;
48                 },
49                 setInventoryItem : function(inventoryItem) {
50                         _this.inventoryItem = inventoryItem;
51                 },
52                 getModelId : function() {
53                         return _this.modelId;
54                 },
55                 setModelId : function(modelId) {
56                         _this.modelId = modelId;
57                 },
58                 getModelInstanceName : function() {
59                         return _this.modelInstanceName;
60                 },
61                 setModelInstanceName : function(modelInstanceName) {
62                         _this.modelInstanceName = modelInstanceName;
63                 },
64                 getModelInfo : function(componentId) {
65                         return _this.modelInfo[componentId];
66                 },
67                 setModelInfo : function(componentId, modelInfo) {
68                         if (_this.modelInfo === undefined) {
69                                 _this.modelInfo = new Object;
70                         }
71                         _this.modelInfo[componentId] = modelInfo;
72                 },
73                 getNetworkInstanceId : function() {
74                         return _this.networkInstanceId;
75                 },
76                 setNetworkInstanceId : function(networkInstanceId) {
77                         _this.networkInstanceId = networkInstanceId;
78                 },
79                 getServiceIdList : function() {
80                         return _this.serviceIdList;
81                 },
82                 setServiceIdList : function(serviceIdList) {
83                         _this.serviceIdList = serviceIdList;
84                 },
85                 getServiceInstanceId : function() {
86                         return _this.serviceInstanceId;
87                 },
88                 setServiceInstanceId : function(serviceInstanceId) {
89                         _this.serviceInstanceId = serviceInstanceId;
90                 },
91                 getServiceInstanceName : function() {
92                         return _this.serviceInstanceName;
93                 },
94                 setServiceInstanceName : function(serviceInstanceName) {
95                         _this.serviceInstanceName = serviceInstanceName;
96                 },
97                 getServiceName : function() {
98                         return _this.serviceName;
99                 },
100                 setServiceName : function(serviceName) {
101                         _this.serviceName = serviceName;
102                 },
103                 getServiceType : function() {
104                         return _this.serviceType;
105                 },
106                 setServiceType : function(serviceType) {
107                         _this.serviceType = serviceType;
108                 },
109                 getServiceUuid : function() {
110                         return _this.serviceUuid;
111                 },
112                 setServiceUuid : function(serviceUuid) {
113                         _this.serviceUuid = serviceUuid;
114                 },
115                 getSubscriberId : function() {
116                         return _this.subscriberId;
117                 },
118                 setSubscriberId : function(subscriberId) {
119                         _this.subscriberId = subscriberId;
120                 },
121                 getSubscriberName : function() {
122                         return _this.subscriberName;
123                 },
124                 setSubscriberName : function(subscriberName) {
125                         _this.subscriberName = subscriberName;
126                 },
127                 getSubscribers : function() {
128                         return _this.subscribers;
129                 },
130                 setSubscribers : function(subscribers) {
131                         _this.subscribers = subscribers;
132                 },
133                 getSubscriptionServiceTypeList : function() {
134                         return _this.subscriptionServiceTypeList;
135                 },
136                 setSubscriptionServiceTypeList : function(subscriptionServiceTypeList) {
137                         _this.subscriptionServiceTypeList = subscriptionServiceTypeList;
138                 },
139                 getUserParams : function() {
140                         return _this.userParams;
141                 },
142                 setUserParams : function(userParams) {
143                         _this.userParams = userParams;
144                 },
145                 getUserServiceInstanceName : function() {
146                         return _this.userServiceInstanceName;
147                 },
148                 setUserServiceInstanceName : function(userServiceInstanceName) {
149                         _this.userServiceInstanceName = userServiceInstanceName;
150                 },
151                 getVfModuleInstanceId : function() {
152                         return _this.vfModuleInstanceId;
153                 },
154                 setVfModuleInstanceId : function(vfModuleInstanceId) {
155                         _this.vfModuleInstanceId = vfModuleInstanceId;
156                 },
157                 getVnfInstanceId : function() {
158                         return _this.vnfInstanceId;
159                 },
160                 setVnfInstanceId : function(vnfInstanceId) {
161                         _this.vnfInstanceId = vnfInstanceId;
162                 },
163                 getVolumeGroupInstanceId : function() {
164                         return _this.volumeGroupInstanceId;
165                 },
166                 setVolumeGroupInstanceId : function(volumeGroupInstanceId) {
167                         _this.volumeGroupInstanceId = volumeGroupInstanceId;
168                 },
169                 getLcpRegion : function() {
170                         return _this.lcpRegion;
171                 },
172                 setLcpRegion : function(lcpRegion) {
173                         _this.lcpRegion = lcpRegion;
174                 },
175                 getTenant : function() {
176                         return _this.tenant;
177                 },
178                 setTenant : function(tenant) {
179                         _this.tenant = tenant;
180                 },
181                 getTreeHandle : function() {
182                         return _this.treeHandle;
183                 },
184                 setTreeHandle : function(treeHandle) {
185                         _this.treeHandle = treeHandle;
186                 },
187                 setServiceInstanceToCustomer : function(serviceInstanceToCustomer) {
188                         _this.serviceInstanceToCustomer = [];
189                         _this.serviceInstanceToCustomer = serviceInstanceToCustomer;
190                 },
191                 getServiceInstanceToCustomer : function() {
192                         return _this.serviceInstanceToCustomer;
193                 }
194         }
195 }
196
197 app.factory("DataService", [ "$log", DataService ]);