use of eu.bcvsolutions.idm.acc.service.api.SynchronizationEntityExecutor in project CzechIdMng by bcvsolutions.
the class DefaultSynchronizationService method process.
/**
* Called from long running task
*/
@Override
public AbstractSysSyncConfigDto process() {
AbstractSysSyncConfigDto config = synchronizationConfigService.get(synchronizationConfigId);
//
if (config == null) {
throw new ProvisioningException(AccResultCode.SYNCHRONIZATION_NOT_FOUND, ImmutableMap.of("id", synchronizationConfigId));
}
SysSystemMappingDto mapping = systemMappingService.get(config.getSystemMapping());
Assert.notNull(mapping);
SystemEntityType entityType = mapping.getEntityType();
SynchronizationEntityExecutor executor = getSyncExecutor(entityType);
executor.setLongRunningTaskExecutor(this);
return executor.process(synchronizationConfigId);
}
Aggregations