use of com.hack23.cia.service.impl.action.common.BusinessService in project cia by Hack23.
the class ApplicationManagerImpl method service.
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public ServiceResponse service(final ServiceRequest serviceRequest) {
final BusinessService businessService = serviceRequestBusinessServiceMap.get(serviceRequest.getClass());
ServiceResponse serviceResponse = null;
if (businessService != null) {
serviceResponse = businessService.processService(serviceRequest);
}
return serviceResponse;
}
use of com.hack23.cia.service.impl.action.common.BusinessService in project cia by Hack23.
the class ApplicationManagerImpl method asyncService.
@Async("SecureTaskExecutor")
@Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
@Override
public Future<ServiceResponse> asyncService(final ServiceRequest serviceRequest) {
final BusinessService businessService = serviceRequestBusinessServiceMap.get(serviceRequest.getClass());
ServiceResponse serviceResponse = null;
if (businessService != null) {
serviceResponse = businessService.processService(serviceRequest);
}
return new AsyncResult<>(serviceResponse);
}
Aggregations