aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/main/java/org/onap/vid/job/command/MacroServiceInstantiationCommand.java
blob: e03f9b8d7afed46ae30d5e37cb00ba85521cd16d (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
package org.onap.vid.job.command;

import org.onap.vid.changeManagement.RequestDetailsWrapper;
import org.onap.vid.job.JobCommand;
import org.onap.vid.mso.model.ServiceInstantiationRequestDetails;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;


@Component
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public class MacroServiceInstantiationCommand extends ServiceInstantiationCommand implements JobCommand {

    public MacroServiceInstantiationCommand() {
        // empty constructor
    }

    @Override
    protected RequestDetailsWrapper<ServiceInstantiationRequestDetails> generateServiceInstantiationRequest() {
        return asyncInstantiationBL.generateMacroServiceInstantiationRequest(
                getSharedData().getJobUuid(), getRequest(), optimisticUniqueServiceInstanceName, getSharedData().getUserId()
        );
    }

}