Class ReadThroughCachingUserPropertySetFactory
- java.lang.Object
-
- com.atlassian.confluence.impl.propertyset.ReadThroughCachingUserPropertySetFactory
-
- All Implemented Interfaces:
com.atlassian.user.properties.PropertySetFactory
public final class ReadThroughCachingUserPropertySetFactory extends Object implements com.atlassian.user.properties.PropertySetFactory
An implementation ofPropertySetFactorywhich delegates to anotherPropertySetFactory, and which keeps the resultingPropertySets in a node-local cache. It also wraps those individualPropertySets in another caching layer.This whole
PropertySetthing is a massive shit-show, and needs to be taken behind the barn and shot.- Since:
- 7.6
- See Also:
ReadThroughCachingPropertySet,ConfluenceUserPropertySetFactory
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReadThroughCachingUserPropertySetFactorycreate(com.atlassian.user.properties.PropertySetFactory delegate, com.atlassian.cache.CacheFactory cacheFactory)Create an instance for the given delegatePropertySetFactory.com.opensymphony.module.propertyset.PropertySetgetPropertySet(com.atlassian.user.Entity entity)
-
-
-
Method Detail
-
create
public static ReadThroughCachingUserPropertySetFactory create(com.atlassian.user.properties.PropertySetFactory delegate, com.atlassian.cache.CacheFactory cacheFactory)
Create an instance for the given delegatePropertySetFactory.The
PropertySets returned by that delegate will be wrapped in aReadThroughCachingPropertySetpeior to being themselves cached.
-
getPropertySet
@Nullable public com.opensymphony.module.propertyset.PropertySet getPropertySet(com.atlassian.user.Entity entity)
- Specified by:
getPropertySetin interfacecom.atlassian.user.properties.PropertySetFactory
-
-