package com.iqser.red.service.persistence.management.v1.processor.service.job;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.stereotype.Service;

import com.iqser.red.service.persistence.management.v1.processor.service.KeyCloakUserSyncService;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@Service
@RequiredArgsConstructor
public class KeyCloakUserSyncJob implements Job {

    private final KeyCloakUserSyncService keyCloakUserSyncService;


    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {

        keyCloakUserSyncService.syncUsersWithKC();
    }

}
