blob: 758e15e6ec89ddfbde3dcbc3ff7415dbf29ef987 (
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
|
package org.onap.simulator.presetGenerator.presets.mso.changeManagement;
import org.apache.commons.lang3.StringUtils;
import org.onap.simulator.presetGenerator.presets.mso.PresetMSOBaseCreateInstancePost;
public abstract class PresetMsoChangeManagementBase extends PresetMSOBaseCreateInstancePost {
protected final String serviceInstanceId;
protected final String vnfInstanceId;
private final String actionName;
public PresetMsoChangeManagementBase(String serviceInstanceId, String vnfInstanceId, String actionName) {
super(DEFAULT_REQUEST_ID, vnfInstanceId);
this.serviceInstanceId = serviceInstanceId;
this.vnfInstanceId = vnfInstanceId;
this.actionName = actionName;
}
@Override
public String getReqPath() {
return getRootPath() + "/serviceInstances/v./" + serviceInstanceId + "/vnfs/"+vnfInstanceId+ getReqPathTrailer();
}
protected String getReqPathTrailer() {
return StringUtils.isEmpty(actionName) ? "" : "/"+ actionName;
}
}
|