aboutsummaryrefslogtreecommitdiffstats
path: root/bpmn/MSOCommonBPMN/src/main/java/org/openecomp/mso/client/aai/AAIUpdatorImpl.java
blob: 50b3e61d968f680bff1656819f50756af5e6ecc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package org.openecomp.mso.client.aai;

import org.springframework.beans.factory.annotation.Autowired;

public class AAIUpdatorImpl implements AAIUpdator {
	
	@Autowired
	protected AAIRestClient client;
	
	public AAIRestClient getClient() {
		return client;
	}


	public void setClient(AAIRestClient client) {
		this.client = client;
	}

	@Override
	public void updateVnfToLocked(String vnfId, String uuid) throws Exception {
		client.updateMaintenceFlagVnfId(vnfId, true, uuid);
	}

	@Override
	public void updateVnfToUnLocked(String vnfId, String uuid) throws Exception {
		client.updateMaintenceFlagVnfId(vnfId, false, uuid);
	}

}