package com.eactive.testmaster.config;

import com.eactive.testmaster.common.util.SecurityUtil;
import java.util.Optional;
import org.springframework.data.domain.AuditorAware;

public class AuditorAwareImpl implements AuditorAware<String> {

    @Override
    public Optional<String> getCurrentAuditor() {
        return Optional.ofNullable(SecurityUtil.getCurrentUserEsntlId());
    }

}
