1 package org.onap.usecaseui.intentanalysis.intentProcessService;
3 import org.springframework.beans.factory.annotation.Autowired;
4 import org.springframework.stereotype.Service;
7 public class IntentProcessService {
9 IntentDetectionService intentDetectionServiceImpl;
11 IntentInvestigationService intentInvestigationService;
13 IntentDefinitionService intentDefinitionService;
15 IntentDistributionService intentDistributionService;
17 IntentOperationService intentOperationService;
19 private Function intentOwner;
20 private Function intentHandler;
23 public void setIntentRole(Function intentOwner,Function intentHandler){
24 if (intentOwner!= null){
25 this.intentOwner = intentOwner;
27 if (intentHandler!= null){
28 this.intentHandler= intentHandler;
31 public void intentProcess() {
32 intentDetectionServiceImpl.setIntentRole(intentOwner,intentHandler);
33 intentDetectionServiceImpl.detectionProcess();
35 //investigation process
36 intentInvestigationService.setIntentRole(intentOwner,intentHandler);
37 intentInvestigationService.investigationProcess();//List<handler>?
40 intentDefinitionService.setIntentRole(intentOwner,intentHandler);
41 intentDefinitionService.definitionPorcess();
43 //distribution process
44 intentDistributionService.setIntentRole(intentOwner,intentHandler);
45 intentDistributionService.distributionProcess();
48 intentOperationService.setIntentRole(intentOwner,intentHandler);
49 intentOperationService.operationProcess();