Class DefaultFormsOnlineService.HierarchicalValidatorCacheManager

  • Enclosing class:
    DefaultFormsOnlineService

    public static class DefaultFormsOnlineService.HierarchicalValidatorCacheManager
    extends Object
    Permits to manage a cache in order to increase performances.

    This cache is thread scoped.

    • Method Detail

      • cacheHierarchicalValidatorsOf

        public void cacheHierarchicalValidatorsOf​(Set<String> userIds)
        Caches the hierarchical validators of users represented by given ids.
        Parameters:
        userIds - set of string user ids.
      • getHierarchicalValidatorOf

        public String getHierarchicalValidatorOf​(String userId)
        Gets from cached data the validator of given users.

        If no data has been cached for the user, the data are retrieved.

        Parameters:
        userId - a string user id.
        Returns:
        the hierarchical validator of the user represented by the given id.