Class DefaultFormsOnlineService.HierarchicalValidatorCacheManager
java.lang.Object
org.silverpeas.components.formsonline.model.DefaultFormsOnlineService.HierarchicalValidatorCacheManager
- Enclosing class:
DefaultFormsOnlineService
Permits to manage a cache in order to increase performances.
This cache is thread scoped.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcacheHierarchicalValidatorsOf(Set<String> userIds) Caches the hierarchical validators of users represented by given ids.get()getHierarchicalValidatorOf(String userId) Gets from cached data the validator of given users.
-
Method Details
-
get
-
cacheHierarchicalValidatorsOf
Caches the hierarchical validators of users represented by given ids.- Parameters:
userIds- set of string user ids.
-
getHierarchicalValidatorOf
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.
-