Class DefaultUserProvider

    • Constructor Detail

      • DefaultUserProvider

        public DefaultUserProvider()
    • Method Detail

      • getUser

        public User getUser​(String userId)
        Description copied from interface: UserProvider
        Gets a user from the specified identifier.
        Specified by:
        getUser in interface UserProvider
        Parameters:
        userId - a user identifier as string.
        Returns:
        a user instance of User or null if no such user exists.
      • getUserByToken

        public User getUserByToken​(@Nonnull
                                   String token)
        Description copied from interface: UserProvider
        Gets a user from his unique API token.
        Specified by:
        getUserByToken in interface UserProvider
        Parameters:
        token - the API toke of a user.
        Returns:
        a user instance of User or null if no such user exists.
      • getUserByLoginAndDomainId

        public User getUserByLoginAndDomainId​(@Nonnull
                                              String login,
                                              @Nonnull
                                              String domainId)
        Description copied from interface: UserProvider
        Gets a user from his login and from the domain he belongs to.
        Specified by:
        getUserByLoginAndDomainId in interface UserProvider
        Parameters:
        login - the login of the user.
        domainId - the unique identifier of the domain he belongs to.
        Returns:
        a user instance of User or null if no such user exists.
      • getSystemUser

        public User getSystemUser()
        Description copied from interface: UserProvider
        Gets the system user in Silverpeas. A system user is virtual one under which some processes are performed like the batches one.
        Specified by:
        getSystemUser in interface UserProvider
        Returns:
        the system user of Silverpeas (a virtual user, id est without any user account)