io.ebean.config.CurrentUserProvider Maven / Gradle / Ivy
package io.ebean.config;
/**
* Provides the current user in order to support 'Who created', 'Who modified' and other audit features.
*/
@FunctionalInterface
public interface CurrentUserProvider {
/**
* Return the current user id.
*
* The type returned should match the type of the properties annotated
* with @WhoCreated and @WhoModified. These are typically String, Long or UUID.
*
*/
Object currentUser();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy