Merge "sonar blocker issue fixes"
[so.git] / bpmn / MSOCommonBPMN / src / main / java / org / openecomp / mso / client / aai / AAIUpdatorImpl.java
1 package org.openecomp.mso.client.aai;
2
3 import org.springframework.beans.factory.annotation.Autowired;
4
5 public class AAIUpdatorImpl implements AAIUpdator {
6         
7         @Autowired
8         protected AAIRestClient client;
9         
10         public AAIRestClient getClient() {
11                 return client;
12         }
13
14
15         public void setClient(AAIRestClient client) {
16                 this.client = client;
17         }
18
19         @Override
20         public void updateVnfToLocked(String vnfId, String uuid) throws Exception {
21                 client.updateMaintenceFlagVnfId(vnfId, true, uuid);
22         }
23
24         @Override
25         public void updateVnfToUnLocked(String vnfId, String uuid) throws Exception {
26                 client.updateMaintenceFlagVnfId(vnfId, false, uuid);
27         }
28
29 }