001package io.ebean.config;
002
003/**
004 * Provides the current user in order to support 'Who created', 'Who modified' and other audit features.
005 */
006@FunctionalInterface
007public interface CurrentUserProvider {
008
009  /**
010   * Return the current user id.
011   * <p>
012   * The type returned should match the type of the properties annotated
013   * with @WhoCreated and @WhoModified. These are typically String, Long or UUID.
014   * </p>
015   */
016  Object currentUser();
017}