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