Package de.xima.fc.api.cache
Class XFormCache
java.lang.Object
de.xima.fc.api.cache.XFormCache
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IXForm
cacheForm
(UserContext uc, FormVersion entity) static IXForm
getCachedForm
(UserContext uc, FormVersion entity) static String
getEntryKey
(FormVersion entity) static org.ehcache.Cache<String,
XformCacheModel> static IXForm
getUncachedForm
(UserContext uc, FormVersion entity) static void
init()
static XformCacheModel
readCachedForm
(UserContext uc, FormVersion entity) static void
reinit()
Reinitialize cache after configuration changestatic void
shutdown()
-
Field Details
-
CACHE_NAME
- See Also:
-
-
Constructor Details
-
XFormCache
public XFormCache()
-
-
Method Details
-
getCachedForm
public static IXForm getCachedForm(UserContext uc, FormVersion entity) throws com.alibaba.fastjson.JSONException, IOException - Throws:
com.alibaba.fastjson.JSONException
IOException
-
getUncachedForm
public static IXForm getUncachedForm(UserContext uc, FormVersion entity) throws com.alibaba.fastjson.JSONException, IOException - Throws:
com.alibaba.fastjson.JSONException
IOException
-
readCachedForm
-
cacheForm
public static IXForm cacheForm(UserContext uc, FormVersion entity) throws com.alibaba.fastjson.JSONException, IOException - Throws:
com.alibaba.fastjson.JSONException
IOException
-
getEntryKey
-
getInstance
-
shutdown
public static void shutdown() -
init
public static void init() -
reinit
public static void reinit()Reinitialize cache after configuration change
-