blob: 702e3ec96bdca67b75364ebc7d853cbef696933b [file] [log] [blame]
package org.eclipse.openk.contactbasedata.service;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;
import java.time.LocalDate;
@Log4j2
@Service
public class SchedulingService {
@Autowired
LdapUserService ldapUserService;
@Scheduled(cron = "${ldap.scheduling.cron-expression}")
public void scheduleTaskSynchronize() {
log.info("Executing scheduled task: Synchronizing Users");
ldapUserService.synchronizeLDAP();
log.info("Finished scheduled task: Synchronizing Users");
}
}