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:
  • Constructor Details

    • UserPortalCacheBean

      public UserPortalCacheBean()
  • Method Details

    • 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.