Class UserPortalCacheBean
- java.lang.Object
-
- de.xima.fc.user_portal.bean.common.UserPortalCacheBean
-
- All Implemented Interfaces:
Serializable
@Named @ViewScoped public class UserPortalCacheBean extends Object implements Serializable
A bean to cache values for the current user portal.- Since:
- 8.3.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UserPortalCacheBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Integer>
getCachedInteger(String key)
Get a cached integer value.Optional<String>
getCachedString(String key)
Get a cached string value.Optional<String[]>
getCachedStringArray(String key)
Get a cached string array value.Optional<Object>
getCachedValue(String key)
Get a cached object value.void
setCachedValue(String key, Serializable value)
Set a cached value.
-
-
-
Method Detail
-
getCachedInteger
public Optional<Integer> getCachedInteger(String key)
Get a cached integer value.- Parameters:
key
- The key of the cached value.- Returns:
- The cached integer value or null if not found.
-
getCachedString
public Optional<String> getCachedString(String key)
Get a cached string value.- Parameters:
key
- The key of the cached value.- Returns:
- The cached string value or null if not found.
-
getCachedStringArray
public Optional<String[]> getCachedStringArray(String key)
Get a cached string array value.- Parameters:
key
- The key of the cached value.- Returns:
- The cached string array value or null if not found.
-
getCachedValue
public Optional<Object> getCachedValue(String key)
Get a cached object value.- Parameters:
key
- The key of the cached value.- Returns:
- The cached object value or null if not found.
-
setCachedValue
public void setCachedValue(String key, Serializable value)
Set a cached value.- Parameters:
key
- The key of the cached value.value
- The value to cache.
-
-