Interface CurrentUserProvider

All Known Implementing Classes:
AvalonCurrentUserProvider, FrontCurrentUserProvider, WebCurrentUserProvider

public interface CurrentUserProvider
Component which:
  • provides the identity of the current user.
  • can logout the the current user.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Avalon role.
  • Method Summary

    Modifier and Type
    Method
    Description
    Provides the current logged user.
    void
    logout(Redirector redirector)
    Logout the current user if he can be.
  • Field Details

  • Method Details

    • getUser

      Provides the current logged user.
      Returns:
      the current user or null if there is no logged user.
    • logout

      void logout(Redirector redirector) throws ProcessingException
      Logout the current user if he can be.
      Parameters:
      redirector - the redirector to use if a redirection needs to be perform for the logout. can be null when called during admin operation
      Throws:
      ProcessingException - If an error occurred during the logout process