Interface RuleContext

All Superinterfaces:
LogContext
All Known Subinterfaces:
CustomContext, CustomRestContext, CustomRestUploadContext, DeleteContext, GenerateContext, InsertContext, PrintContext, PrintFinalContext, StateChangeContext, UpdateContext

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.
Author:
Matthias Reichart
  • Method Details

    • getContextCacheValue

      Object getContextCacheValue(String key)
      This method returns the cached object that can be found for the given key
      Parameters:
      key -
      Returns:
      CacheObject
    • addContextCacheValue

      void addContextCacheValue(String key, Object value)
      This methods adds a Objects to the cache using the given key
      Parameters:
      key -
      value -
    • removeContextCacheValue

      void removeContextCacheValue(String key)
      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 Locale of current user
      Returns: