Interface UserProvider

  • All Known Implementing Classes:
    DefaultUserProvider

    public interface UserProvider
    In charge of providing users.
    Author:
    Yohann Chastagnier
    • Method Detail

      • get

        static UserProvider get()
        Gets the instance of the implementation of the interface.
        Returns:
        an implementation of UserProvider.
      • getUser

        User getUser​(String userId)
        Gets a user from the specified identifier.
        Parameters:
        userId - a user identifier as string.
        Returns:
        a user instance of User.
      • getCurrentRequester

        default User getCurrentRequester()
        Gets the user that is behind the current request in Silverpeas.
        Returns:
        a user instance of User.
      • getMainAdministrator

        default User getMainAdministrator()
        Gets the main administrator of Silverpeas. It is a system account created during the installation of Silverpeas. This is by this system account that all the setting up of Silverpeas is performed (spaces, domains, application instances, ...).
        Returns:
        the main administrator of Silverpeas.
      • getSystemUser

        User getSystemUser()
        Gets the system user in Silverpeas. A system user is virtuel one under which some userless processes are performed like the batches one.
        Returns:
        the system user of Silverpeas (a virtual user, id est without any user account)