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.

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

      • 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.