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.This cache is thread scoped.
-
-
Method Summary
All Methods Static 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.static DefaultFormsOnlineService.HierarchicalValidatorCacheManager
get()
String
getHierarchicalValidatorOf(String userId)
Gets from cached data the validator of given users.
-
-
-
Method Detail
-
get
@NonNull public static DefaultFormsOnlineService.HierarchicalValidatorCacheManager get()
-
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.
-
-