Class DefaultFormsOnlineService.HierarchicalValidatorCacheManager
- java.lang.Object
-
- org.silverpeas.components.formsonline.model.DefaultFormsOnlineService.HierarchicalValidatorCacheManager
-
- Enclosing class:
- DefaultFormsOnlineService
public static class DefaultFormsOnlineService.HierarchicalValidatorCacheManager extends Object
Permits to manage a cache in order to increase performances.
-
-
Constructor Summary
Constructors Constructor Description HierarchicalValidatorCacheManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cacheHierarchicalValidatorsOf(Set<String> userIds)
Caches the hierarchical validators of users represented by given ids.String
getHierarchicalValidatorOf(String userId)
Gets from cached data the validator of given users.
-
-
-
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.
-
-