public interface RuleContext extends LogContext
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.Modifier and Type | Method and Description |
---|---|
void |
addContextCacheValue(java.lang.String key,
java.lang.Object value)
This methods adds a Objects to the cache using the given key
|
java.lang.Object |
getContextCacheValue(java.lang.String key)
This method returns the cached object that can be found for the given key
|
java.lang.String |
getLanguage()
Returns the
Locale of current user |
User |
getUser()
Returns the current user
|
void |
removeContextCacheValue(java.lang.String key)
This method removes all cached data that can be found for the given key
|
log, logError, logWarn
java.lang.Object getContextCacheValue(java.lang.String key)
key
- void addContextCacheValue(java.lang.String key, java.lang.Object value)
key
- value
- void removeContextCacheValue(java.lang.String key)
key
- User getUser()
java.lang.String getLanguage()
Locale
of current userCopyright © 2024. All rights reserved.