Module io.ebean.api

Interface CurrentUserProvider

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface CurrentUserProvider
Provides the current user in order to support 'Who created', 'Who modified' and other audit features.
  • Method Summary

    Modifier and Type
    Method
    Description
    Return the current user id.
  • Method Details

    • currentUser

      Object currentUser()
      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.