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 TypeMethodDescriptionvoidaddContextCacheValue(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 the language only from theLocaleof current userReturns theLocaleof current usergetUser()Returns the current uservoidThis 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 the language only from theLocaleof current user- Returns:
-
getLocale
Locale getLocale()Returns theLocaleof current user- Returns:
-