Package org.nuclos.api.context
Interface RuleContext
- All Superinterfaces:
LogContext
- All Known Subinterfaces:
CustomContext
,CustomRestContext
,CustomRestUploadContext
,DeleteContext
,GenerateContext
,InsertContext
,PrintContext
,PrintFinalContext
,StateChangeContext
,UpdateContext
RuleContext
represents the base context that supports elementary functions like
caching that enables to pass objects throw a list of rules that are executed during one event.- Author:
- Matthias Reichart
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addContextCacheValue
(String key, Object value) This methods adds a Objects to the cache using the given keyThis method returns the cached object that can be found for the given keyReturns theLocale
of current usergetUser()
Returns the current uservoid
This method removes all cached data that can be found for the given keyMethods inherited from interface org.nuclos.api.context.LogContext
log, logError, logWarn
-
Method Details
-
getContextCacheValue
This method returns the cached object that can be found for the given key- Parameters:
key
-- Returns:
- CacheObject
-
addContextCacheValue
This methods adds a Objects to the cache using the given key- Parameters:
key
-value
-
-
removeContextCacheValue
This method removes all cached data that can be found for the given key- Parameters:
key
-
-
getUser
User getUser()Returns the current user- Returns:
-
getLanguage
String getLanguage()Returns theLocale
of current user- Returns:
-