Class DirectoryUserFullRequestCache


  • public class DirectoryUserFullRequestCache
    extends Object
    This class permits to handles UserFull caches.

    Callers puts in a first time all the Silverpeas's user ids, and then, on the first UserFull data access, all the data are retrieved in a single repository request.

    Author:
    silveryocha
    • Method Detail

      • addUserItem

        public void addUserItem​(UserItem user)
        Adds a user handled by the cache.
        Parameters:
        user - a UserItem instance.
      • getUserFull

        public UserFull getUserFull​(UserItem user)
        Gets the full user data of the user represented by the given item.
        Parameters:
        user - a user item.
        Returns:
        a UserFull if any, null otherwise.